diff options
author | Stanislav Fomichev <sdf@google.com> | 2020-07-06 16:01:26 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-07-08 01:07:35 +0200 |
commit | e8b012e9fabe7eafc1b2c72414e174547683860d (patch) | |
tree | a46414a2368bf118aa68270242a7b5fe5519ce09 /tools/include | |
parent | f5836749c9c04a10decd2742845ad4870965fdef (diff) | |
download | linux-stable-e8b012e9fabe7eafc1b2c72414e174547683860d.tar.gz linux-stable-e8b012e9fabe7eafc1b2c72414e174547683860d.tar.bz2 linux-stable-e8b012e9fabe7eafc1b2c72414e174547683860d.zip |
libbpf: Add support for BPF_CGROUP_INET_SOCK_RELEASE
Add auto-detection for the cgroup/sock_release programs.
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200706230128.4073544-3-sdf@google.com
Diffstat (limited to 'tools/include')
-rw-r--r-- | tools/include/uapi/linux/bpf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index da9bf35a26f8..548a749aebb3 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -226,6 +226,7 @@ enum bpf_attach_type { BPF_CGROUP_INET4_GETSOCKNAME, BPF_CGROUP_INET6_GETSOCKNAME, BPF_XDP_DEVMAP, + BPF_CGROUP_INET_SOCK_RELEASE, __MAX_BPF_ATTACH_TYPE }; |