Skip to contentSkip to conversation

net/mlx5: validate GTP PSC QFI width

PATCH In review Dariusz Sosnowski 2 participants 2 messages Apr 25, 2025 – May 12, 2025 Network drivers

lore
Share & tools
lore
#0 lore raw

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")
---
 drivers/net/mlx5/mlx5_flow_dv.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/mlx5/mlx5_flow_dv.c +2 -0
index 608c42db1d..c217634d9b 100644
@@ -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