net/i40e: use relaxed and remove duplicate barrier
authorGavin Hu <gavin.hu@arm.com>
Mon, 16 Sep 2019 11:27:14 +0000 (19:27 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Oct 2019 10:14:30 +0000 (12:14 +0200)
commit3779a64ecd1d74d10bde4ce72d02d08ef526522f
tree80df0c096d8744bac9cb2755d7cf584f42eb5b78
parent6cbd89f9f3d8a55dcaace0a16a62400db0b86f39
net/i40e: 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 I40E_PCI_REG_WRITE API already has an inclusive rte_io_wmb, this
explicit call can be even 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/i40e/i40e_rxtx.c