Skip to content

Commit 8f3af27

Browse files
Eric Dumazetdavem330
authored andcommitted
net: dummy: add more features
While testing my SIT/GRO patch using netfilter TEE module and a dummy device, I found some features were missing : TSO IPv6, UFO, and encapsulated traffic. ethtool -k dummy0 now gives : ... tcp-segmentation-offload: on tx-tcp-segmentation: on tx-tcp-ecn-segmentation: on tx-tcp6-segmentation: on udp-fragmentation-offload: on ... tx-gre-segmentation: on tx-ipip-segmentation: on tx-sit-segmentation: on tx-udp_tnl-segmentation: on Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b1974ed commit 8f3af27

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/net/dummy.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,12 @@ static void dummy_setup(struct net_device *dev)
147147
dev->flags |= IFF_NOARP;
148148
dev->flags &= ~IFF_MULTICAST;
149149
dev->priv_flags |= IFF_LIVE_ADDR_CHANGE | IFF_NO_QUEUE;
150-
dev->features |= NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_TSO;
150+
dev->features |= NETIF_F_SG | NETIF_F_FRAGLIST;
151+
dev->features |= NETIF_F_ALL_TSO | NETIF_F_UFO;
151152
dev->features |= NETIF_F_HW_CSUM | NETIF_F_HIGHDMA | NETIF_F_LLTX;
153+
dev->features |= NETIF_F_GSO_ENCAP_ALL;
154+
dev->hw_features |= dev->features;
155+
dev->hw_enc_features |= dev->features;
152156
eth_hw_addr_random(dev);
153157
}
154158

0 commit comments

Comments
 (0)