]> git.ipfire.org Git - thirdparty/linux.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)
commita46ecb116fb7f722fa8cb2da01959c36e4e10c41
treefcedd6fc439246e32b9c39273ae2372fea88cada
parentf1472cb09f11ddb41d4be84f0650835cb65a9073
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: 7b3af4f75b81 ("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