packet: add TP_STATUS_GSO_TCP for tp_status
authorXin Long <lucien.xin@gmail.com>
Sat, 28 Jan 2023 15:58:37 +0000 (10:58 -0500)
committerJakub Kicinski <kuba@kernel.org>
Thu, 2 Feb 2023 04:54:27 +0000 (20:54 -0800)
commit8e08bb75b60f7f9ed319185cef80188b87d9b43a
tree56813da1812b3ed1726232d30e72b5fdbfac64d6
parent50e6fb5c6efb2b33b15ea490dfe355cb312f6eb5
packet: add TP_STATUS_GSO_TCP for tp_status

Introduce TP_STATUS_GSO_TCP tp_status flag to tell the af_packet user
that this is a TCP GSO packet. When parsing IPv4 BIG TCP packets in
tcpdump/libpcap, it can use tp_len as the IPv4 packet len when this
flag is set, as iph tot_len is set to 0 for IPv4 BIG TCP packets.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/if_packet.h
net/packet/af_packet.c