From: Dariusz Sosnowski <dsosnowski@nvidia.com>
To: Viacheslav Ovsiienko <viacheslavo@nvidia.com>,
Bing Zhao <bingz@nvidia.com>, Ori Kam <orika@nvidia.com>,
Suanming Mou <suanmingm@nvidia.com>,
Matan Azrad <matan@nvidia.com>
Cc: <dev@dpdk.org>, Raslan Darawsheh <rasland@nvidia.com>
Subject: [PATCH 2/3] net/mlx5: fix action configuration validation
Date: Thu, 18 Jul 2024 11:57:16 +0200 [thread overview]
Message-ID: <20240718095717.290960-3-dsosnowski@nvidia.com> (raw)
In-Reply-To: <20240718095717.290960-1-dsosnowski@nvidia.com>
Checking if action configuration is required should be checked based on
action type recorded in the actions template, not on user action.
Also, adds a missing internal RSS action type to configuration check
skip list.
Fixes: 57c7b94301ee ("net/mlx5: add async flow operation validation")
Signed-off-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
Acked-by: Suanming Mou <suanmingm@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 fe7df7305f..39d1cd96d4 100644
--- a/drivers/net/mlx5/mlx5_flow_hw.c
+++ b/drivers/net/mlx5/mlx5_flow_hw.c
@@ -16388,10 +16388,11 @@ flow_hw_validate_rule_actions(struct rte_eth_dev *dev,
user_action = &actions[act_data->action_src];
/* Skip actions which do not require conf. */
- switch ((int)user_action->type) {
+ switch ((int)act_data->type) {
case RTE_FLOW_ACTION_TYPE_COUNT:
case MLX5_RTE_FLOW_ACTION_TYPE_COUNT:
case MLX5_RTE_FLOW_ACTION_TYPE_METER_MARK:
+ case MLX5_RTE_FLOW_ACTION_TYPE_RSS:
continue;
default:
break;
--
2.39.2
next prev parent reply other threads:[~2024-07-18 9:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-18 9:57 [PATCH 0/3] net/mlx5: E-Switch and validation fixes Dariusz Sosnowski
2024-07-18 9:57 ` [PATCH 1/3] net/mlx5: fix disabling E-Switch default flow rules Dariusz Sosnowski
2024-07-18 9:57 ` Dariusz Sosnowski [this message]
2024-07-18 9:57 ` [PATCH 3/3] net/mlx5: fix RSS and queue action validation Dariusz Sosnowski
2024-07-21 13:58 ` [PATCH 0/3] net/mlx5: E-Switch and validation fixes Raslan Darawsheh
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=20240718095717.290960-3-dsosnowski@nvidia.com \
--to=dsosnowski@nvidia.com \
--cc=bingz@nvidia.com \
--cc=dev@dpdk.org \
--cc=matan@nvidia.com \
--cc=orika@nvidia.com \
--cc=rasland@nvidia.com \
--cc=suanmingm@nvidia.com \
--cc=viacheslavo@nvidia.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;
as well as URLs for NNTP newsgroup(s).