Re: [PATCH RFC net-next 06/11] udp: add gso support to virtual devices
From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date: 2018-04-18 03:28:14
On Tue, Apr 17, 2018 at 8:43 PM, Dimitris Michailidis [off-list ref] wrote:
On Tue, Apr 17, 2018 at 1:00 PM, Willem de Bruijn [off-list ref] wrote:quoted
From: Willem de Bruijn <willemb@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 <willemb@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.