net/nfp: fix barrier location
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Thu, 22 Feb 2018 11:30:39 +0000 (11:30 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:43 +0000 (14:08 +0200)
commitf598e1a2d0e29293b924119c1b3cdd4e16756e95
treeb802bbdb67c1862bf8cef0aa39e9b29a928a7496
parentca7d716b3ad74529fa331f2cfb45716241124b27
net/nfp: fix barrier location

The barrier needs to be after reading the DD bit. It has not been
a problem because the potential reads which can not happen before
reading the DD bit seem to be far enough, so the compiler is not
rescheduling them. However, a refactoring could make this problem
to arise.

Fixes: b812daadad0d ("nfp: add Rx and Tx")
Cc: stable@dpdk.org
Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfp_net.c