diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2018-08-08 23:00:45 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-08-09 21:50:44 +0200 |
commit | 1bf9116d0866a649104a5dfa008c302ad54d1e02 (patch) | |
tree | e758a1cbc47dcaff5e9c13ee2b336dd48994c881 /samples/kfifo | |
parent | samples/bpf: xdp_redirect_cpu adjustment to reproduce teardown race easier (diff) | |
download | linux-1bf9116d0866a649104a5dfa008c302ad54d1e02.tar.xz linux-1bf9116d0866a649104a5dfa008c302ad54d1e02.zip |
xdp: fix bug in devmap teardown code path
Like cpumap teardown, the devmap teardown code also flush remaining
xdp_frames, via bq_xmit_all() in case map entry is removed. The code
can call xdp_return_frame_rx_napi, from the the wrong context, in-case
ndo_xdp_xmit() fails.
Fixes: 389ab7f01af9 ("xdp: introduce xdp_return_frame_rx_napi")
Fixes: 735fc4054b3a ("xdp: change ndo_xdp_xmit API to support bulking")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples/kfifo')
0 files changed, 0 insertions, 0 deletions