[PATCH mlx5-next 1/2] net/mlx5: Add cap_tx_speed and effective_tx_speed support to IFC
From: Tariq Toukan
Date: Mon Oct 05 2026 - 04:42:37 EST
From: Or Har-Toov <ohartoov@xxxxxxxxxx>
Introduce the cap_tx_speed and effective_tx_speed fields to the query
and modify_vport_state structures.
Add the esw_vport_state_cap_tx_speed and
esw_vport_state_effective_tx_speed capability bits, indicating the
firmware supports modifying the cap_tx_speed and effective_tx_speed
fields, via the MODIFY_VPORT_STATE command.
Signed-off-by: Or Har-Toov <ohartoov@xxxxxxxxxx>
Reviewed-by: Mark Bloch <mbloch@xxxxxxxxxx>
Reviewed-by: Nimrod Oren <noren@xxxxxxxxxx>
Signed-off-by: Tariq Toukan <tariqt@xxxxxxxxxx>
---
include/linux/mlx5/mlx5_ifc.h | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index a712463e89b4..989408764e1b 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -1070,7 +1070,9 @@ struct mlx5_ifc_e_switch_cap_bits {
u8 root_ft_on_other_esw[0x1];
u8 reserved_at_a[0x1];
u8 esw_vport_state_max_tx_speed[0x1];
- u8 reserved_at_c[0xd];
+ u8 esw_vport_state_cap_tx_speed[0x1];
+ u8 esw_vport_state_effective_tx_speed[0x1];
+ u8 reserved_at_e[0xb];
u8 esw_functions_changed[0x1];
u8 reserved_at_1a[0x1];
u8 ecpf_vport_exists[0x1];
@@ -5492,6 +5494,9 @@ struct mlx5_ifc_query_vport_state_out_bits {
u8 reserved_at_70[0x8];
u8 admin_state[0x4];
u8 state[0x4];
+
+ u8 cap_tx_speed[0x10];
+ u8 effective_tx_speed[0x10];
};
struct mlx5_ifc_array1024_auto_bits {
@@ -7840,6 +7845,9 @@ struct mlx5_ifc_modify_vport_state_in_bits {
u8 reserved_at_74[0x4];
u8 admin_state[0x4];
u8 reserved_at_7c[0x4];
+
+ u8 cap_tx_speed[0x10];
+ u8 effective_tx_speed[0x10];
};
struct mlx5_ifc_modify_tis_out_bits {
--
2.44.0