net/ice: use relaxed and remove duplicate barrier
authorGavin Hu <gavin.hu@arm.com>
Mon, 16 Sep 2019 11:27:15 +0000 (19:27 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Oct 2019 10:14:30 +0000 (12:14 +0200)
commit8669e6ae052a957c62cd20c42709a77c5e80bab7
tree9d250758034793b7cb462e3afeb516d48ae0a7cd
parent3779a64ecd1d74d10bde4ce72d02d08ef526522f
net/ice: use relaxed and remove duplicate barrier

To guarantee the orderings of successive stores to CIO and MMIO memory,
a lighter weight rte_io_wmb [1] can be used instead of rte_wmb, and since
the ICE_PCI_REG_WRITE API already has an inclusive rte_io_wmb, this
explicit call can even be saved.

[1] http://git.dpdk.org/dpdk/tree/lib/librte_eal/common/include/generic/
rte_atomic.h#n98

Signed-off-by: Gavin Hu <gavin.hu@arm.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_rxtx.c