diff options
author | 2021-09-13 18:47:32 -0700 | |
---|---|---|
committer | 2021-09-14 15:49:24 -0700 | |
commit | 5532dfd42e4846e84d346a6dfe01e477e35baa65 (patch) | |
tree | 81f401da9d5eab5a1a06afc81189938aaab4c61f /net/ipv4/tcp_fastopen.c | |
parent | libbpf: Ensure BPF prog types are set before relocations (diff) | |
download | wireguard-linux-5532dfd42e4846e84d346a6dfe01e477e35baa65.tar.xz wireguard-linux-5532dfd42e4846e84d346a6dfe01e477e35baa65.zip |
libbpf: Simplify BPF program auto-attach code
Remove the need to explicitly pass bpf_sec_def for auto-attachable BPF
programs, as it is already recorded at bpf_object__open() time for all
recognized type of BPF programs. This further reduces number of explicit
calls to find_sec_def(), simplifying further refactorings.
No functional changes are done by this patch.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20210914014733.2768-4-andrii@kernel.org
Diffstat (limited to 'net/ipv4/tcp_fastopen.c')
0 files changed, 0 insertions, 0 deletions