net: add missing SOF_TIMESTAMPING_OPT_ID support
authorWillem de Bruijn <willemb@google.com>
Mon, 17 Dec 2018 17:24:00 +0000 (12:24 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2018 07:27:00 +0000 (23:27 -0800)
commit8f932f762e7928d250e21006b00ff9b7718b0a64
treee40f35dc20a9d45d774b78b9d42e2f4b0e8b2a64
parentfbfb2321e950918b430e7225546296b2dcadf725
net: add missing SOF_TIMESTAMPING_OPT_ID support

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>
include/net/sock.h
net/can/raw.c
net/ipv4/raw.c
net/ipv6/raw.c
net/packet/af_packet.c