]> www.infradead.org Git - users/dwmw2/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)
committerSasha Levin <sashal@kernel.org>
Sun, 25 Aug 2019 14:10:37 +0000 (10:10 -0400)
commit6fdedaf3ad0c6f76ddc3436705b48714930f8bf0
treed396762c6e5d7de23e816cb312566f6dad81ce10
parent168c2657487adda4239321ba22d38dd8b51d2fb7
bnxt_en: Fix VNIC clearing logic for 57500 chips.

[ Upstream commit a46ecb116fb7f722fa8cb2da01959c36e4e10c41 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c