diff options
author | 2023-03-22 20:24:01 -0700 | |
---|---|---|
committer | 2023-03-22 22:53:02 -0700 | |
commit | 8d1608d70927747da9c1a8770edf7b6ee68f8ebc (patch) | |
tree | 62a2fcea2891964abe076315d003935823296600 /net/ipv4/bpf_tcp_ca.c | |
parent | bpf: Create links for BPF struct_ops maps. (diff) | |
download | wireguard-linux-8d1608d70927747da9c1a8770edf7b6ee68f8ebc.tar.xz wireguard-linux-8d1608d70927747da9c1a8770edf7b6ee68f8ebc.zip |
libbpf: Create a bpf_link in bpf_map__attach_struct_ops().
bpf_map__attach_struct_ops() was creating a dummy bpf_link as a
placeholder, but now it is constructing an authentic one by calling
bpf_link_create() if the map has the BPF_F_LINK flag.
You can flag a struct_ops map with BPF_F_LINK by calling
bpf_map__set_map_flags().
Signed-off-by: Kui-Feng Lee <kuifeng@meta.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20230323032405.3735486-5-kuifeng@meta.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'net/ipv4/bpf_tcp_ca.c')
0 files changed, 0 insertions, 0 deletions