]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Disable VLAN filtering when in promiscuous mode
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Wed, 17 Feb 2016 17:48:08 +0000 (11:48 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2016 20:22:18 +0000 (15:22 -0500)
commit5aeafa7dc8ff8ad3216fe85b9a0828237ab238ab
tree900165fe2282e020f66b81cf8135800b52738709
parentce150cbb9120c38292355d13f64372c6d3f8d4ee
amd-xgbe: Disable VLAN filtering when in promiscuous mode

When the hardware is placed in promiscuous mode it will still perform
VLAN filtering and therefore may not pass all packets to the driver.

Disable all VLAN filtering when entering promiscuous mode and restore
VLAN filtering upon exit from promiscuous mode. In order to avoid adding
forward declarations, move the VLAN related functions earlier in the
file.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-dev.c