]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Feb 2018 18:49:49 +0000 (13:49 -0500)
commit0f4b21447ee7eca7afe78f3cac01ff933ed86c2f
tree8962cd92d2fc5c8c323fa5d0fccdf18c1638e26b
parent36b4b22c3440632d80fa2cc27b16eda55c348ae9
tuntap: correctly add the missing XDP flush

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: aa34d85a2e5f ("tap: XDP support")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c