]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 01:05:32 +0000 (20:05 -0500)
commitc22a2372255fbcdb10123cf0d56204e6223133f4
tree9957384d21af9b9050bb89e18cfce4e16df2c46d
parentcca63c3bbaef54589a959d567d6a73266ebc1f04
be2net: clear vlan-promisc setting before programming the vlan list

Orabug: 25570957

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>
(cherry picked from commit 841f60fcc4e7986a4ef3f83a289ab47076872e42)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/emulex/benet/be_main.c