mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 18:11:56 +00:00
a36b38aa2a
This patch adds the sock_diag interface for querying sockets from user space. Tools like iproute2 ss(8) can use this interface to list open AF_XDP sockets. The user-space ABI is defined in linux/xdp_diag.h and includes netlink request and response structs. The request can query sockets and the response contains socket information about the rings, umems, inode and more. Signed-off-by: Björn Töpel <bjorn.topel@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
16 lines
369 B
Plaintext
16 lines
369 B
Plaintext
config XDP_SOCKETS
|
|
bool "XDP sockets"
|
|
depends on BPF_SYSCALL
|
|
default n
|
|
help
|
|
XDP sockets allows a channel between XDP programs and
|
|
userspace applications.
|
|
|
|
config XDP_SOCKETS_DIAG
|
|
tristate "XDP sockets: monitoring interface"
|
|
depends on XDP_SOCKETS
|
|
default n
|
|
help
|
|
Support for PF_XDP sockets monitoring interface used by the ss tool.
|
|
If unsure, say Y.
|