[Devel] [RFC 48/54] ip6_vti: fix CONFIG_VE=n build

Eva Kurchatova eva.kurchatova at virtuozzo.com
Wed Apr 29 22:58:48 MSK 2026


Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
---
 net/ipv6/ip6_vti.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/ipv6/ip6_vti.c b/net/ipv6/ip6_vti.c
index e22e9c293668..bbc6968c1379 100644
--- a/net/ipv6/ip6_vti.c
+++ b/net/ipv6/ip6_vti.c
@@ -1142,10 +1142,12 @@ static int __net_init vti6_init_net(struct net *net)
 	struct ip6_tnl *t = NULL;
 	int err;
 
+#ifdef CONFIG_VE
 	if (!ve_is_super(net->owner_ve)) {
 		net_generic_free(net, vti6_net_id);
 		return 0;
 	}
+#endif
 
 	ip6n = net_generic(net, vti6_net_id);
 	ip6n->tnls[0] = ip6n->tnls_wc;
-- 
2.54.0



More information about the Devel mailing list