numam-dpdk/drivers
Matan Azrad 295f7ed2dd net/failsafe: fix Rx clean race
When removing a device, the fail-safe checks that it is not within its
datapath before cleaning it.

When checking whether an Rx burst should be performed on a device, the
remove flag is not checked. Thus the port could still enter its datapath
and miss a removal round. Furthermore, there is a race between the
thread removing the device and the polling thread.

Check the remove flag before entering a sub-device Rx burst when in safe
mode. This check mitigates the aforementioned race condition.

Fixes: 72a57bfd9a ("net/failsafe: add fast burst functions")
Cc: stable@dpdk.org

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
2017-10-27 01:05:55 +02:00
..
bus bus/pci: check VFIO reset ioctl error 2017-10-26 23:51:39 +02:00
crypto pci: introduce library and driver 2017-10-26 23:17:31 +02:00
event eventdev: remove schedule API 2017-10-27 00:53:07 +02:00
mempool pci: introduce library and driver 2017-10-26 23:17:31 +02:00
net net/failsafe: fix Rx clean race 2017-10-27 01:05:55 +02:00
Makefile drivers: add net as dependency for event drivers 2017-10-25 14:03:43 +02:00