net/mlx5: validate GTP PSC QFI width
PATCH 1/1 net/mlx5: validate GTP PSC QFI width
Add missing validation of GTP PSC QFI flow field width for modify field flow action.
Fixes 0f4aa72b99da ("net/mlx5: support flow modify field with HWS")
Signed-off-by Dariusz Sosnowski <[email protected]>
Acked-by Bing Zhao <[email protected]>
--- drivers/net/mlx5/mlx5_flow_dv.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/mlx5/mlx5_flow_dv.c +2 -0
@@ -1451,6 +1451,8 @@ mlx5_flow_item_field_width(struct rte_eth_dev *dev,case RTE_FLOW_FIELD_META :return (flow_dv_get_metadata_reg (dev, attr, error) ==REG_C_0 ) ?rte_popcount32 (priv->sh->dv_meta_mask) :32 ; +case RTE_FLOW_FIELD_GTP_PSC_QFI : +return 6 ;case RTE_FLOW_FIELD_POINTER :case RTE_FLOW_FIELD_VALUE :return inherit <0 ?0 : inherit;
Signature · 1 line
2.39.5
Hi,
Quoted 9 lines · Dariusz Sosnowski
Add missing validation of GTP PSC QFI flow field width for modify field flow action.
Fixes 0f4aa72b99da ("net/mlx5: support flow modify field with HWS")Signed-off-by Dariusz Sosnowski <[email protected]>Acked-by Bing Zhao <[email protected]>
Patch applied to next-net-mlx,
Signature · 2 lines
Kindest regards Raslan Darawsheh