xsk: add missing write- and data-dependency barrier
authorBjörn Töpel <bjorn.topel@intel.com>
Tue, 22 May 2018 07:35:01 +0000 (09:35 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 22 May 2018 08:25:06 +0000 (10:25 +0200)
commit37b076933a8e38e72ffd3c40d3eeb5949f38baf3
treed69135d54b4a1036d34377ddc40255b4d22ae49a
parent1c4917da36ed76981cc3c2671b3a44765c02bbc3
xsk: add missing write- and data-dependency barrier

Here, we add a missing write-barrier, and use READ_ONCE for the
data-dependency barrier.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/xdp/xsk.c