net/mlx5: fix flow pattern validation
Size of the mask is wrongly computed and make the validation process only
verify the first 4 bytes of the layer.
Fixes: 2097d0d1e2
("net/mlx5: support basic flow items and actions")
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
This commit is contained in:
parent
e74ac66984
commit
3aa7d88451
@ -424,7 +424,7 @@ priv_flow_validate(struct priv *priv,
|
||||
cur_item = token;
|
||||
err = mlx5_flow_item_validate(items,
|
||||
(const uint8_t *)cur_item->mask,
|
||||
sizeof(cur_item->mask_sz));
|
||||
cur_item->mask_sz);
|
||||
if (err)
|
||||
goto exit_item_not_supported;
|
||||
if (flow->ibv_attr && cur_item->convert) {
|
||||
|
Loading…
Reference in New Issue
Block a user