bnx2x: Remove configured vlans as part of unload sequence.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>
Wed, 12 Dec 2018 16:57:01 +0000 (08:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Dec 2018 00:25:14 +0000 (16:25 -0800)
commit04f05230c5c13b1384f66f5186a68d7499e34622
tree5eefcf233740963b71b70d4dc88b8061f9af31a0
parentbbf666c1af916ed74795493c564df6fad462cc80
bnx2x: Remove configured vlans as part of unload sequence.

Vlans are not getting removed when drivers are unloaded. The recent storm
firmware versions had added safeguards against re-configuring an already
configured vlan. As a result, PF inner reload flows (e.g., mtu change)
might trigger an assertion.
This change is going to remove vlans (same as we do for MACs) when doing
a chip cleanup during unload.

Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h