net/bnx2x: fix to sync fastpath Rx queue access
authorRasesh Mody <rmody@marvell.com>
Sun, 26 Jan 2020 22:54:19 +0000 (14:54 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:20 +0000 (09:51 +0100)
commit141c86f55f734c4f8b9ad3129b6e58807b5c4577
tree2ced1e46c6115931da738ef468d87105898e2178
parentd836d5efb93505ad86f72c0fcfb0f650858b96ac
net/bnx2x: fix to sync fastpath Rx queue access

PMD handles fast path completions in the Rx handler and control path
completions in the interrupt handler. They both are processing
completions from the same fastpath completion queue. There is a
potential for race condition when these two paths are processing
the completions from the same queue and trying to updating Rx Producer.

Add a fastpath Rx lock between these two paths to close this race.

Fixes: 540a211084a7 ("bnx2x: driver core")
Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rmody@marvell.com>
drivers/net/bnx2x/bnx2x.c
drivers/net/bnx2x/bnx2x.h
drivers/net/bnx2x/bnx2x_rxtx.c