[Devel] [PATCH RHEL8 COMMIT] ve/net/sit: Enable SIT devices in Containers

Konstantin Khorenko khorenko at virtuozzo.com
Tue Apr 13 13:41:45 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.12
------>
commit 0a771dc2199cb7116dacdcb70597de150ac7f543
Author: Vasily Averin <vvs at virtuozzo.com>
Date:   Tue Apr 13 13:41:45 2021 +0300

    ve/net/sit: Enable SIT devices in Containers
    
    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>
---
 net/ipv6/sit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
index 37b2463cf1df..342cdabd116d 100644
--- a/net/ipv6/sit.c
+++ b/net/ipv6/sit.c
@@ -1393,6 +1393,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;
 }
 


More information about the Devel mailing list