git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cfdc18
)
net/mlx5: use correct field in a union structure
author
Yongseok Koh
<yskoh@mellanox.com>
Sat, 12 May 2018 01:35:45 +0000
(18:35 -0700)
committer
Ferruh 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
patch
|
blob
|
history
diff --git
a/drivers/net/mlx5/mlx5_rxq.c
b/drivers/net/mlx5/mlx5_rxq.c
index
587b22f
..
de3f869
100644
(file)
--- 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->
elt
s)[i] != NULL)
+ if ((*rxq->
mprq_buf
s)[i] != NULL)
rte_mempool_put(rxq->mprq_mp,
(*rxq->mprq_bufs)[i]);
(*rxq->mprq_bufs)[i] = NULL;