[Devel] [PATCH RH9 04/11] ve/net/dummy: enable support in a container
Alexander Mikhalitsyn
alexander.mikhalitsyn at virtuozzo.com
Thu Sep 23 18:02:28 MSK 2021
From: Vasily Averin <vvs at virtuozzo.com>
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);
--
2.31.1
More information about the Devel
mailing list