]> 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)
commit6edc2a4b78cd3643c263904b0088a70737edf353
tree7185c5ca061b68c48b239ae8d2df958ac19223a8
parentb053263a3f771bcd84289043d2365ec72617d3f3
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