OSDN Git Service

samples/bpf: Add quiet option to xdpsock
authorMagnus Karlsson <magnus.karlsson@intel.com>
Thu, 10 Sep 2020 08:31:06 +0000 (10:31 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 15 Sep 2020 01:38:11 +0000 (18:38 -0700)
commit74e00676d7f1f3c0676fdfffcf404a09a037bfe3
treeb783876e31e2ac4038266ebec52a2158308a9cb1
parent5a2a0dd88f0f267ac5953acd81050ae43a82201f
samples/bpf: Add quiet option to xdpsock

Add a quiet option (-Q) that disables the statistics print outs of
xdpsock. This is good to have when measuring 0% loss rate performance
as it will be quite terrible if the application uses printfs.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/1599726666-8431-4-git-send-email-magnus.karlsson@gmail.com
samples/bpf/xdpsock_user.c