From: Gregory Etelson <getelson@nvidia.com>
To: <dev@dpdk.org>
Cc: <getelson@nvidia.com>, <mkashani@nvidia.com>,
<rasland@nvidia.com>, "Bing Zhao" <bingz@nvidia.com>,
Dariusz Sosnowski <dsosnowski@nvidia.com>,
Viacheslav Ovsiienko <viacheslavo@nvidia.com>,
Ori Kam <orika@nvidia.com>, Suanming Mou <suanmingm@nvidia.com>,
Matan Azrad <matan@nvidia.com>
Subject: [PATCH] net/mlx5: fix cross GVMI metadata match for E-Switch setup
Date: Thu, 13 Nov 2025 09:17:45 +0200 [thread overview]
Message-ID: <20251113071746.434067-1-getelson@nvidia.com> (raw)
The metadata flow item did not check for cross GVMI support.
Fixes: a78425ba3793 ("net/mlx5: support flow metadata exchange between E-Switch and VM")
Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Bing Zhao <bingz@nvidia.com>
---
drivers/net/mlx5/mlx5_flow.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h
index e8b298dd1d..2f070d9d97 100644
--- a/drivers/net/mlx5/mlx5_flow.h
+++ b/drivers/net/mlx5/mlx5_flow.h
@@ -1807,7 +1807,8 @@ flow_hw_get_reg_id_by_domain(struct rte_eth_dev *dev,
switch (type) {
case RTE_FLOW_ITEM_TYPE_META:
if (sh->config.dv_esw_en &&
- sh->config.dv_xmeta_en == MLX5_XMETA_MODE_META32_HWS) {
+ (sh->config.dv_xmeta_en == MLX5_XMETA_MODE_META32_HWS ||
+ mlx5_esw_metadata_passing_enabled(sh))) {
return REG_C_1;
}
if ((mlx5_vport_rx_metadata_passing_enabled(sh) &&
--
2.51.0
reply other threads:[~2025-11-13 7:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20251113071746.434067-1-getelson@nvidia.com \
--to=getelson@nvidia.com \
--cc=bingz@nvidia.com \
--cc=dev@dpdk.org \
--cc=dsosnowski@nvidia.com \
--cc=matan@nvidia.com \
--cc=mkashani@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).