diff options
| author | Martin KaFai Lau <[email protected]> | 2022-11-07 23:04:18 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-11-11 21:18:14 +0000 |
| commit | 9bb053490f1a5a0914eb9f7b4116a0e4a95d4f8e (patch) | |
| tree | a44f6c828d0f65af2efde01d4149bc8ffcfa6c92 /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c | |
| parent | selftests/bpf: Fix xdp_synproxy compilation failure in 32-bit arch (diff) | |
| download | kernel-9bb053490f1a5a0914eb9f7b4116a0e4a95d4f8e.tar.gz kernel-9bb053490f1a5a0914eb9f7b4116a0e4a95d4f8e.zip | |
bpf: Add hwtstamp field for the sockops prog
The bpf-tc prog has already been able to access the
skb_hwtstamps(skb)->hwtstamp. This patch extends the same hwtstamp
access to the sockops prog.
In sockops, the skb is also available to the bpf prog during
the BPF_SOCK_OPS_PARSE_HDR_OPT_CB event. There is a use case
that the hwtstamp will be useful to the sockops prog to better
measure the one-way-delay when the sender has put the tx
timestamp in the tcp header option.
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c')
0 files changed, 0 insertions, 0 deletions
