diff options
| author | Andrii Nakryiko <andrii@kernel.org> | 2022-11-12 00:10:11 +0300 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2022-11-12 00:18:39 +0300 |
| commit | 0f7dc423a5dcad488e1d8f8f34d5572600a86471 (patch) | |
| tree | cd82bf12012f8d4ed6b33a969a94750ecd1e48f6 /include/uapi | |
| parent | e4c9cf0ce8c413c2030e8fb215551d7e0582ee7b (diff) | |
| parent | 8cac7a59b252732d8427ebc29c3fc6c36ff653e1 (diff) | |
| download | linux-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')
| -rw-r--r-- | include/uapi/linux/bpf.h | 1 |
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 */ |
