tun: implement flush flag for ndo_xdp_xmit
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 31 May 2018 09:00:03 +0000 (11:00 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 3 Jun 2018 15:11:34 +0000 (08:11 -0700)
commit0c9d917b7d74b758af1b4e37996af48d95b2ef33
tree379c0c7124939d33393c5c73ce1c86be6df17e51
parent5e2e609522d67750d4b3c0321d1917bb109ac41b
tun: implement flush flag for ndo_xdp_xmit

When passed the XDP_XMIT_FLUSH flag tun_xdp_xmit now performs the same
kind of socket wake up as in tun_xdp_flush(). The wake up code from
tun_xdp_flush is generalized and shared with tun_xdp_xmit.

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