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

Konstantin Khorenko khorenko at virtuozzo.com
Sat Jan 23 06:12:54 PST 2016


The commit is pushed to "branch-rh7-3.10.0-327.3.1-vz7.10.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.3.1.vz7.10.3
------>
commit dc455e3657df22343ab648c821f0ee47856165f7
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 36a0b0d..56c8bfd 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