numam-dpdk/drivers
Harry van Haaren f5dd9a88de net/i40e: fix rearm check in AVX2 Rx
This commit fixes an infinite loop bug that could occur
if the i40e AVX2 driver is used, and high traffic rates
cause the mempool from which the rxq pulls mbufs to become
empty.

The result would be an infinite loop of checking if we
should perform an rx rearm, calling the function and an
error return due the the mempool being emtpy.

The fix is to align the code in the AVX2 driver with the
SSE driver, where an if() is used instead of a while(),
allowing the thread to return from i40e rx function even
if the mempool is empty.

Fixes: dafadd7376 ("net/i40e: add AVX2 Rx function")
Cc: stable@dpdk.org

Reported-by: David Coyle <david.coyle@intel.com>
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Brendan Ryan <brendan.ryan@intel.com>
Tested-by: David Coyle <david.coyle@intel.com>
2018-08-01 02:41:29 +02:00
..
baseband baseband/turbo_sw: update for FlexRAN 1.6.0 2018-07-25 08:22:14 +02:00
bus vfio: revert retry logic for MSI-X BAR mapping 2018-08-01 17:51:04 +02:00
common common/qat: add scatter-gather header 2018-07-25 08:19:54 +02:00
compress compress/octeontx: support burst enqueue/dequeue 2018-07-25 13:36:26 +02:00
crypto crypto/openssl: add DH and DSA asym operations 2018-07-25 08:22:14 +02:00
event event/octeontx: remove unnecessary port start and stop 2018-07-25 14:29:17 +02:00
mempool mempool/octeontx: fix pool to aura mapping 2018-07-12 21:58:36 +02:00
net net/i40e: fix rearm check in AVX2 Rx 2018-08-01 02:41:29 +02:00
raw raw/skeleton: implement queue count API 2018-08-01 18:25:30 +02:00
Makefile crypto/qat: move common qat files to common dir 2018-07-11 00:55:30 +02:00
meson.build build: remove duplicate checks for cflags 2018-07-26 10:09:20 +02:00