diff options
author | Jian Shen <shenjian15@huawei.com> | 2019-06-03 04:09:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-04 00:32:50 +0200 |
commit | b524b38ff6320f58f5d0e95640eec82fae850887 (patch) | |
tree | 7b8e818fe1dc902d9cc45830435042cf6164e690 /drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | |
parent | net: hns3: don't configure new VLAN ID into VF VLAN table when it's full (diff) | |
download | linux-b524b38ff6320f58f5d0e95640eec82fae850887.tar.xz linux-b524b38ff6320f58f5d0e95640eec82fae850887.zip |
net: hns3: fix VLAN filter restore issue after reset
In orginal codes, the driver only restore VLAN filter entries
for PF after reset, the VLAN entries of VF will lose in this
case.
This patch fixes it by recording VLAN IDs for each function
when add VLAN, and restore the VLAN IDs after reset.
Fixes: 681ec3999b3d ("net: hns3: fix for vlan table lost problem when resetting")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3_enet.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h index 408efd55ba48..efab15fc748a 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h @@ -550,7 +550,6 @@ struct hns3_nic_priv { struct notifier_block notifier_block; /* Vxlan/Geneve information */ struct hns3_udp_tunnel udp_tnl[HNS3_UDP_TNL_MAX]; - unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)]; struct hns3_enet_coalesce tx_coal; struct hns3_enet_coalesce rx_coal; }; |