diff options
author | Alexander Lobakin <alobakin@pm.me> | 2021-01-22 19:19:48 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-24 05:16:24 +0100 |
commit | 6f1c0ea133a6e4a193a7b285efe209664caeea43 (patch) | |
tree | 72facc15a7d242f7c747a3c687226334171bb0f2 /net/ethtool/common.c | |
parent | Merge branch 'remove-unneeded-phy-time-stamping-option' (diff) | |
download | linux-6f1c0ea133a6e4a193a7b285efe209664caeea43.tar.xz linux-6f1c0ea133a6e4a193a7b285efe209664caeea43.zip |
net: introduce a netdev feature for UDP GRO forwarding
Introduce a new netdev feature, NETIF_F_GRO_UDP_FWD, to allow user
to turn UDP GRO on and off for forwarding.
Defaults to off to not change current datapath.
Suggested-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ethtool/common.c')
-rw-r--r-- | net/ethtool/common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ethtool/common.c b/net/ethtool/common.c index 24036e3055a1..181220101a6e 100644 --- a/net/ethtool/common.c +++ b/net/ethtool/common.c @@ -68,6 +68,7 @@ const char netdev_features_strings[NETDEV_FEATURE_COUNT][ETH_GSTRING_LEN] = { [NETIF_F_HW_TLS_RX_BIT] = "tls-hw-rx-offload", [NETIF_F_GRO_FRAGLIST_BIT] = "rx-gro-list", [NETIF_F_HW_MACSEC_BIT] = "macsec-hw-offload", + [NETIF_F_GRO_UDP_FWD_BIT] = "rx-udp-gro-forwarding", }; const char |