ipv6: Add hop-by-hop header to jumbograms in ip6_output
authorCoco Li <lixiaoyan@google.com>
Fri, 13 May 2022 18:34:04 +0000 (11:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2022 09:18:56 +0000 (10:18 +0100)
commit80e425b613421911f89664663a7060216abcaed2
tree6e31830a826091a89ce2bc08e396e9a9851f1116
parent0fe79f28bfaf73b66b7b1562d2468f94aa03bd12
ipv6: Add hop-by-hop header to jumbograms in ip6_output

Instead of simply forcing a 0 payload_len in IPv6 header,
implement RFC 2675 and insert a custom extension header.

Note that only TCP stack is currently potentially generating
jumbograms, and that this extension header is purely local,
it wont be sent on a physical link.

This is needed so that packet capture (tcpdump and friends)
can properly dissect these large packets.

Signed-off-by: Coco Li <lixiaoyan@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ipv6.h
net/ipv6/ip6_output.c