net: hns3: fix RMW issue for VLAN filter switch
mainline inclusion from mainline-v5.6-rc6 commit 903b85d3 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I4W96A CVE: NA ---------------------------- 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: fea4e7dc ("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> Signed-off-by:
Yonglong Liu <liuyonglong@huawei.com> Reviewed-by:
li yongxin <liyongxin1@huawei.com> Signed-off-by:
Laibin Qiu <qiulaibin@huawei.com>
Loading
Please sign in to comment