From 954e0f8699e9388668fa87581c40fb7632ef7ef4 Mon Sep 17 00:00:00 2001 From: Lorenz Bauer Date: Thu, 11 Jun 2020 15:06:29 +0100 Subject: sys/linux: update bpf_attach_args Attaching and detaching can be done on some map types (sockmap) and the current network namespace as well. --- sys/linux/bpf.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sys/linux') diff --git a/sys/linux/bpf.txt b/sys/linux/bpf.txt index 4e543e441..9fef31e31 100644 --- a/sys/linux/bpf.txt +++ b/sys/linux/bpf.txt @@ -400,8 +400,13 @@ bpf_obj_get { file_flags flags[bpf_open_flags, int32] } +bpf_attach_targets [ + cgroup fd_cgroup[opt] + map fd_bpf_map[opt] +] + bpf_attach_arg { - target_fd fd_cgroup + target_fd bpf_attach_targets attach_bpf_fd fd_bpf_prog type flags[bpf_attach_type, int32] flags flags[bpf_attach_flags, int32] @@ -409,7 +414,7 @@ bpf_attach_arg { } bpf_detach_arg { - target const[0, int32] + target bpf_attach_targets prog fd_bpf_prog type flags[bpf_attach_type, int32] flags const[0, int32] -- cgit mrf-deployment