aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/bpf_iter_ipv6_route.c
diff options
context:
space:
mode:
authorYonghong Song <[email protected]>2020-06-23 16:08:12 -0700
committerAlexei Starovoitov <[email protected]>2020-06-24 18:37:59 -0700
commit9e8ca27afab6c92477b459f6a5d2af0cd3197c20 (patch)
tree921d5f3e7983888dff71e9fcd9209d2d572fdcfa /tools/testing/selftests/bpf/progs/bpf_iter_ipv6_route.c
parent478cfbdf5f13dfe09cfd0b1cbac821f5e27f6108 (diff)
net: bpf: Add bpf_seq_afinfo in udp_iter_state
Similar to tcp_iter_state, a new field bpf_seq_afinfo is added to udp_iter_state to provide bpf udp iterator afinfo. This does not change /proc/net/{udp, udp6} behavior. But it enables bpf iterator to avoid get afinfo from PDE_DATA and iterate through all udp and udp6 sockets in one pass. Signed-off-by: Yonghong Song <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Martin KaFai Lau <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/bpf_iter_ipv6_route.c')
0 files changed, 0 insertions, 0 deletions