diff options
| author | Jordan Rife <[email protected]> | 2025-05-02 16:15:25 +0000 |
|---|---|---|
| committer | Martin KaFai Lau <[email protected]> | 2025-05-02 19:07:53 +0000 |
| commit | 4a0614e18c2d1f277a8dbd02c06f6a847e359eee (patch) | |
| tree | 05175dd3163208004b6ca33f20b6ff0c9f748a01 /tools/testing/selftests/bpf/progs/bpf_tracing_net.h | |
| parent | bpf: udp: Avoid socket skips and repeats during iteration (diff) | |
| download | kernel-4a0614e18c2d1f277a8dbd02c06f6a847e359eee.tar.gz kernel-4a0614e18c2d1f277a8dbd02c06f6a847e359eee.zip | |
selftests/bpf: Return socket cookies from sock_iter_batch progs
Extend the iter_udp_soreuse and iter_tcp_soreuse programs to write the
cookie of the current socket, so that we can track the identity of the
sockets that the iterator has seen so far. Update the existing do_test
function to account for this change to the iterator program output. At
the same time, teach both programs to work with AF_INET as well.
Signed-off-by: Jordan Rife <[email protected]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/bpf_tracing_net.h')
| -rw-r--r-- | tools/testing/selftests/bpf/progs/bpf_tracing_net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/progs/bpf_tracing_net.h b/tools/testing/selftests/bpf/progs/bpf_tracing_net.h index 659694162739..17db400f0e0d 100644 --- a/tools/testing/selftests/bpf/progs/bpf_tracing_net.h +++ b/tools/testing/selftests/bpf/progs/bpf_tracing_net.h @@ -128,6 +128,7 @@ #define sk_refcnt __sk_common.skc_refcnt #define sk_state __sk_common.skc_state #define sk_net __sk_common.skc_net +#define sk_rcv_saddr __sk_common.skc_rcv_saddr #define sk_v6_daddr __sk_common.skc_v6_daddr #define sk_v6_rcv_saddr __sk_common.skc_v6_rcv_saddr #define sk_flags __sk_common.skc_flags |
