]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "tuntap: add missing xdp flush"
authorJason Wang <jasowang@redhat.com>
Sat, 24 Feb 2018 03:32:24 +0000 (11:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Feb 2018 18:49:48 +0000 (13:49 -0500)
commit44ac788d7c0ce3c359df1254027e14ac2fe92b55
treeb14288a99ea749d2462e984498767ce7fc3d1816
parent3ca34bfcc5d2cfa9250766c2b4bb401e943c51d2
Revert "tuntap: add missing xdp flush"

This reverts commit 12a7015294a1b7eb8346843b94fe1eef6d1f497a. The
reason is we try to batch packets for devmap which causes calling
xdp_do_flush() in the process context. Simply disabling preemption
may not work since process may move among processors which lead
xdp_do_flush() to miss some flushes on some processors.

So simply revert the patch, a follow-up patch will add the xdp flush
correctly.

Reported-by: Christoffer Dall <christoffer.dall@linaro.org>
Fixes: 12a7015294a1 ("tuntap: add missing xdp flush")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c