From: Raslan Darawsheh <rasland@nvidia.com>
To: Rayane Boussanni <rboussanni@gmail.com>, dev@dpdk.org
Cc: dsosnowski@nvidia.com
Subject: Re: [PATCH v3] net/mlx5: add validation for indirect actions
Date: Thu, 4 Jun 2026 12:32:15 +0300 [thread overview]
Message-ID: <4090795c-1abb-4483-badc-65f32e89703d@nvidia.com> (raw)
In-Reply-To: <20260514193359.195017-1-rboussanni@gmail.com>
Hi,
On 14/05/2026 10:33 PM, Rayane Boussanni wrote:
> This patch implements missing validation logic for RSS and Connection
> Tracking (ConnTrack) indirect actions in the Hardware Steering (HWS)
> flow engine.
>
> Previously, these actions were accepted without being validated
> against hardware capabilities, which could lead to unexpected behavior
> when applying flow rules. The specialist validation functions
> (mlx5_hw_validate_action_rss and mlx5_hw_validate_action_conntrack)
> already existed but were not wired up to the indirect action handler.
>
> The signature of flow_hw_validate_action_indirect was updated to
> include the actions template attributes (attr), allowing it to pass
> the necessary traffic direction context (ingress/egress/transfer)
> to the underlying validation specialists. For indirect RSS, only the
> template attributes are validated, as the RSS configuration itself is
> already validated when the indirect action handle is created.
>
> Reported-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
> Signed-off-by: Rayane Boussanni <rboussanni@gmail.com>
> ---
> v3:
> - Fix segfault reported by Dariusz Sosnowski when an actions template
> references an indirect RSS action. v2 called
> mlx5_hw_validate_action_rss() on the indirect path, which
> dereferences action->conf as struct rte_flow_action_rss. For indirect
> actions action->conf is an opaque action handle, not an RSS config.
> Add bool is_indirect to mlx5_hw_validate_action_rss() so the indirect
> path validates only the template attributes
> (ingress/egress/transfer).
>
> drivers/net/mlx5/mlx5_flow_hw.c | 36 ++++++++++++++++++++++++++++++---
> 1 file changed, 33 insertions(+), 3 deletions(-)
>
Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh
prev parent reply other threads:[~2026-06-04 9:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-17 15:01 [PATCH] net/mlx5: add validation for indirect actions Rayane Boussanni
2026-04-17 22:21 ` [PATCH v2] " Rayane Boussanni
2026-05-08 17:11 ` Dariusz Sosnowski
2026-05-14 19:33 ` [PATCH v3] " Rayane Boussanni
2026-05-21 10:00 ` Dariusz Sosnowski
2026-06-04 9:32 ` Raslan Darawsheh [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4090795c-1abb-4483-badc-65f32e89703d@nvidia.com \
--to=rasland@nvidia.com \
--cc=dev@dpdk.org \
--cc=dsosnowski@nvidia.com \
--cc=rboussanni@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox