diff options
| author | Kui-Feng Lee <[email protected]> | 2023-03-22 20:24:01 -0700 |
|---|---|---|
| committer | Martin KaFai Lau <[email protected]> | 2023-03-22 22:53:02 -0700 |
| commit | 8d1608d70927747da9c1a8770edf7b6ee68f8ebc (patch) | |
| tree | 62a2fcea2891964abe076315d003935823296600 /include/linux | |
| parent | 68b04864ca425d1894c96b8141d4fba1181f11cb (diff) | |
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 <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions