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

net: add GSO UDP L4 and GSO fraglists to the list of software-backed types

Commit e20cf8d3f1f7 ("udp: implement GRO for plain UDP sockets.") and
commit 9fd1ff5d2ac7 ("udp: Support UDP fraglist GRO/GSO.") made UDP L4
and fraglisted GRO/GSO fully supported by the software fallback mode.
We can safely add them to NETIF_F_GSO_SOFTWARE to allow logical/virtual
netdevs to forward these types of skbs up to the real drivers.

Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Alexander Lobakin and committed by
Jakub Kicinski
2e4ef10f c1c0f6ea

+2 -2
+2 -2
include/linux/netdev_features.h
··· 207 207 NETIF_F_FSO) 208 208 209 209 /* List of features with software fallbacks. */ 210 - #define NETIF_F_GSO_SOFTWARE (NETIF_F_ALL_TSO | \ 211 - NETIF_F_GSO_SCTP) 210 + #define NETIF_F_GSO_SOFTWARE (NETIF_F_ALL_TSO | NETIF_F_GSO_SCTP | \ 211 + NETIF_F_GSO_UDP_L4 | NETIF_F_GSO_FRAGLIST) 212 212 213 213 /* 214 214 * If one device supports one of these features, then enable them