aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/fungible/funeth/funeth_main.c
diff options
context:
space:
mode:
authorDimitris Michailidis <d.michailidis@fungible.com>2022-06-22 15:37:03 -0700
committerJakub Kicinski <kuba@kernel.org>2022-06-24 16:21:05 -0700
commit6ce1df88b1f31f0e19372afe127cf5678d63c559 (patch)
tree8225009f3d56f90b9daecedea8927c08527ee26a /drivers/net/ethernet/fungible/funeth/funeth_main.c
parentMerge branch 'net-pcs-lynx-consolidate-gigabit-code' (diff)
downloadlinux-dev-6ce1df88b1f31f0e19372afe127cf5678d63c559.tar.xz
linux-dev-6ce1df88b1f31f0e19372afe127cf5678d63c559.zip
net/funeth: Support UDP segmentation offload
Handle skbs with SKB_GSO_UDP_L4, advertise the offload in features, and add an ethtool counter for it. Small change to existing TSO code due to UDP's different header length. Signed-off-by: Dimitris Michailidis <dmichail@fungible.com> Link: https://lore.kernel.org/r/20220622223703.59886-1-dmichail@fungible.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/fungible/funeth/funeth_main.c')
-rw-r--r--drivers/net/ethernet/fungible/funeth/funeth_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/fungible/funeth/funeth_main.c b/drivers/net/ethernet/fungible/funeth/funeth_main.c
index 9485cf699c5d..f247b7ad3a88 100644
--- a/drivers/net/ethernet/fungible/funeth/funeth_main.c
+++ b/drivers/net/ethernet/fungible/funeth/funeth_main.c
@@ -1357,7 +1357,8 @@ static const struct net_device_ops fun_netdev_ops = {
#define GSO_ENCAP_FLAGS (NETIF_F_GSO_GRE | NETIF_F_GSO_IPXIP4 | \
NETIF_F_GSO_IPXIP6 | NETIF_F_GSO_UDP_TUNNEL | \
NETIF_F_GSO_UDP_TUNNEL_CSUM)
-#define TSO_FLAGS (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN)
+#define TSO_FLAGS (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN | \
+ NETIF_F_GSO_UDP_L4)
#define VLAN_FEAT (NETIF_F_SG | NETIF_F_HW_CSUM | TSO_FLAGS | \
GSO_ENCAP_FLAGS | NETIF_F_HIGHDMA)