[PATCH net-next v2 6/8] net: dummy: Set netns_atomic in rtnl ops for testing

From
Xiao Liang <hidden>
Date
2024-11-07 13:30:53
Also in
linux-kselftest
Reply to
Xiao Liang, 2024-11-07
Set netns_atomic flag in rtnl ops. For testing purpose only, since
link-netns is not used for dummy interfaces in practice.

Signed-off-by: Xiao Liang <redacted>
---
 drivers/net/dummy.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/net/dummy.c b/drivers/net/dummy.c
index e9c5e1e11fa0..38d79f543998 100644
--- a/drivers/net/dummy.c
+++ b/drivers/net/dummy.c
@@ -138,6 +138,7 @@ static struct rtnl_link_ops dummy_link_ops __read_mostly = {
 	.kind		= DRV_NAME,
 	.setup		= dummy_setup,
 	.validate	= dummy_validate,
+	.netns_atomic	= true,
 };
 
 /* Number of dummy devices to be set up by this module. */
-- 
2.47.0
Thread (26 messages) 26 messages, 4 authors, last reply 2024-11-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help