]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2016 22:38:26 +0000 (15:38 -0700)
commit9ca272d336936d7f528caad014ae2cc7d87cabe4
tree097a68cd2de33c1d1c71f63b452f2f1558d809b6
parent19634ca2520922cb002f0376cc8b7bf235d61f6a
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