samples: bpf: Add an option for printing extra statistics in xdpsock
authorCiara Loftus <ciara.loftus@intel.com>
Wed, 8 Jul 2020 07:28:34 +0000 (07:28 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 13 Jul 2020 22:32:56 +0000 (15:32 -0700)
commitb36c3206f9ef3ea2844e9092c12d29c0d1f56c54
tree5e623949d3348abf4d22bc114e9cdb982bc9c3b2
parent8aa5a33578e9685d06020bd10d1637557423e945
samples: bpf: Add an option for printing extra statistics in xdpsock

Introduce the --extra-stats (or simply -x) flag to the xdpsock application
which prints additional statistics alongside the regular rx and tx
counters. The new statistics printed report error conditions eg. rx ring
full, invalid descriptors, etc.

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200708072835.4427-3-ciara.loftus@intel.com
samples/bpf/xdpsock_user.c