[dpdk-stable] [dpdk-dev] [PATCH 02/29] net/ena/base: make allocation macros thread-safe

Michał Krawczyk mk at semihalf.com
Tue Mar 31 11:47:04 CEST 2020


pt., 27 mar 2020 o 15:54 Stephen Hemminger
<stephen at networkplumber.org> napisał(a):
>
> On Fri, 27 Mar 2020 11:17:56 +0100
> Michal Krawczyk <mk at semihalf.com> wrote:
>
> > From: Igor Chauskin <igorch at amazon.com>
> >
> > Memory allocation region id could possibly be non-unique
> > due to non-atomic increment, causing allocation failure.
> >
> > Fixes: 9ba7981ec992 ("ena: add communication layer for DPDK")
> > Cc: stable at dpdk.org
> >
> > Signed-off-by: Igor Chauskin <igorch at amazon.com>
> > Reviewed-by: Michal Krawczyk <mk at semihalf.com>
> > Reviewed-by: Guy Tzalik <gtzalik at amazon.com>
>
> With DPDK all control operations are the device are supposed
> to be single threaded by the caller. Do you have an allocation in
> some datapath?

Currently, there aren't any allocations on the datapath. But if you
don't mind, we would like to keep the atomics there for future
robustness.


More information about the stable mailing list