]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net_tstamp: add SCM_TS_OPT_ID for RAW sockets
authorVadim Fedorenko <vadfed@meta.com>
Tue, 1 Oct 2024 12:57:15 +0000 (05:57 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Oct 2024 18:52:19 +0000 (11:52 -0700)
commit822b5bc6db55f1c3ea51659c423784ac6919ddd4
treef8a0c32158c6210a46f3a23e8a3b48e5d1eda96d
parent4aecca4c76808f3736056d18ff510df80424bc9f
net_tstamp: add SCM_TS_OPT_ID for RAW sockets

The last type of sockets which supports SOF_TIMESTAMPING_OPT_ID is RAW
sockets. To add new option this patch converts all callers (direct and
indirect) of _sock_tx_timestamp to provide sockcm_cookie instead of
tsflags. And while here fix __sock_tx_timestamp to receive tsflags as
__u32 instead of __u16.

Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Signed-off-by: Vadim Fedorenko <vadfed@meta.com>
Link: https://patch.msgid.link/20241001125716.2832769-3-vadfed@meta.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/sock.h
net/can/raw.c
net/ipv4/ip_output.c
net/ipv4/raw.c
net/ipv4/tcp.c
net/ipv6/ip6_output.c
net/ipv6/raw.c
net/packet/af_packet.c
net/socket.c