summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2022-11-12 00:10:11 +0300
committerAndrii Nakryiko <andrii@kernel.org>2022-11-12 00:18:39 +0300
commit0f7dc423a5dcad488e1d8f8f34d5572600a86471 (patch)
treecd82bf12012f8d4ed6b33a969a94750ecd1e48f6 /include/uapi/linux
parente4c9cf0ce8c413c2030e8fb215551d7e0582ee7b (diff)
parent8cac7a59b252732d8427ebc29c3fc6c36ff653e1 (diff)
downloadlinux-0f7dc423a5dcad488e1d8f8f34d5572600a86471.tar.xz
Merge branch 'bpf: Add hwtstamp field for the sockops prog'
Martin KaFai Lau says: ==================== From: Martin KaFai Lau <martin.lau@kernel.org> The bpf-tc prog has already been able to access the skb_hwtstamps(skb)->hwtstamp. This set extends the same hwtstamp access to the sockops prog. v2: - Fixed the btf_dump selftest which depends on the last member of 'struct bpf_sock_ops'. ==================== Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/bpf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index 94659f6b3395..fb4c911d2a03 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -6445,6 +6445,7 @@ struct bpf_sock_ops {
* the outgoing header has not
* been written yet.
*/
+ __u64 skb_hwtstamp;
};
/* Definitions for bpf_sock_ops_cb_flags */