OSDN Git Service

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)
commit9b3d15e6b05e0b916be5fbd915f90300a403098b
treed86416f7b613cc181a2734ad483595cc8ce75760
parent008cfbaa3f9f84efead76d2cea12b4dd05cce67d
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: ac33906c67e2 ("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