]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: fix xdp_monitor user output for tracepoint exception
authorJesper Dangaard Brouer <brouer@redhat.com>
Tue, 17 Apr 2018 14:08:06 +0000 (16:08 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 18 Apr 2018 12:48:06 +0000 (14:48 +0200)
commitbb8333961010c84372714c25c4a760ff96ca971e
tree2fb513527b5a538c12c41ceeeeb3a0525d04d03f
parent79a220a0f69b4231f313afd12683188269f13fe2
samples/bpf: fix xdp_monitor user output for tracepoint exception

The variable rec_i contains an XDP action code not an error.
Thus, using err2str() was wrong, it should have been action2str().

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/bpf/xdp_monitor_user.c