]> Git Repo - linux.git/commitdiff
IB/mlx5: Support querying eswitch functions from DEVX
authorBodong Wang <[email protected]>
Mon, 29 Aug 2022 09:04:12 +0000 (12:04 +0300)
committerLeon Romanovsky <[email protected]>
Mon, 5 Sep 2022 11:54:39 +0000 (14:54 +0300)
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]>
Link: https://lore.kernel.org/r/4265925178ab3224dc1d3e3784bb312d808edca5.1661763785.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <[email protected]>
drivers/infiniband/hw/mlx5/devx.c

index 2a2a9e9afc9dadfae51a602353c381b78f3c26e1..adefff89fb397645ff90641118edf7d570b4819d 100644 (file)
@@ -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;
This page took 0.058113 seconds and 4 git commands to generate.