Skip to content

xsk: add new statistics

Ciara Loftus bpf netdev 1 version Applied

Status from this message: Applied. Thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3xsk: add new statisticsinclude/net/xdp_sock.h include/uapi/linux/if_xdp.h net/xdp/xsk.c +3 more+50 -70 replies
2/3samples: bpf: add an option for printing extra statistics in xdpsocksamples/bpf/xdpsock_user.c+85 -20 replies
3/3xsk: add xdp statistics to xsk_diaginclude/uapi/linux/xdp_diag.h net/xdp/xsk_diag.c+28 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBjörn Töpel
SeriesA-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next 0/3] xsk: add new statistics

This series introduces new statistics for af_xdp:
1. drops due to rx ring being full
2. drops due to fill ring being empty
3. failures pulling an item from the tx ring

These statistics should assist users debugging and troubleshooting peformance issues and packet drops.

The statistics are made available though the getsockopt and xsk_diag interfaces, and the ability to dump these extended statistics is made available in the xdpsock application via the --extra-stats or -x flag.

A separate patch which will add ss/iproute2 support will follow.

Ciara Loftus (3):
xsk: add new statistics
samples: bpf: add an option for printing extra statistics in xdpsock
xsk: add xdp statistics to xsk_diag

 include/net/xdp_sock.h            |  4 ++
 include/uapi/linux/if_xdp.h       |  5 +-
 include/uapi/linux/xdp_diag.h     | 11 ++++
 net/xdp/xsk.c                     | 36 +++++++++++--
 net/xdp/xsk_buff_pool.c           |  1 +
 net/xdp/xsk_diag.c                | 17 ++++++
 net/xdp/xsk_queue.h               |  6 +++
 samples/bpf/xdpsock_user.c        | 87 ++++++++++++++++++++++++++++++-
 tools/include/uapi/linux/if_xdp.h |  5 +-
 9 files changed, 163 insertions(+), 9 deletions(-)
Signature · 1 line
2.17.1