]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb3cf0fd3dc09951d0fcd9bc1619e44d1b3c92dd
tree7185c5ca061b68c48b239ae8d2df958ac19223a8
parented6ca125478b583378204d7a8f3d219d38c1d6af
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