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

Konstantin Khorenko khorenko at virtuozzo.com
Fri Sep 24 14:50:18 MSK 2021


The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after ark-5.14
------>
commit 82f90accadd19baaa064d063fdf82dfb89abdc77
Author: Vasily Averin <vvs at virtuozzo.com>
Date:   Fri Sep 24 14:50:18 2021 +0300

    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
    
    khorenko@: JFYI: up to now it's required by ltp test only
    (containers.netns_sysfs testcase).
    
    Signed-off-by: Vasily Averin <vvs at virtuozzo.com>
    
    https://jira.sw.ru/browse/PSBM-133986
    
    (cherry picked from commit b7f1230a273bcc44caafd0d09e4921fa4cb4cf77)
    Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalitsyn at virtuozzo.com>
---
 drivers/net/dummy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/dummy.c b/drivers/net/dummy.c
index f82ad7419508..83c3f72e737d 100644
--- a/drivers/net/dummy.c
+++ b/drivers/net/dummy.c
@@ -127,6 +127,7 @@ static void dummy_setup(struct net_device *dev)
 	dev->features	|= NETIF_F_GSO_SOFTWARE;
 	dev->features	|= NETIF_F_HW_CSUM | NETIF_F_HIGHDMA | NETIF_F_LLTX;
 	dev->features	|= NETIF_F_GSO_ENCAP_ALL;
+	dev->features	|= NETIF_F_VIRTUAL;
 	dev->hw_features |= dev->features;
 	dev->hw_enc_features |= dev->features;
 	eth_hw_addr_random(dev);


More information about the Devel mailing list