]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-fix-xsk-wakeup'
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 19 Dec 2019 15:20:49 +0000 (16:20 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 19 Dec 2019 15:20:53 +0000 (16:20 +0100)
commit9792d651ccbba44a342b3bc6621221003091fcf4
treebc5d84b8543985f1b7c03f1ff1a2c6edc0306cdd
parentbe51ca4a817e35fe48af85521f43708278e50fce
parentbb615c20337e88d43952b3bc9ea2e766c1455534
Merge branch 'bpf-fix-xsk-wakeup'

Maxim Mikityanskiy says:

====================
This series addresses the issue described in the commit message of the
first patch: lack of synchronization between XSK wakeup and destroying
the resources used by XSK wakeup. The idea is similar to napi_synchronize.
The series contains fixes for the drivers that implement XSK.

v2 incorporates changes suggested by Björn:

1. Call synchronize_rcu in Intel drivers only if the XDP program is
   being unloaded.
2. Don't forget rcu_read_lock when wakeup is called from xsk_poll.
3. Use xs->zc as the condition to call ndo_xsk_wakeup.
====================

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>