]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - net/xdp/xsk.c
xsk: statistics support
authorMagnus Karlsson <magnus.karlsson@intel.com>
Wed, 2 May 2018 11:01:35 +0000 (13:01 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 3 May 2018 22:55:25 +0000 (15:55 -0700)
commitaf75d9e02d08dc55ce6a1e42e485465c630d7349
tree7185c5ca061b68c48b239ae8d2df958ac19223a8
parent35fcde7f8deb51b707b161bf19cbd22363aef2df
xsk: statistics support

In this commit, a new getsockopt is added: XDP_STATISTICS. This is
used to obtain stats from the sockets.

v2: getsockopt now returns size of stats structure.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/uapi/linux/if_xdp.h
net/xdp/xsk.c
net/xdp/xsk_queue.h