Commit ddd2b025 authored by shenhao's avatar shenhao Committed by Yang Yingliang
Browse files

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: default avatarJian Shen <shenjian15@huawei.com>
Signed-off-by: default avatarshenhao <shenhao21@huawei.com>
Reviewed-by: default avatarZhong Zhaohui <zhongzhaohui@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent a9847a07
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment