summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Fomichev <sdf@fomichev.me>2025-04-01 09:34:47 -0700
committerJakub Kicinski <kuba@kernel.org>2025-04-03 15:32:08 -0700
commitdbfc99495d960134bfe1a4f13849fb0d5373b42c (patch)
treefec1be57ed46e2df01c57ff4c5d79236ef43f551
parent1901066aab7654f4a225ac29354a564d891d0c1a (diff)
net: dummy: request ops lock
Even though dummy device doesn't really need an instance lock, a lot of selftests use dummy so it's useful to have extra expose to the instance lock on NIPA. Request the instance/ops locking. Signed-off-by: Stanislav Fomichev <sdf@fomichev.me> Link: https://patch.msgid.link/20250401163452.622454-7-sdf@fomichev.me Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--drivers/net/dummy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dummy.c b/drivers/net/dummy.c
index a4938c6a5ebb5..d6bdad4baadd8 100644
--- a/drivers/net/dummy.c
+++ b/drivers/net/dummy.c
@@ -105,6 +105,7 @@ static void dummy_setup(struct net_device *dev)
dev->netdev_ops = &dummy_netdev_ops;
dev->ethtool_ops = &dummy_ethtool_ops;
dev->needs_free_netdev = true;
+ dev->request_ops_lock = true;
/* Fill in device structure with ethernet-generic values. */
dev->flags |= IFF_NOARP;