[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190118130305.11504-1-bjorn.topel@gmail.com>
Date: Fri, 18 Jan 2019 14:03:02 +0100
From: bjorn.topel@...il.com
To: ast@...nel.org, daniel@...earbox.net, netdev@...r.kernel.org
Cc: Björn Töpel <bjorn.topel@...el.com>,
magnus.karlsson@...el.com, magnus.karlsson@...il.com
Subject: [PATCH bpf-next 0/3] AF_XDP: add socket monitoring support
From: Björn Töpel <bjorn.topel@...el.com>
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.
Thanks,
Björn
Björn Töpel (3):
net: xsk: track AF_XDP sockets on a per-netns list
xsk: add id to umem
xsk: add sock_diag interface for AF_XDP
include/net/net_namespace.h | 4 +
include/net/netns/xdp.h | 13 +++
include/net/xdp_sock.h | 1 +
include/uapi/linux/xdp_diag.h | 72 +++++++++++++
net/xdp/Kconfig | 8 ++
net/xdp/Makefile | 1 +
net/xdp/xdp_umem.c | 13 +++
net/xdp/xsk.c | 36 ++++++-
net/xdp/xsk.h | 12 +++
net/xdp/xsk_diag.c | 192 ++++++++++++++++++++++++++++++++++
10 files changed, 347 insertions(+), 5 deletions(-)
create mode 100644 include/net/netns/xdp.h
create mode 100644 include/uapi/linux/xdp_diag.h
create mode 100644 net/xdp/xsk.h
create mode 100644 net/xdp/xsk_diag.c
--
2.19.1
Powered by blists - more mailing lists