aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorMaciej Fijalkowski <[email protected]>2020-02-05 04:58:34 +0000
committerDaniel Borkmann <[email protected]>2020-02-05 21:06:09 +0000
commit8ed47e140867a6e7d56170f325c8d4fdee6d6b66 (patch)
treed664c62878db152984cb9317a94e5d858515542b /tools/bpf/bpftool/prog.c
parentsamples: bpf: Drop doubled variable declaration in xdpsock (diff)
downloadkernel-8ed47e140867a6e7d56170f325c8d4fdee6d6b66.tar.gz
kernel-8ed47e140867a6e7d56170f325c8d4fdee6d6b66.zip
samples: bpf: Allow for -ENETDOWN in xdpsock
ndo_xsk_wakeup() can return -ENETDOWN and there's no particular reason to bail the whole application out on that case. Let's check in kick_tx() whether errno was set to mentioned value and basically allow application to further process frames. Fixes: 248c7f9c0e21 ("samples/bpf: convert xdpsock to use libbpf for AF_XDP access") Reported-by: Cameron Elliott <[email protected]> Signed-off-by: Maciej Fijalkowski <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Björn Töpel <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions