Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
net: add GSO UDP L4 and GSO fraglists to the list of software-backed …
Browse files Browse the repository at this point in the history
…types

Commit e20cf8d ("udp: implement GRO for plain UDP sockets.") and
commit 9fd1ff5 ("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 <[email protected]>
Acked-by: Willem de Bruijn <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
solbjorn authored and kuba-moo committed Nov 4, 2020
1 parent c1c0f6e commit 2e4ef10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/netdev_features.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ static inline int find_next_netdev_feature(u64 feature, unsigned long start)
NETIF_F_FSO)

/* List of features with software fallbacks. */
#define NETIF_F_GSO_SOFTWARE (NETIF_F_ALL_TSO | \
NETIF_F_GSO_SCTP)
#define NETIF_F_GSO_SOFTWARE (NETIF_F_ALL_TSO | NETIF_F_GSO_SCTP | \
NETIF_F_GSO_UDP_L4 | NETIF_F_GSO_FRAGLIST)

/*
* If one device supports one of these features, then enable them
Expand Down

0 comments on commit 2e4ef10

Please sign in to comment.