diff options
author | Yonghong Song <yhs@fb.com> | 2020-06-23 16:08:12 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-06-24 18:37:59 -0700 |
commit | 9e8ca27afab6c92477b459f6a5d2af0cd3197c20 (patch) | |
tree | 921d5f3e7983888dff71e9fcd9209d2d572fdcfa /scripts/bpf_helpers_doc.py | |
parent | 478cfbdf5f13dfe09cfd0b1cbac821f5e27f6108 (diff) | |
download | lwn-9e8ca27afab6c92477b459f6a5d2af0cd3197c20.tar.gz lwn-9e8ca27afab6c92477b459f6a5d2af0cd3197c20.zip |
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 <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200623230812.3988347-1-yhs@fb.com
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions