[Devel] [PATCH rh7] net/dummy: enable support in a container

Vasily Averin vvs at virtuozzo.com
Sat Jan 23 05:42:51 PST 2016


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>
---
 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);
 }
 
-- 
1.9.1



More information about the Devel mailing list