Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <lucien.xin@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Xin Long and committed by
Jakub Kicinski
18423e1a cb2c5711

+3 -2
+3 -2
drivers/net/geneve.c
··· 1197 1197 SET_NETDEV_DEVTYPE(dev, &geneve_type); 1198 1198 1199 1199 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; 1201 1201 dev->features |= NETIF_F_RXCSUM; 1202 1202 dev->features |= NETIF_F_GSO_SOFTWARE; 1203 1203 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; 1205 1206 dev->hw_features |= NETIF_F_GSO_SOFTWARE; 1206 1207 1207 1208 /* MTU range: 68 - (something less than 65535) */