OSDN Git Service

bpf/xdp: devmap can avoid calling ndo_xdp_flush
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 31 May 2018 09:00:23 +0000 (11:00 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 3 Jun 2018 15:11:35 +0000 (08:11 -0700)
commitc1ece6b245bd12a57124da78abafbf8a511394d6
tree98d1d3475a3b6ca67e1f6eaa65fb4774fa1950cd
parent1e67575a5840908e33502b210a22509fe5d6ca53
bpf/xdp: devmap can avoid calling ndo_xdp_flush

The XDP_REDIRECT map devmap can avoid using ndo_xdp_flush, by instead
instructing ndo_xdp_xmit to flush via XDP_XMIT_FLUSH flag in
appropriate places.

Notice after this patch it is possible to remove ndo_xdp_flush
completely, as this is the last user of ndo_xdp_flush. This is left
for later patches, to keep driver changes separate.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/devmap.c