]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
tuntap: correctly add the missing XDP flush
authorJason Wang <jasowang@redhat.com>
Sat, 24 Feb 2018 03:32:26 +0000 (11:32 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 15 Mar 2018 13:28:16 +0000 (08:28 -0500)
commitbf2b719022c3d308dc2d7c334333373306a0ee6d
tree0287031c23b2c1ca6cb36b9018feb246955d04b6
parent18f3f572395819818f6fb7b1caf9a3dff46bb62f
tuntap: correctly add the missing XDP flush

BugLink: http://bugs.launchpad.net/bugs/1755179
[ Upstream commit 1bb4f2e868a2891ab8bc668b8173d6ccb8c4ce6f ]

We don't flush batched XDP packets through xdp_do_flush_map(), this
will cause packets stall at TX queue. Consider we don't do XDP on NAPI
poll(), the only possible fix is to call xdp_do_flush_map()
immediately after xdp_do_redirect().

Note, this in fact won't try to batch packets through devmap, we could
address in the future.

Reported-by: Christoffer Dall <christoffer.dall@linaro.org>
Fixes: 761876c857cb ("tap: XDP support")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/net/tun.c