[Devel] [PATCH RHEL7 COMMIT] ve/net/dummy: enable support in a container

Konstantin Khorenko khorenko at virtuozzo.com
Sat Jan 23 06:14:46 PST 2016


The commit is pushed to "branch-rh7-3.10.0-229.7.2.vz7.9.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-229.7.2.vz7.9.26
------>
commit 6061ed860950f0ad5feb6c6110eb5ec6cbbe19ce
Author: Vasily Averin <vvs at virtuozzo.com>
Date:   Sat Jan 23 18:12:54 2016 +0400

    ve/net/dummy: enable support in a container
    
    This patch enables dummy network devices support in a container.
    
    https://jira.sw.ru/browse/PSBM-43329
    
    Signed-off-by: Vasily Averin <vvs at virtuozzo.com>
    
    khorenko@: JFYI: up to now it's required by ltp test only
    (containers.netns_sysfs testcase).
---
 drivers/net/dummy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/dummy.c b/drivers/net/dummy.c
index b710c6b..61ac0b4 100644
--- a/drivers/net/dummy.c
+++ b/drivers/net/dummy.c
@@ -135,6 +135,7 @@ static void dummy_setup(struct net_device *dev)
 	dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
 	dev->features	|= NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_TSO;
 	dev->features	|= NETIF_F_HW_CSUM | NETIF_F_HIGHDMA | NETIF_F_LLTX;
+	dev->features	|= NETIF_F_VIRTUAL;
 	eth_hw_addr_random(dev);
 }
 


More information about the Devel mailing list