net/bnxt: fix buffer allocation reattempt
authorSantoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>
Thu, 6 Feb 2020 16:33:14 +0000 (22:03 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 14 Feb 2020 11:42:12 +0000 (12:42 +0100)
commit01829dea7303bc91063c461a675856dbbbcc6460
treefdb60a1003fede2f1008938b6113cbbebf160839
parent623ac30bfaaa1432d3e228d7d03b1cf8f41917f9
net/bnxt: fix buffer allocation reattempt

In case of a buffer allocation failure, we reattempt buffer allocation
before the Rx handler exits. We were not attempting this when producer
index is greater than the number of buffers to allocate. Fixed it with
correct checks.

Fixes: d9dd0b29ed31 ("net/bnxt: fix Rx handling and buffer allocation logic")
Cc: stable@dpdk.org
Signed-off-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_rxr.c