Skip to content

Commit dbfc994

Browse files
Stanislav Fomichevkuba-moo
authored andcommitted
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>
1 parent 1901066 commit dbfc994

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/dummy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ static void dummy_setup(struct net_device *dev)
105105
dev->netdev_ops = &dummy_netdev_ops;
106106
dev->ethtool_ops = &dummy_ethtool_ops;
107107
dev->needs_free_netdev = true;
108+
dev->request_ops_lock = true;
108109

109110
/* Fill in device structure with ethernet-generic values. */
110111
dev->flags |= IFF_NOARP;

0 commit comments

Comments
 (0)