Loading
net: hns3: fix concurrent setting vlan filter issue
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAQ6G2 ---------------------------------------------------------------------- The vport->req_vlan_fltr_en may be changed concurently by function hclge_sync_vlan_fltr_state() called in periodic work task and function hclge_enable_vport_vlan_filter() called by user configuration. It may cause the user configuration inoperative. Fixes it by protect the vport->req_vlan_fltr by vport_lock. Fixes: fb19a769 ("net: hns3: add support for VF modify VLAN filter state") Signed-off-by:Jian Shen <shenjian15@huawei.com> Signed-off-by:
Hao Chen <chenhao418@huawei.com>