]> 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)
commit33a2bf533bdd5bcd6db0b456733d8ba9985fee48
treebc9925147fbdde9de6d06ae879b9937237166f77
parent8f77cabdff73b218346616729088d61f74ea6403
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: 577f955c95af ("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