net/mlx5: fix assert in modify converting
The assertion was added incorrectly in converting the modify actions into the format of low layer driver. There is no mask specified in the rte_flow actions, and PMD driver will give a mask of all 1s to the field to be modified. For each field, the mask could not be zero. But for the whole header which contains this field, the masks of other fields could be zero. The assertion needs to be removed for debug mode. Fixes: 72a944dba163 ("net/mlx5: fix header modify action validation") Cc: stable@dpdk.org Signed-off-by: Bing Zhao <bingz@mellanox.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
This commit is contained in:
parent
fa2d01c87d
commit
c8fa92f6c1
@ -435,7 +435,6 @@ flow_dv_convert_modify_action(struct rte_flow_item *item,
|
||||
/* Fetch variable byte size mask from the array. */
|
||||
mask = flow_dv_fetch_field((const uint8_t *)item->mask +
|
||||
field->offset, field->size);
|
||||
MLX5_ASSERT(mask);
|
||||
if (!mask) {
|
||||
++field;
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user