diff options
author | Kuniyuki Iwashima <kuniyu@amazon.co.jp> | 2021-08-14 04:57:15 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-08-15 10:13:32 +0300 |
commit | 2c860a43dd77f969bb959336a2f743d7103a8f63 (patch) | |
tree | 86ef0c1115eda01220a5ffa8053e48a1394a43fc /include/linux/btf_ids.h | |
parent | d1bf7c4d5deae6685a42463f4d29418fd2515d05 (diff) | |
download | linux-2c860a43dd77f969bb959336a2f743d7103a8f63.tar.xz |
bpf: af_unix: Implement BPF iterator for UNIX domain socket.
This patch implements the BPF iterator for the UNIX domain socket.
Currently, the batch optimisation introduced for the TCP iterator in the
commit 04c7820b776f ("bpf: tcp: Bpf iter batching and lock_sock") is not
used for the UNIX domain socket. It will require replacing the big lock
for the hash table with small locks for each hash list not to block other
processes.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210814015718.42704-2-kuniyu@amazon.co.jp
Diffstat (limited to 'include/linux/btf_ids.h')
-rw-r--r-- | include/linux/btf_ids.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/btf_ids.h b/include/linux/btf_ids.h index 57890b357f85..bed4b9964581 100644 --- a/include/linux/btf_ids.h +++ b/include/linux/btf_ids.h @@ -172,7 +172,8 @@ extern struct btf_id_set name; BTF_SOCK_TYPE(BTF_SOCK_TYPE_TCP_TW, tcp_timewait_sock) \ BTF_SOCK_TYPE(BTF_SOCK_TYPE_TCP6, tcp6_sock) \ BTF_SOCK_TYPE(BTF_SOCK_TYPE_UDP, udp_sock) \ - BTF_SOCK_TYPE(BTF_SOCK_TYPE_UDP6, udp6_sock) + BTF_SOCK_TYPE(BTF_SOCK_TYPE_UDP6, udp6_sock) \ + BTF_SOCK_TYPE(BTF_SOCK_TYPE_UNIX, unix_sock) enum { #define BTF_SOCK_TYPE(name, str) name, |