]> git.droids-corp.org - dpdk.git/commit
net/qede: fix Rx bulk
authorDevendra Singh Rawat <dsinghrawat@marvell.com>
Fri, 4 Mar 2022 12:08:32 +0000 (17:38 +0530)
committerJerin Jacob <jerinj@marvell.com>
Thu, 10 Mar 2022 07:39:53 +0000 (08:39 +0100)
commitf65c7fbceca91b54200ca3dc5d27f2292e5d829f
treef63605d46a7270f4c744f204d849aeef9a4f9cb2
parentbc3045626517c26bd1cca4342d8df8f852407726
net/qede: fix Rx bulk

qede_alloc_rx_bulk_mbufs() was trimming the number of requested
mbufs count to QEDE_MAX_BULK_ALLOC_COUNT.
The Rx callback was ignorant of this trimming and it was always
resetting the number of empty RX BD ring slots to 0.
This resulted in Rx BD ring getting into an inconsistent
state and ultimately the application fails to receive any traffic.

The fix trims the number of requested mbufs count before
making call to qede_alloc_rx_bulk_mbufs().
After qede_alloc_rx_bulk_mbufs() returns successfully, the
number of empty Rx BD ring slots are decremented by the
correct count.

Fixes: 8f2312474529 ("net/qede: fix performance bottleneck in Rx path")
Cc: stable@dpdk.org
Signed-off-by: Devendra Singh Rawat <dsinghrawat@marvell.com>
Signed-off-by: Rasesh Mody <rmody@marvell.com>
drivers/net/qede/qede_rxtx.c