samples/bpf: xdp_monitor use err code from tracepoint xdp:xdp_devmap_xmit
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 24 May 2018 14:46:22 +0000 (16:46 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 25 May 2018 01:36:15 +0000 (18:36 -0700)
commita570e48fee1bc26f47aba2e1493f96a03bed3c8f
tree069715fbcf7b0f4b73103861fd0a111e143b5705
parente74de52e55c092e7113f839e74400ce9dbe12ceb
samples/bpf: xdp_monitor use err code from tracepoint xdp:xdp_devmap_xmit

Update xdp_monitor to use the recently added err code introduced
in tracepoint xdp:xdp_devmap_xmit, to show if the drop count is
caused by some driver general delivery problem.  Other kind of drops
will likely just be more normal TX space issues.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
samples/bpf/xdp_monitor_kern.c
samples/bpf/xdp_monitor_user.c