net: hns3: use mutex vport_lock intead of spin lock umv_lock
driver inclusion category: bugfix bugzilla: NA CVE: NA Currently, there is a time window for protect share_umv_size between checking umv space and doing mac configuration in the lin function hclge_add_uc_addr_common(). It should be extented. On the other hand, for the mac address configuration is not configured directly in the path of hns3_set_rx_mode any more, so it's unnecessary to use spin lock to protect the share_umv_size. Another exist mutex vport_lock is designed to protect the share resource between each vport can replace it. This patch uses mutex vport_lock intead of spin lock umv_lock to protect share_umv_size, and adjusts the mutex region. Signed-off-by:Jian Shen <shenjian15@huawei.com> Reviewed-by:
Peng Li <lipeng321@huawei.com> Reviewed-by:
Zhong Zhaohui <zhongzhaohui@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Loading
Please sign in to comment