bnxt_en: Fix vnic accounting in the bnxt_check_rings() path.
authorEddie Wai <eddie.wai@broadcom.com>
Sat, 10 Mar 2018 04:46:04 +0000 (23:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2018 14:57:32 +0000 (10:57 -0400)
commit6fc2ffdf1001ae4fb485b3ba95ff757ae54565c9
treebc9925147fbdde9de6d06ae879b9937237166f77
parent4ed50ef4da4d113fe65d9f9d049c1ce7468e3ac1
bnxt_en: Fix vnic accounting in the bnxt_check_rings() path.

The number of vnics to check must be determined ahead of time because
only standard RX rings require vnics to support RFS.  The logic is
similar to the ring reservation logic and we can now use the
refactored common functions to do most of the work in setting up
the firmware message.

Fixes: 8f23d638b36b ("bnxt_en: Expand bnxt_check_rings() to check all resources.")
Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
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