summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2018-05-11 18:35:45 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2018-05-14 22:32:23 +0100
commitc9ec2192ffa7e3f5926acc13c6fc6f553d1a59a6 (patch)
tree2066fecafd4164bd769b3256a68869e516b7f584
parent0cfdc1808de82357a924a479dc3f89de88cd91c2 (diff)
downloaddpdk-c9ec2192ffa7e3f5926acc13c6fc6f553d1a59a6.zip
dpdk-c9ec2192ffa7e3f5926acc13c6fc6f553d1a59a6.tar.gz
dpdk-c9ec2192ffa7e3f5926acc13c6fc6f553d1a59a6.tar.xz
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 <yskoh@mellanox.com>
-rw-r--r--drivers/net/mlx5/mlx5_rxq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c
index 587b22f..de3f869 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;