IB/mlx5: Support querying eswitch functions from DEVX
Subsystems (2)
PATCH 1/1 IB/mlx5: Support querying eswitch functions from DEVX
From: Bodong Wang <[email protected]>
Query eswitch functions returns information of the external host PF(if it exists). It can be used to check if DEVX is running on ECPF.
Reviewed-by Erez Shitrit <[email protected]>
Reviewed-by Saeed Mahameed <[email protected]>
Signed-off-by Bodong Wang <[email protected]>
Signed-off-by Leon Romanovsky <[email protected]>
--- drivers/infiniband/hw/mlx5/devx.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/infiniband/hw/mlx5/devx.c +2 -0
@@ -907,6 +907,7 @@ static bool devx_is_whitelist_cmd(void *in)case MLX5_CMD_OP_QUERY_HCA_CAP :case MLX5_CMD_OP_QUERY_HCA_VPORT_CONTEXT :case MLX5_CMD_OP_QUERY_ESW_VPORT_CONTEXT : +case MLX5_CMD_OP_QUERY_ESW_FUNCTIONS :return true;default :return false;
@@ -962,6 +963,7 @@ static bool devx_is_general_cmd(void *in, struct mlx5_ib_dev *dev)case MLX5_CMD_OP_QUERY_CONG_PARAMS :case MLX5_CMD_OP_QUERY_CONG_STATISTICS :case MLX5_CMD_OP_QUERY_LAG : +case MLX5_CMD_OP_QUERY_ESW_FUNCTIONS :return true;default :return false;
Signature · 1 line
2.37.2
Leon Romanovsky
AppliedQuoted 5 lines · Leon Romanovsky
From: Bodong Wang <[email protected]>
Query eswitch functions returns information of the external host PF(if it exists). It can be used to check if DEVX is running on ECPF.
Quoted 8 lines
Reviewed-by Erez Shitrit <[email protected]>Reviewed-by Saeed Mahameed <[email protected]>Signed-off-by Bodong Wang <[email protected]>Signed-off-by Leon Romanovsky <[email protected]>--- drivers/infiniband/hw/mlx5/devx.c | 2 ++ 1 file changed, 2 insertions(+)
Thanks, applied.