From: Valentine Fatiev <valentinef@nvidia.com>
Subject: [PATCH] BACKPORT: drivers/net/ethernet/mellanox/mlx5/core/wq.h

Change-Id: I81f8b6dd83cdf4694964e52b0d712fe46508526e
---
 drivers/net/ethernet/mellanox/mlx5/core/wq.h | 4 ++++
 1 file changed, 4 insertions(+)

--- a/drivers/net/ethernet/mellanox/mlx5/core/wq.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/wq.h
@@ -238,7 +238,11 @@ static inline struct mlx5_cqe64 *mlx5_cq
 		return NULL;
 
 	/* ensure cqe content is read after cqe ownership bit */
+#ifdef dma_rmb
 	dma_rmb();
+#else
+	rmb();
+#endif
 
 	return cqe;
 }
