net/bnxt: fix RSS context numbers for thor
authorLance Richardson <lance.richardson@broadcom.com>
Thu, 18 Jul 2019 03:36:11 +0000 (09:06 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commitfc2d87b935bc4365799371404ae2793762c9d633
treee35aa912b7dfccbfbf2283944c743a9322c45d8a
parentdb5d0f98bea612db5c29ea2cda3ce2b31c375eb4
net/bnxt: fix RSS context numbers for thor

BCM57500-based adapters use a variable number of RSS contexts
depending upon the number of receive rings in use. The current
implementation is erroneously using the maximum possible number
of RSS contexts instead of the actual number allocated when
setting up RSS tables in the adapter. Fix by using the actual
number of allocated contexts.

Fixes: 38412304b50a ("net/bnxt: enable RSS for thor-based controllers")

Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c