On Tue, Apr 17, 2018 at 8:43 PM, Dimitris Michailidis <dmich...@google.com> wrote: > On Tue, Apr 17, 2018 at 1:00 PM, Willem de Bruijn > <willemdebruijn.ker...@gmail.com> wrote: >> From: Willem de Bruijn <will...@google.com> >> >> Virtual devices such as tunnels and bonding can handle large packets. >> Only segment packets when reaching a physical or loopback device. >> >> Signed-off-by: Willem de Bruijn <will...@google.com> >> --- >> include/linux/netdev_features.h | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/include/linux/netdev_features.h >> b/include/linux/netdev_features.h >> index 35b79f47a13d..1e4883bb02a7 100644 >> --- a/include/linux/netdev_features.h >> +++ b/include/linux/netdev_features.h >> @@ -80,6 +80,7 @@ enum { >> >> NETIF_F_GRO_HW_BIT, /* Hardware Generic receive offload >> */ >> NETIF_F_HW_TLS_RECORD_BIT, /* Offload TLS record */ >> + NETIF_F_GSO_UDP_L4_BIT, /* UDP payload GSO (not UFO) */ > > Please add an entry for the new flag to > net/core/ethtool.c:netdev_features_strings > and a description to Documentation/networking/netdev-features.txt.
Will do. I initially wrote this as a transparent kernel-internal feature, but indeed it should be observable and configurable.