From: Tariq Toukan <tariqt@nvidia.com>
To: Leon Romanovsky <leon@kernel.org>, <linux-rdma@vger.kernel.org>,
"Mark Bloch" <mbloch@nvidia.com>, <netdev@vger.kernel.org>,
Saeed Mahameed <saeedm@nvidia.com>,
Tariq Toukan <tariqt@nvidia.com>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>, Chris Mi <cmi@nvidia.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
"Gal Pressman" <gal@nvidia.com>, Jakub Kicinski <kuba@kernel.org>,
open list <linux-kernel@vger.kernel.org>,
Moshe Shemesh <moshe@nvidia.com>, Paolo Abeni <pabeni@redhat.com>,
Parav Pandit <parav@nvidia.com>, Shay Drori <shayd@nvidia.com>
Subject: [PATCH mlx5-next 2/3] net/mlx5: Add IFC bits for SW RoCE monitor matched packets counter
Date: Mon, 16 Nov 2026 16:45:53 +0200 [thread overview]
Message-ID: <20261116144554.1194389-3-tariqt@nvidia.com> (raw)
In-Reply-To: <20261116144554.1194389-1-tariqt@nvidia.com>
From: Moshe Shemesh <moshe@nvidia.com>
Add the sw_roce_monitor_matched_packets counter to the query_vnic_env
command output. The counter reports the number of packets generated by
the Ethernet SQs of the vNIC that matched the configured SW RoCE
monitor classifier. Additionally, add the NIC_CAP_REG capability field
sw_roce_monitor_classifier. The field is a bitmask of the supported
classifiers, of which only bit 0, RoCEv2, is currently defined.
Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Shay Drori <shayd@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
---
include/linux/mlx5/mlx5_ifc.h | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 04300c8765a0..06e17581fa51 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -3448,7 +3448,13 @@ struct mlx5_ifc_nic_cap_reg_bits {
u8 vhca_icm_ctrl[0x1];
u8 reserved_at_1b[0x5];
- u8 reserved_at_20[0x3e0];
+ u8 reserved_at_20[0x80];
+
+ u8 reserved_at_a0[0x4];
+ u8 sw_roce_monitor_classifier[0x4];
+ u8 reserved_at_a8[0x18];
+
+ u8 reserved_at_c0[0x340];
};
struct mlx5_ifc_default_timeout_bits {
@@ -4077,7 +4083,11 @@ struct mlx5_ifc_vnic_diagnostic_statistics_bits {
u8 odp_remote_triggered_page_fault[0x20];
- u8 reserved_at_3c0[0xc20];
+ u8 reserved_at_3e0[0x20];
+
+ u8 sw_roce_monitor_matched_packets[0x20];
+
+ u8 reserved_at_420[0xbe0];
};
struct mlx5_ifc_traffic_counter_bits {
--
2.44.0
next prev parent reply other threads:[~2026-11-16 14:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 14:45 [PATCH mlx5-next 0/3] mlx5-next updates 2026-11-16 Tariq Toukan
2026-11-16 14:45 ` [PATCH mlx5-next 1/3] net/mlx5: Extend nic_cap_reg layout to its full register size Tariq Toukan
2026-11-16 14:45 ` Tariq Toukan [this message]
2026-11-16 14:45 ` [PATCH mlx5-next 3/3] net/mlx5: Add MLX5_PCI_PF_TYPE_QUERY_PF to mlx5_ifc Tariq Toukan
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=20261116144554.1194389-3-tariqt@nvidia.com \
--to=tariqt@nvidia.com \
--cc=andrew+netdev@lunn.ch \
--cc=cmi@nvidia.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=gal@nvidia.com \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=mbloch@nvidia.com \
--cc=moshe@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=parav@nvidia.com \
--cc=saeedm@nvidia.com \
--cc=shayd@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