net: Add additional bit to support clockid_t timestamp type
authorAbhishek Chauhan <quic_abchauha@quicinc.com>
Thu, 9 May 2024 21:18:33 +0000 (14:18 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 23 May 2024 21:14:36 +0000 (14:14 -0700)
commit1693c5db6ab8262e6f5263f9d211855959aa5acd
tree2ef6162311bd961a13847ea4a9d611055aa9a124
parent4d25ca2d6801cfcf26f7f39c561611ba5be99bf8
net: Add additional bit to support clockid_t timestamp type

tstamp_type is now set based on actual clockid_t compressed
into 2 bits.

To make the design scalable for future needs this commit bring in
the change to extend the tstamp_type:1 to tstamp_type:2 to support
other clockid_t timestamp.

We now support CLOCK_TAI as part of tstamp_type as part of this
commit with existing support CLOCK_MONOTONIC and CLOCK_REALTIME.

Signed-off-by: Abhishek Chauhan <quic_abchauha@quicinc.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20240509211834.3235191-3-quic_abchauha@quicinc.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
include/linux/skbuff.h
include/uapi/linux/bpf.h
net/core/filter.c
net/ipv4/ip_output.c
net/ipv4/raw.c
net/ipv4/tcp_ipv4.c
net/ipv6/ip6_output.c
net/ipv6/raw.c
net/ipv6/tcp_ipv6.c
net/packet/af_packet.c
tools/include/uapi/linux/bpf.h