Skip to content

Commit 18423e1

Browse files
lxinkuba-moo
authored andcommitted
geneve: 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 geneve, it would have to do SW GSO before the packets enter the driver, even when the geneve dev and lower dev (like veth) both have the feature of NETIF_F_GSO_SCTP. So this patch is to add it for geneve. Signed-off-by: Xin Long <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent cb2c571 commit 18423e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/net/geneve.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,11 +1197,12 @@ static void geneve_setup(struct net_device *dev)
11971197
SET_NETDEV_DEVTYPE(dev, &geneve_type);
11981198

11991199
dev->features |= NETIF_F_LLTX;
1200-
dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM;
1200+
dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_FRAGLIST;
12011201
dev->features |= NETIF_F_RXCSUM;
12021202
dev->features |= NETIF_F_GSO_SOFTWARE;
12031203

1204-
dev->hw_features |= NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_RXCSUM;
1204+
dev->hw_features |= NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_FRAGLIST;
1205+
dev->hw_features |= NETIF_F_RXCSUM;
12051206
dev->hw_features |= NETIF_F_GSO_SOFTWARE;
12061207

12071208
/* MTU range: 68 - (something less than 65535) */

0 commit comments

Comments
 (0)