Skip to contentSkip to conversation

fwctl/mlx5: Add few new FW rpc commands

PATCH In review Saeed Mahameed 3 participants 6 messages Sep 8, 2025 – Sep 17, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover fwctl/mlx5: Add few new FW rpc commands

From: Saeed Mahameed <[email protected]>

Hi Jason and Dave,

This series adds few new commands to fwctl/mlx5 driver:
1) Adjacent function query commands and their scope
2) Modify congestion status command

For more details please see each patch description.

Thanks,
Saeed

Avihai Horon (1):
fwctl/mlx5: Allow MODIFY_CONG_STATUS command

Saeed Mahameed (1):
fwctl/mlx5: Add Adjacent function query commands and their scope

 drivers/fwctl/mlx5/main.c | 7 +++++++
 1 file changed, 7 insertions(+)
Signature · 1 line
2.51.0
#1 lore raw

PATCH 1/2 fwctl/mlx5: Allow MODIFY_CONG_STATUS command

From: Avihai Horon <[email protected]>

MODIFY_CONG_STATUS command is used to enable or disable congestion control according to a given priority and protocol.

Add MODIFY_CONG_STATUS to the allowed commands under configuration scope.

Change-Id I6099206ca683de5173fe74fe56f63994f1c4c911
---
 drivers/fwctl/mlx5/main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/fwctl/mlx5/main.c +1 -0
index f93aa0cecdb9..7f3a1a9f7224 100644
@@ -188,6 +188,7 @@ static bool mlx5ctl_validate_rpc(const void *in, enum fwctl_rpc_scope scope)
 	 * filter commands manually for now.
 	 */
 	switch (opcode) {
+	case MLX5_CMD_OP_MODIFY_CONG_STATUS:
 	case MLX5_CMD_OP_POSTPONE_CONNECTED_QP_TIMEOUT:
 	case MLX5_CMD_OP_QUERY_ADAPTER:
 	case MLX5_CMD_OP_QUERY_ESW_FUNCTIONS:
Signature · 1 line
2.51.0
#2 lore raw

Re: [PATCH fwctl 1/2] fwctl/mlx5: Allow MODIFY_CONG_STATUS command

Quoted 10 lines · Saeed Mahameed

From: Avihai Horon <[email protected]>

MODIFY_CONG_STATUS command is used to enable or disable congestion control according to a given priority and protocol.

Add MODIFY_CONG_STATUS to the allowed commands under configuration scope.

Change-Id I6099206ca683de5173fe74fe56f63994f1c4c911

You left a change id, I removed it

Jason

#3 lore raw

PATCH 2/2 fwctl/mlx5: Add Adjacent function query commands and their scope

In reply to Saeed Mahameed

From: Saeed Mahameed <[email protected]>

MLX5_CMD_OP_QUERY_ADJACENT_FUNCTIONS_ID:
- Query Adjacent functions (PFs/VFs) of the function calling FW.

MLX5_CMD_OP_DELEGATE_VHCA_MANAGEMENT:
- Delegates own VFs to be managed/seen by other adjacent PFs

MLX5_CMD_OP_QUERY_DELEGATED_VHCA:
- Query current function delegation state.

---
 drivers/fwctl/mlx5/main.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/fwctl/mlx5/main.c +6 -0
index 7f3a1a9f7224..5b453742a5c5 100644
@@ -58,6 +58,9 @@ enum {
 	MLX5_CMD_OP_QUERY_DC_CNAK_TRACE = 0x716,
 	MLX5_CMD_OP_QUERY_NVMF_BACKEND_CONTROLLER = 0x722,
 	MLX5_CMD_OP_QUERY_NVMF_NAMESPACE_CONTEXT = 0x728,
+	MLX5_CMD_OP_QUERY_ADJACENT_FUNCTIONS_ID = 0x730,
+	MLX5_CMD_OP_DELEGATE_VHCA_MANAGEMENT = 0x731,
+	MLX5_CMD_OP_QUERY_DELEGATED_VHCA = 0x732,
 	MLX5_CMD_OP_QUERY_BURST_SIZE = 0x813,
 	MLX5_CMD_OP_QUERY_DIAGNOSTIC_PARAMS = 0x819,
 	MLX5_CMD_OP_SET_DIAGNOSTIC_PARAMS = 0x820,
@@ -197,6 +200,7 @@ static bool mlx5ctl_validate_rpc(const void *in, enum fwctl_rpc_scope scope)
 	case MLX5_CMD_OP_QUERY_OTHER_HCA_CAP:
 	case MLX5_CMD_OP_QUERY_ROCE_ADDRESS:
 	case MLX5_CMD_OPCODE_QUERY_VUID:
+	case MLX5_CMD_OP_DELEGATE_VHCA_MANAGEMENT:
 	/*
 	 * FW limits SET_HCA_CAP on the tools UID to only the other function
 	 * mode which is used for function pre-configuration
@@ -282,6 +286,8 @@ static bool mlx5ctl_validate_rpc(const void *in, enum fwctl_rpc_scope scope)
 	case MLX5_CMD_OP_QUERY_XRQ:
 	case MLX5_CMD_OP_USER_QUERY_XRQ_DC_PARAMS_ENTRY:
 	case MLX5_CMD_OP_USER_QUERY_XRQ_ERROR_PARAMS:
+	case MLX5_CMD_OP_QUERY_ADJACENT_FUNCTIONS_ID:
+	case MLX5_CMD_OP_QUERY_DELEGATED_VHCA:
 		return scope >= FWCTL_RPC_DEBUG_READ_ONLY;
 
 	case MLX5_CMD_OP_SET_DIAGNOSTIC_PARAMS:
Signature · 1 line
2.51.0
maintainer Reviewed-by on the v1 series
#4 lore raw
In reply to Saeed Mahameed
Quoted 13 lines · Saeed Mahameed

From: Saeed Mahameed <[email protected]>

Hi Jason and Dave,

This series adds few new commands to fwctl/mlx5 driver:
1) Adjacent function query commands and their scope
2) Modify congestion status command

For more details please see each patch description.

Thanks,
Saeed

Quoted 9 lines

Avihai Horon (1):
fwctl/mlx5: Allow MODIFY_CONG_STATUS command

Saeed Mahameed (1):
fwctl/mlx5: Add Adjacent function query commands and their scope

 drivers/fwctl/mlx5/main.c | 7 +++++++
 1 file changed, 7 insertions(+)

Straight forward enough, mlx5 specific adds

#5 lore raw
In reply to Saeed Mahameed
Quoted 10 lines · Saeed Mahameed

From: Saeed Mahameed <[email protected]>

Hi Jason and Dave,

This series adds few new commands to fwctl/mlx5 driver:
1) Adjacent function query commands and their scope
2) Modify congestion status command

For more details please see each patch description.

Quoted 8 lines

Thanks,
Saeed

Avihai Horon (1):
fwctl/mlx5: Allow MODIFY_CONG_STATUS command

Saeed Mahameed (1):
fwctl/mlx5: Add Adjacent function query commands and their scope

Applied thanks

Jason