[dpdk-dev,4/4] net/mlx5: use correct field in a union structure

Message ID 20180512013545.22279-4-yskoh@mellanox.com (mailing list archive)
State Accepted, archived
Delegated to: Shahaf Shuler
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Yongseok Koh May 12, 2018, 1:35 a.m. UTC
  This is not a bug but it is better to use semantically correct field.

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
---
 drivers/net/mlx5/mlx5_rxq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c
index 587b22fc2..de3f869ed 100644
--- a/drivers/net/mlx5/mlx5_rxq.c
+++ b/drivers/net/mlx5/mlx5_rxq.c
@@ -160,7 +160,7 @@  rxq_alloc_elts_mprq(struct mlx5_rxq_ctrl *rxq_ctrl)
 	err = rte_errno; /* Save rte_errno before cleanup. */
 	wqe_n = i;
 	for (i = 0; (i != wqe_n); ++i) {
-		if ((*rxq->elts)[i] != NULL)
+		if ((*rxq->mprq_bufs)[i] != NULL)
 			rte_mempool_put(rxq->mprq_mp,
 					(*rxq->mprq_bufs)[i]);
 		(*rxq->mprq_bufs)[i] = NULL;