[Devel] [RFC 46/54] ip_vti: fix CONFIG_VE=n build
Eva Kurchatova
eva.kurchatova at virtuozzo.com
Wed Apr 29 22:58:46 MSK 2026
Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
---
net/ipv4/ip_vti.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/ipv4/ip_vti.c b/net/ipv4/ip_vti.c
index 0919ea262052..64c1af114cc4 100644
--- a/net/ipv4/ip_vti.c
+++ b/net/ipv4/ip_vti.c
@@ -521,12 +521,12 @@ static int __net_init vti_init_net(struct net *net)
{
int err;
struct ip_tunnel_net *itn;
-
+#ifdef CONFIG_VE
if (!ve_is_super(net->owner_ve)) {
net_generic_free(net, vti_net_id);
return 0;
}
-
+#endif
err = ip_tunnel_init_net(net, vti_net_id, &vti_link_ops, "ip_vti0");
if (err)
return err;
--
2.54.0
More information about the Devel
mailing list