]> 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)
commita4b198a20632333b17ca8ce1dba81e1cbe8ecb18
tree9983766c8fe23e1b3889a02b39ca3364ceae912f
parent3e43705295b92632cf4ebad7b93dca2d585fde0c
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