[Devel] [PATCH VZ10 v4 01/44] fixup! ve: Link net and ve_struct

Vladimir Riabchun vladimir.riabchun at virtuozzo.com
Wed Jun 3 00:10:19 MSK 2026


There is a big number of net->owner_ve, that are not covered by
ifdef guard, so it is actually easier to have this field
when !CONFIG_VE and store NULL there.

https://virtuozzo.atlassian.net/browse/VSTOR-130116

Feature: !CONFIG_VE build
Signed-off-by: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
---
 include/net/net_namespace.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
index dd0edb96f0ee..5cf615b03da0 100644
--- a/include/net/net_namespace.h
+++ b/include/net/net_namespace.h
@@ -120,9 +120,7 @@ struct net {
 
 	struct net_device       *loopback_dev;          /* The loopback */
 
-#ifdef CONFIG_VE
 	struct ve_struct	*owner_ve;
-#endif
 
 	/* core fib_rules */
 	struct list_head	rules_ops;
-- 
2.47.1



More information about the Devel mailing list