be2net: clear vlan-promisc setting before programming the vlan list
authorSomnath Kotur <somnath.kotur@emulex.com>
Wed, 27 Jul 2016 09:26:15 +0000 (05:26 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2016 22:38:26 +0000 (15:38 -0700)
commit841f60fcc4e7986a4ef3f83a289ab47076872e42
tree097a68cd2de33c1d1c71f63b452f2f1558d809b6
parent0e7bbcc104baaade4f64205e9706b7d43c46db7d
be2net: clear vlan-promisc setting before programming the vlan list

The Lancer FW has a bug due to which in some cases vlan-promisc setting
is cleared eventhough the vlan-list programming did not succeed (via
VLAN_CONFIG) cmd. The driver has no way of knowing if the vlan-promisc
mode was cleared or not when this cmd fails. To work around this issue,
this patch first explicitly clears the vlan-promisc mode via RX_FILTER
cmd and then tries to program the vlan list.
Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c