aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorWang Zhan <wang.zhan@smartx.com>2026-10-08 18:06:46 +0800
committerPaolo Abeni <pabeni@redhat.com>2026-10-13 15:32:47 +0200
commitcc9dcb0e7a428ca43259bbee3350d786681265a3 (patch)
treeb302a26c736f85734b6076fcafd6b71d4f0a7852 /scripts/Makefile.thinlto
parentMerge branch 'tcp-fix-a-few-divide-by-zero-in-congestion-control-modules' (diff)
net: core: use the packet's L3 protocol for the GSO size limit
gso_features_check() compares the frame length against netif_get_gso_max_size(), which picks the IPv4 or the IPv6 limit from skb->protocol. A tag which is already inside the frame replaces that field with the VLAN ethertype, as skb_vlan_push() does, and an IPv6 packet is then measured against the IPv4 limit and segmented although the device could send it as one TSO frame. The lookup moves from netdevice.h into dev.c: vlan_get_protocol() reads the L3 protocol from behind an in-frame tag, while if_vlan.h includes netdevice.h, so an inline in that header cannot call it. dev.c is the only file which calls the lookup, so it becomes a static helper there. 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-2-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