* [PATCH v1] net/mlx5: fix aggr affinity pattern create failures
@ 2026-08-03 9:05 Rongwei Liu
2026-08-31 15:26 ` Raslan Darawsheh
0 siblings, 1 reply; 2+ messages in thread
From: Rongwei Liu @ 2026-08-03 9:05 UTC (permalink / raw)
To: dev, matan, viacheslavo, orika, suanmingm, thomas
Cc: stable, Gregory Etelson, Dariusz Sosnowski, Bing Zhao
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: stable@dpdk.org
Cc: Gregory Etelson <getelson@nvidia.com>
Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
---
drivers/net/mlx5/mlx5_flow_hw.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c
index 1cffdcc54d..30ef2f1c2d 100644
--- a/drivers/net/mlx5/mlx5_flow_hw.c
+++ b/drivers/net/mlx5/mlx5_flow_hw.c
@@ -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;
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1] net/mlx5: fix aggr affinity pattern create failures
2026-08-03 9:05 [PATCH v1] net/mlx5: fix aggr affinity pattern create failures Rongwei Liu
@ 2026-08-31 15:26 ` Raslan Darawsheh
0 siblings, 0 replies; 2+ messages in thread
From: Raslan Darawsheh @ 2026-08-31 15:26 UTC (permalink / raw)
To: Rongwei Liu, dev, matan, viacheslavo, orika, suanmingm, thomas
Cc: stable, Gregory Etelson, Dariusz Sosnowski, Bing Zhao
Hi,
On 03/08/2026 12:05 PM, Rongwei Liu wrote:
> 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: stable@dpdk.org
> Cc: Gregory Etelson <getelson@nvidia.com>
>
> Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
> Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-31 15:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-03 9:05 [PATCH v1] net/mlx5: fix aggr affinity pattern create failures Rongwei Liu
2026-08-31 15:26 ` Raslan Darawsheh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox