net/bnxt: fix max ring count
authorSomnath Kotur <somnath.kotur@broadcom.com>
Fri, 24 Apr 2020 11:00:54 +0000 (16:30 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 5 May 2020 13:53:57 +0000 (15:53 +0200)
commit9bccd7010f1f627895409fe189627b2dd5a2c460
tree12faec2f870aee988772bb91627434f9a581004f
parent67889d11306a6e531be8d2fe53bc216172b90f5d
net/bnxt: fix max ring count

Max Rx Ring count could be < Max stat contexts. While accounting
for stat contexts, this should be also considered and
the max ring count adjusted accordingly.

Fixes: f03e66cb64ce ("net/bnxt: limit queue count for NS3/Stingray devices")
Cc: stable@dpdk.org
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
drivers/net/bnxt/bnxt.h