Thread (10 messages) read the whole thread 10 messages, 6 authors, 2026-02-04
STALE176d

[PATCH net-next 0/3] Single MSS length in UDP GSO_PARTIAL

From: Gal Pressman <hidden>
Date: 2026-01-25 12:17:18
Also in: linux-rdma

This series addresses an inconsistency in how UDP GSO_PARTIAL handles
the UDP header length field.

Currently, when GSO_PARTIAL segmentation is used, the UDP header length
contains the large MSS size, requiring drivers to manually adjust it
before transmitting. This is inconsistent with how tunnel GSO_PARTIAL
handles outer headers in UDP tunnels, where the length is set to the
single segment size.

This was originally suggested by Alexander Duyck back in 2018:
https://lore.kernel.org/netdev/CAKgT0UcdnUWgr3KQ=RnLKigokkiUuYefmL-ePpDvJOBNpKScFA@mail.gmail.com/ (local)

The first patch fixes the core UDP offload code to set the UDP length
field to the single segment size (gso_size + UDP header) instead of the
large MSS size. This provides hardware with a proper template length
value for final segmentation.

The subsequent patches remove the now redundant UDP header length
adjustments from the mlx5e and aquantia drivers, as the core code now
handles this correctly.
I couldn't find any other drivers that support UDP GSO_PARTIAL; idpf
supports UDP segmentation, but it does not use GSO_PARTIAL.

Gal Pressman (3):
  udp: gso: Use single MSS length in UDP header for GSO_PARTIAL
  net/mlx5e: Remove redundant UDP length adjustment with GSO_PARTIAL
  net: aquantia: Remove redundant UDP length adjustment with GSO_PARTIAL

 drivers/net/ethernet/aquantia/atlantic/aq_nic.c |  3 ---
 .../mellanox/mlx5/core/en_accel/en_accel.h      | 17 -----------------
 net/ipv4/udp_offload.c                          |  6 ++++--
 3 files changed, 4 insertions(+), 22 deletions(-)

-- 
2.40.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help