From: Yongseok Koh Date: Sat, 12 May 2018 01:35:45 +0000 (-0700) Subject: net/mlx5: use correct field in a union structure X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c9ec2192ffa7e3f5926acc13c6fc6f553d1a59a6;p=dpdk.git net/mlx5: use correct field in a union structure This is not a bug but it is better to use semantically correct field. Signed-off-by: Yongseok Koh --- diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c index 587b22fc21..de3f869ede 100644 --- a/drivers/net/mlx5/mlx5_rxq.c +++ b/drivers/net/mlx5/mlx5_rxq.c @@ -160,7 +160,7 @@ error: 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;