Merge branch 'af-xdp-sock-diag'
Björn Töpel says:
====================
This series adds an AF_XDP 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 diagnostic provides information about the Rx/Tx/fill/completetion
rings, umem, memory usage and such. For a complete list, please refer
to the xsk_diag.c file.
The AF_XDP sock_diag interface is optional, and can be built as a
module. A separate patch series, adding ss(8) iproute2 support, will
follow.
v1->v2:
* Removed extra newline
* Zero-out all user-space facing structures prior setting the
members
* Added explicit "pad" member in _msg struct
* Removed unused variable "req" in xsk_diag_handler_dump()
Thanks to Daniel for reviewing the series!
====================
Signed-off-by:
Daniel Borkmann <daniel@iogearbox.net>
Showing
- include/net/net_namespace.h 4 additions, 0 deletionsinclude/net/net_namespace.h
- include/net/netns/xdp.h 13 additions, 0 deletionsinclude/net/netns/xdp.h
- include/net/xdp_sock.h 1 addition, 0 deletionsinclude/net/xdp_sock.h
- include/uapi/linux/xdp_diag.h 72 additions, 0 deletionsinclude/uapi/linux/xdp_diag.h
- net/xdp/Kconfig 8 additions, 0 deletionsnet/xdp/Kconfig
- net/xdp/Makefile 1 addition, 0 deletionsnet/xdp/Makefile
- net/xdp/xdp_umem.c 13 additions, 0 deletionsnet/xdp/xdp_umem.c
- net/xdp/xsk.c 31 additions, 5 deletionsnet/xdp/xsk.c
- net/xdp/xsk.h 12 additions, 0 deletionsnet/xdp/xsk.h
- net/xdp/xsk_diag.c 191 additions, 0 deletionsnet/xdp/xsk_diag.c
Loading
Please register or sign in to comment