]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6113289e799c074ca0051170807dd0972df5a0e2
tree9983766c8fe23e1b3889a02b39ca3364ceae912f
parentdae8b9165cf32307c1eb353478f9a21303d0be37
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