Commit 2f487c11 authored by Jian Shen's avatar Jian Shen Committed by Yang Yingliang
Browse files

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