]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix VNIC clearing logic for 57500 chips.
authorMichael Chan <michael.chan@broadcom.com>
Sat, 17 Aug 2019 21:04:47 +0000 (17:04 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Aug 2019 20:05:00 +0000 (13:05 -0700)
commit365cd0dbea0095c07cc3ea11760a924138165446
treefcedd6fc439246e32b9c39273ae2372fea88cada
parent0f6b1e5409f26505c61471011b2557873807eb63
bnxt_en: Fix VNIC clearing logic for 57500 chips.

During device shutdown, the VNIC clearing sequence needs to be modified
to free the VNIC first before freeing the RSS contexts.  The current
code is doing the reverse and we can get mis-directed RX completions
to CP ring ID 0 when the RSS contexts are freed and zeroed.  The clearing
of RSS contexts is not required with the new sequence.

Refactor the VNIC clearing logic into a new function bnxt_clear_vnic()
and do the chip specific VNIC clearing sequence.

Fixes: a91ad8311975 ("bnxt_en: Add RSS support for 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