git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/mlx5: fix index when creating flow
[dpdk.git]
/
drivers
/
net
/
mlx5
/
mlx5_flow_dv.c
diff --git
a/drivers/net/mlx5/mlx5_flow_dv.c
b/drivers/net/mlx5/mlx5_flow_dv.c
index
b8d03d4
..
18ea577
100644
(file)
--- a/
drivers/net/mlx5/mlx5_flow_dv.c
+++ b/
drivers/net/mlx5/mlx5_flow_dv.c
@@
-8021,7
+8021,7
@@
__flow_dv_apply(struct rte_eth_dev *dev, struct rte_flow *flow,
int err;
int idx;
- for (idx = priv->flow_idx - 1; idx >=
0
; idx--) {
+ for (idx = priv->flow_idx - 1; idx >=
priv->flow_nested_idx
; idx--) {
dev_flow = &((struct mlx5_flow *)priv->inter_flows)[idx];
dv = &dev_flow->dv;
dh = dev_flow->handle;