net/mlx5: fix sync when handling Tx completions
authorDekel Peled <dekelp@mellanox.com>
Thu, 28 Feb 2019 15:20:30 +0000 (17:20 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Mar 2019 16:52:22 +0000 (17:52 +0100)
commitfd350d3c9a13b5ebcb41741870c3f09b6920033f
tree594c97d0d65c8a86c983696ffdc07c9e9356230d
parent38f0a160b5fe1c9e8451dea2cab9a78ebfe86675
net/mlx5: fix sync when handling Tx completions

Function mlx5_tx_complete() reads completion entry information
from Tx queue.
For some processors not having strongly-ordered memory model,
there has to be a memory barrier between reading the entry index
and the entry fields, in order to guarantee data is valid.

Fixes: 54d3fe948dba ("net/mlx5: poll completion queue once per a call")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_rxtx.h