diff options
| author | Jian Shen <[email protected]> | 2020-04-24 02:23:12 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-04-26 03:29:44 +0000 |
| commit | 7d0b345156d0678fbbbf885f991c6d83f23d70f1 (patch) | |
| tree | 9d4304cb3ae1c88ced63cc1bba0ad7c5b678fc2b /net/ipv4/tcp_output.c | |
| parent | net: hns3: refactor the promisc mode setting (diff) | |
| download | kernel-7d0b345156d0678fbbbf885f991c6d83f23d70f1.tar.gz kernel-7d0b345156d0678fbbbf885f991c6d83f23d70f1.zip | |
net: hns3: use mutex vport_lock instead of mutex umv_lock
Currently, the driver use mutex umv_lock to protect the variable
vport->share_umv_size. And there is already a mutex vport_lock
being defined in the driver, which is designed to protect the
resource of vport. So we can use vport_lock instead of umv_lock.
Furthermore, 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 extended.
This patch uses mutex vport_lock intead of spin lock umv_lock to
protect share_umv_size, and adjusts the mutex's range.
Signed-off-by: Jian Shen <[email protected]>
Signed-off-by: Huazhong Tan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
