net: hns3: update the device mac address asynchronously
driver inclusion category: bugfix bugzilla: NA CVE: NA -------------------------------------------- Currently, we change the device address directly in the path f hns3_set_mac_address(). There is a race with calling hclge_sync_vport_mac_table(), both them can add/delete mac address without vport->mac_list_lock protection. This patch fixes it by only updating mac list, then adding/deleting the mac address by hclge_sync_vport_mac_table(). Signed-off-by:Jian Shen <shenjian15@huawei.com> Signed-off-by:
shenhao <shenhao21@huawei.com> Reviewed-by:
Zhong Zhaohui <zhongzhaohui@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Loading
Please sign in to comment