summaryrefslogtreecommitdiff
path: root/drivers/net/netdevsim/netdevsim.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-03-18 22:23:42 +0300
committerDavid S. Miller <davem@davemloft.net>2022-03-21 17:11:38 +0300
commit76eea6c2e663f7e9fbc258c82811ad9e657e085f (patch)
tree1c58d92bc84501a0064e648534130c88add05a71 /drivers/net/netdevsim/netdevsim.h
parent8879b32a3a809a183e6e2998725a0f33c4e42d41 (diff)
downloadlinux-76eea6c2e663f7e9fbc258c82811ad9e657e085f.tar.xz
netdevsim: replace port_list_lock with devlink instance lock
Take advantage of the devlink instance lock for protecting the port list. This will simplify locking even more once all devlink callbacks hold the instance lock. We need to add locking in nsim_dev_port_add_all() which used to assume higher layer protection when accessing the list. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim/netdevsim.h')
-rw-r--r--drivers/net/netdevsim/netdevsim.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/netdevsim/netdevsim.h b/drivers/net/netdevsim/netdevsim.h
index 128f229d9b4d..8dd6f975f32d 100644
--- a/drivers/net/netdevsim/netdevsim.h
+++ b/drivers/net/netdevsim/netdevsim.h
@@ -274,7 +274,6 @@ struct nsim_dev {
struct list_head bpf_bound_maps;
struct netdev_phys_item_id switch_id;
struct list_head port_list;
- struct mutex port_list_lock; /* protects port list */
bool fw_update_status;
u32 fw_update_overwrite_mask;
u32 max_macs;