]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix VNIC accounting when enabling aRFS on 57500 chips.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 17 Jul 2019 07:07:23 +0000 (03:07 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Jul 2019 23:33:27 +0000 (16:33 -0700)
commit1d3813906f53a51d8cca07ca9f2323ed7ca4b292
treed86416f7b613cc181a2734ad483595cc8ce75760
parentc5c700bae7bf4c916dc1359128c057d3044656bf
bnxt_en: Fix VNIC accounting when enabling aRFS on 57500 chips.

Unlike legacy chips, 57500 chips don't need additional VNIC resources
for aRFS/ntuple.  Fix the code accordingly so that we don't reserve
and allocate additional VNICs on 57500 chips.  Without this patch,
the driver is failing to initialize when it tries to allocate extra
VNICs.

Fixes: e60dea293b44 ("bnxt_en: Add support for aRFS on 57500 chips.")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c