]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: add missing SOF_TIMESTAMPING_OPT_ID support
authorWillem de Bruijn <willemb@google.com>
Wed, 6 Apr 2022 19:29:56 +0000 (22:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Apr 2022 12:15:04 +0000 (14:15 +0200)
commitcd7295d0bea3f56a3f024f1b22d50a0f3fc727f1
tree6c570c7aa372f2bf7f2fc5c5b2cdb4354f6a3eec
parent3940ecfccfffec8385b64551fd73a12c02049437
net: add missing SOF_TIMESTAMPING_OPT_ID support

[ Upstream commit 8f932f762e7928d250e21006b00ff9b7718b0a64 ]

SOF_TIMESTAMPING_OPT_ID is supported on TCP, UDP and RAW sockets.
But it was missing on RAW with IPPROTO_IP, PF_PACKET and CAN.

Add skb_setup_tx_timestamp that configures both tx_flags and tskey
for these paths that do not need corking or use bytestream keys.

Fixes: 09c2d251b707 ("net-timestamp: add key to disambiguate concurrent datagrams")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/sock.h
net/can/raw.c
net/ipv4/raw.c
net/ipv6/raw.c
net/packet/af_packet.c