net: hns3: fix for vlan table lost problem when resetting
authorYunsheng Lin <linyunsheng@huawei.com>
Wed, 21 Mar 2018 07:49:22 +0000 (15:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 17:12:01 +0000 (13:12 -0400)
commit681ec3999b3d1548b97c077df77433b718b3bfb3
tree9983766c8fe23e1b3889a02b39ca3364ceae912f
parent1a426f8b40fca920f15558c9d2fa6efab6921002
net: hns3: fix for vlan table lost problem when resetting

The vlan table in hardware is clear after PF/Core/IMP/Global
reset, which will cause vlan tagged packets not being received
problem.

This patch fixes it by restoring the vlan table after reset.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h