]> git.baikalelectronics.ru Git - kernel.git/commit
xsk: add sock_diag interface for AF_XDP
authorBjörn Töpel <bjorn.topel@intel.com>
Thu, 24 Jan 2019 18:59:39 +0000 (19:59 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 25 Jan 2019 00:50:03 +0000 (01:50 +0100)
commit6e4fe0a8aee0f0e2b54f7e5de02be3e5d32bdc49
tree910d7378db7613ea6d36759dce35211dfb9766b8
parent48aa64a43b03ea185ec109c46818554e2a4404db
xsk: add sock_diag interface for AF_XDP

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>
include/uapi/linux/xdp_diag.h [new file with mode: 0644]
net/xdp/Kconfig
net/xdp/Makefile
net/xdp/xsk.c
net/xdp/xsk.h [new file with mode: 0644]
net/xdp/xsk_diag.c [new file with mode: 0644]