fwctl/mlx5: Add few new FW rpc commands
Subsystems (2)
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
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.
--- drivers/fwctl/mlx5/main.c | 1 + 1 file changed, 1 insertion(+)
drivers/fwctl/mlx5/main.c +1 -0
@@ -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
PATCH 2/2 fwctl/mlx5: Add Adjacent function query commands and their scope
In reply to Saeed MahameedFrom: 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
@@ -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
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 commandFor more details please see each patch description.
Thanks,
Saeed
Quoted 9 lines
Avihai Horon (1):
fwctl/mlx5: AllowMODIFY_CONG_STATUScommandSaeed Mahameed (1):
fwctl/mlx5: Add Adjacent function query commands and their scopedrivers/fwctl/mlx5/main.c | 7 +++++++ 1 file changed, 7 insertions(+)
Straight forward enough, mlx5 specific adds
Re: [PATCH fwctl 1/2] fwctl/mlx5: Allow MODIFY_CONG_STATUS command
In reply to Saeed MahameedQuoted 10 lines · Saeed Mahameed
From: Avihai Horon <[email protected]>
MODIFY_CONG_STATUScommand is used to enable or disable congestion control according to a given priority and protocol.Add
MODIFY_CONG_STATUSto the allowed commands under configuration scope.Change-Id I6099206ca683de5173fe74fe56f63994f1c4c911Signed-off-by Avihai Horon <[email protected]>
You left a change id, I removed it
Jason
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 commandFor more details please see each patch description.
Quoted 8 lines
Thanks,
SaeedAvihai Horon (1):
fwctl/mlx5: AllowMODIFY_CONG_STATUScommandSaeed Mahameed (1):
fwctl/mlx5: Add Adjacent function query commands and their scope
Applied thanks
Jason