]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit18d8c26d16b146c56619e298cff2262ed949f079
treebc9925147fbdde9de6d06ae879b9937237166f77
parenta6f5ef364519a509f8273cd253d244a5abd23adf
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: eecc84bea427 ("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