]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix RMW issue for VLAN filter switch
authorJian Shen <shenjian15@huawei.com>
Thu, 12 Mar 2020 07:11:05 +0000 (15:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 18:38:26 +0000 (11:38 -0700)
commitecbd3128968379cb0707a444778abd035feffe82
tree63e5c49d1cc48386a1a9fd613ee94a3d41874a8a
parenta5da0527515cd6abe33b23e1a68daa15c413d66a
net: hns3: fix RMW issue for VLAN filter switch

According to the user manual, the ingress and egress VLAN filter
are configured at the same time. Currently, hclge_init_vlan_config()
and hclge_set_vlan_spoofchk() will both change the VLAN filter
switch. So it's necessary to read the old configuration before
modifying it.

Fixes: 806de25f5fb5 ("net: hns3: add support for spoof check setting")
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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c