]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit8de0e8ba973f710346f61e52b86df199b20d23b8
tree2fb513527b5a538c12c41ceeeeb3a0525d04d03f
parent97c33610acc596f318f3ec8d644ca70aeac30a7f
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