Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ upstream commit f65c7fb ] 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: 8f23124 ("net/qede: fix performance bottleneck in Rx path") Signed-off-by: Devendra Singh Rawat <dsinghrawat@marvell.com> Signed-off-by: Rasesh Mody <rmody@marvell.com>
- Loading branch information
1 parent
d300f3f
commit bc19f2b
Showing
1 changed file
with
31 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters