net/bnx2x: fix packet drop
authorShahed Shaikh <shshaikh@marvell.com>
Tue, 4 Jun 2019 18:53:48 +0000 (11:53 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Jun 2019 14:54:30 +0000 (23:54 +0900)
commit08a6e472c3d7833ebe6cee0e1b3c601141a269ed
tree8d7e5cbb7b3665e6b1babcc90125e33a1ec49d22
parent4217cb0b7d2c5385f06f531af7f14b860927aba7
net/bnx2x: fix packet drop

Patch "8bd31421c593 ("net/bnx2x: fix ramrod timeout")"
introduced a regression where sc->scan_fp flags is
set for unexpectedly long time. So the slow path completion
handler flow is run unnecessarily which walks over receive
descriptor ring of fast path and drops the data packets while looking
for slow path completion descriptor out of fast path ring.

This issue is seen under heavy traffic with link events happening
in background.

Fixes: 8bd31421c593 ("net/bnx2x: fix ramrod timeout")
Cc: stable@dpdk.org
Signed-off-by: Shahed Shaikh <shshaikh@marvell.com>
Acked-by: Rasesh Mody <rmody@marvell.com>
drivers/net/bnx2x/bnx2x.c
drivers/net/bnx2x/ecore_sp.c