]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: gso: restore ids of outer ip headers correctly
authorRichard Gobert <richardbgobert@gmail.com>
Tue, 23 Sep 2025 08:59:06 +0000 (10:59 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 25 Sep 2025 10:42:49 +0000 (12:42 +0200)
commit3271f19bf7b9df665549666d789b9f126b4420c7
tree434a81b9bccc2c4583b065ecbfc74f292d2a3207
parent21f7484220ace6c355cb0023d14d83da6fe5843d
net: gso: restore ids of outer ip headers correctly

Currently, NETIF_F_TSO_MANGLEID indicates that the inner-most ID can
be mangled. Outer IDs can always be mangled.

Make GSO preserve outer IDs by default, with NETIF_F_TSO_MANGLEID allowing
both inner and outer IDs to be mangled.

This commit also modifies a few drivers that use SKB_GSO_FIXEDID directly.

Signed-off-by: Richard Gobert <richardbgobert@gmail.com>
Reviewed-by: Edward Cree <ecree.xilinx@gmail.com> # for sfc
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20250923085908.4687-4-richardbgobert@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Documentation/networking/segmentation-offloads.rst
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/sfc/ef100_tx.c
include/linux/netdevice.h
include/linux/skbuff.h
net/core/dev.c
net/ipv4/af_inet.c
net/ipv4/tcp_offload.c