diff options
| author | 2026-10-08 18:06:47 +0800 | |
|---|---|---|
| committer | 2026-10-13 15:32:47 +0200 | |
| commit | 0bba48256b0aa86e84a08d69b4410018bd8ffc67 (patch) | |
| tree | fc89d92d89beece457df2995c1525483085f4faf /scripts/Makefile.thinlto | |
| parent | net: core: use the packet's L3 protocol for the GSO size limit (diff) | |
net: core: factor out the GSO device limit check
gso_features_check() decides whether an egress device can offload a GSO
skb as a single TSO frame by comparing the segment count and the frame
length against the device limits. The resegmentation path added by a
later patch caps the MSS segments per output skb and needs the same
features computed without those limits, so put the two tests in a helper
and gate them with one flag.
__netif_skb_features() takes that flag and takes the place of
netif_skb_features(), which becomes an inline wrapper in netdevice.h and
passes the flag set. Existing callers keep their call, and the
resegmentation path asks for the features without the limit checks.
No functional changes.
Reviewed-by: Willem de Bruijn <willemb@google.com>
Assisted-by: LLM
Signed-off-by: Wang Zhan <wang.zhan@smartx.com>
Link: https://patch.msgid.link/20261008100651.2534957-3-wang.zhan@smartx.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
