Skip to contentSkip to conversation

net/mlx5: fix aggr affinity pattern create failures

PATCH In review Rongwei Liu 2 participants 2 messages Aug 3 – Aug 31 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mlx5: fix aggr affinity pattern create failures

The mlx5 PMD attempts to validate the pattern template by creating an internal table under group non-zero.

Aggr_affinity is only supported under root table and skip its validation. Table create still fails due to definer translation error.

Fixes 80c676259a04 ("net/mlx5: validate HWS template items")
Cc Gregory Etelson <[email protected]>
---
 drivers/net/mlx5/mlx5_flow_hw.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/mlx5/mlx5_flow_hw.c +2 -1
index 1cffdcc54d..30ef2f1c2d 100644
@@ -9588,7 +9588,8 @@ flow_hw_pattern_template_create(struct rte_eth_dev *dev,
 		}
 	}
 	rte_atomic_fetch_add_explicit(&it->refcnt, 1, rte_memory_order_relaxed);
-	if (external) {
+	/* AGGR_AFFINITY only supports under group 0 */
+	if (external && !(it->item_flags & MLX5_FLOW_ITEM_AGGR_AFFINITY)) {
 		rc = pattern_template_validate(dev, &it, 1, error);
 		if (rc)
 			goto error;
Signature · 1 line
2.53.0
#1 lore raw

Hi,

Quoted 7 lines · Rongwei Liu

The mlx5 PMD attempts to validate the pattern template by creating an internal table under group non-zero.

Aggr_affinity is only supported under root table and skip its validation. Table create still fails due to definer translation error.

Quoted 6 lines
Fixes 80c676259a04 ("net/mlx5: validate HWS template items")
Cc Gregory Etelson <[email protected]>

Patch applied to next-net-mlx,

Kindest regards
Raslan Darawsheh