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:
96525b9
)
net/mlx5: fix invalid flow item check
author
Xueming Li
<xuemingl@mellanox.com>
Fri, 13 Apr 2018 15:00:36 +0000
(23:00 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 27 Apr 2018 16:34:00 +0000
(17:34 +0100)
This patch fixed invalid flow item check.
Fixes:
a6d83b6a9209
("net/mlx5: standardize on negative errno values")
Signed-off-by: Xueming Li <xuemingl@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_flow.c
patch
|
blob
|
history
diff --git
a/drivers/net/mlx5/mlx5_flow.c
b/drivers/net/mlx5/mlx5_flow.c
index
1ca413e
..
97ff8fc
100644
(file)
--- a/
drivers/net/mlx5/mlx5_flow.c
+++ b/
drivers/net/mlx5/mlx5_flow.c
@@
-826,8
+826,10
@@
mlx5_flow_convert_items_validate(const struct rte_flow_item items[],
break;
}
}
- if (!token)
+ if (!token) {
+ ret = -ENOTSUP;
goto exit_item_not_supported;
+ }
cur_item = token;
ret = mlx5_flow_item_validate(items,
(const uint8_t *)cur_item->mask,