net/bnxt: fix ring count calculation
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 30 Apr 2021 20:14:13 +0000 (13:14 -0700)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Sun, 2 May 2021 22:17:17 +0000 (00:17 +0200)
commita49844ffa39df02bbcb8353436ae10b830bfed73
tree798c6810a7748aa0f27b1abb236e7cd2bddf3089
parent0797fcb00426bf246e83caf074822b4427ec3937
net/bnxt: fix ring count calculation

Fix ring count calculation for Thor. VNIC count does not have a
direct bearing on the number of rings that can be used.

Fixes: fe8dd26f86c7 ("net/bnxt: cap max Rx rings for Thor")

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt.h