Skip to content

Commit cb2c571

Browse files
lxinkuba-moo
authored andcommitted
vxlan: add NETIF_F_FRAGLIST flag for dev features
Some protocol HW GSO requires fraglist supported by the device, like SCTP. Without NETIF_F_FRAGLIST set in the dev features of vxlan, it would have to do SW GSO before the packets enter the driver, even when the vxlan dev and lower dev (like veth) both have the feature of NETIF_F_GSO_SCTP. So this patch is to add it for vxlan. Signed-off-by: Xin Long <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 505e3f0 commit cb2c571

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/net/vxlan.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3283,12 +3283,13 @@ static void vxlan_setup(struct net_device *dev)
32833283
SET_NETDEV_DEVTYPE(dev, &vxlan_type);
32843284

32853285
dev->features |= NETIF_F_LLTX;
3286-
dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM;
3286+
dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_FRAGLIST;
32873287
dev->features |= NETIF_F_RXCSUM;
32883288
dev->features |= NETIF_F_GSO_SOFTWARE;
32893289

32903290
dev->vlan_features = dev->features;
3291-
dev->hw_features |= NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_RXCSUM;
3291+
dev->hw_features |= NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_FRAGLIST;
3292+
dev->hw_features |= NETIF_F_RXCSUM;
32923293
dev->hw_features |= NETIF_F_GSO_SOFTWARE;
32933294
netif_keep_dst(dev);
32943295
dev->priv_flags |= IFF_NO_QUEUE;

0 commit comments

Comments
 (0)