[Devel] [PATCH RHEL7 COMMIT] ve/net: sit: enable in container

Vasily Averin vvs at virtuozzo.com
Tue Mar 30 10:28:07 MSK 2021


The commit is pushed to "branch-rh7-3.10.0-1160.21.1.vz7.174.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1160.21.1.vz7.174.3
------>
commit c578e92508a30ba23651c162959e73b6b1d6128d
Author: Vasily Averin <vvs at virtuozzo.com>
Date:   Tue Mar 30 10:28:07 2021 +0300

    ve/net: sit: enable in container
    
    Currently we fail to create sit interface inside container,
    because it have 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 b254183..52b9e6a 100644
--- a/net/ipv6/sit.c
+++ b/net/ipv6/sit.c
@@ -1298,6 +1298,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