diff options
author | Daniel Borkmann <[email protected]> | 2023-10-24 23:49:00 +0200 |
---|---|---|
committer | Martin KaFai Lau <[email protected]> | 2023-10-24 16:06:58 -0700 |
commit | 05c31b4ab20527c4d1695130aaecc54ef59a0e54 (patch) | |
tree | 9a4322a3c4028b65257b7798a5409b8e8bbecfde /scripts/generate_rust_analyzer.py | |
parent | 5c1b994de4be8a27afa3281be2ff58b38e8bc50c (diff) |
libbpf: Add link-based API for netkit
This adds bpf_program__attach_netkit() API to libbpf. Overall it is very
similar to tcx. The API looks as following:
LIBBPF_API struct bpf_link *
bpf_program__attach_netkit(const struct bpf_program *prog, int ifindex,
const struct bpf_netkit_opts *opts);
The struct bpf_netkit_opts is done in similar way as struct bpf_tcx_opts
for supporting bpf_mprog control parameters. The attach location for the
primary and peer device is derived from the program section "netkit/primary"
and "netkit/peer", respectively.
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions