[Devel] [PATCH RH9 02/22] ve/net/sit: Enable SIT devices in Containers

Andrey Zhadchenko andrey.zhadchenko at virtuozzo.com
Thu Oct 7 13:57:26 MSK 2021


From: Vasily Averin <vvs at virtuozzo.com>

Currently, we fail to create sit interface inside container,
because it has neither NETIF_F_VIRTUAL nor NETIF_F_NETNS_LOCAL:

  ipip6_tunnel_ioctl
   ipip6_tunnel_locate
    ipip6_tunnel_create
     register_netdevice
      ve_is_dev_movable

Mark sit as NETIF_F_VIRTUAL to fix this issue.

https://jira.sw.ru/browse/PSBM-127315
Signed-off-by: Vasily Averin <vvs at virtuozzo.com>

(cherry picked from vz8 commit 802d4d2b1637813c36d48fffe404da449d855886)
Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
---
 net/ipv6/sit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
index 7eb4021..36006b9 100644
--- a/net/ipv6/sit.c
+++ b/net/ipv6/sit.c
@@ -1445,6 +1445,7 @@ static void ipip6_tunnel_setup(struct net_device *dev)
 	dev->addr_len		= 4;
 	dev->features		|= NETIF_F_LLTX;
 	dev->features		|= SIT_FEATURES;
+	dev->features		|= NETIF_F_VIRTUAL;
 	dev->hw_features	|= SIT_FEATURES;
 }
 
-- 
1.8.3.1



More information about the Devel mailing list