net/mlx5: use correct field in a union structure
authorYongseok Koh <yskoh@mellanox.com>
Sat, 12 May 2018 01:35:45 +0000 (18:35 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:32:23 +0000 (22:32 +0100)
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

index 587b22f..de3f869 100644 (file)
@@ -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;