aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorLorenz Bauer <lmb@cloudflare.com>2020-06-11 15:06:29 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-06-11 21:10:50 +0200
commit954e0f8699e9388668fa87581c40fb7632ef7ef4 (patch)
tree98b8570156eb685cd32c9a36ad17075ad2e70cb7 /sys/linux
parent5c25fdab080e70769307f9a61abdb2c178365d86 (diff)
sys/linux: update bpf_attach_args
Attaching and detaching can be done on some map types (sockmap) and the current network namespace as well.
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/bpf.txt9
1 files changed, 7 insertions, 2 deletions
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]