Skip to content

Commit 56e5acd

Browse files
Maor Gottliebjgunthorpe
authored andcommitted
RDMA/mlx5: Add query e-switch vport context to devx white list
Add MLX5_OP_QUERY_ESW_VPORT_CONTEXT to devx white list. It will be allowed only if HCA_CAP.eswitch_manager==1. Signed-off-by: Maor Gottlieb <[email protected]> Reviewed-by: Maor Gottlieb <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 52438be commit 56e5acd

File tree

1 file changed

+2
-0
lines changed
  • drivers/infiniband/hw/mlx5

1 file changed

+2
-0
lines changed

drivers/infiniband/hw/mlx5/devx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,7 @@ static bool devx_is_whitelist_cmd(void *in)
682682
switch (opcode) {
683683
case MLX5_CMD_OP_QUERY_HCA_CAP:
684684
case MLX5_CMD_OP_QUERY_HCA_VPORT_CONTEXT:
685+
case MLX5_CMD_OP_QUERY_ESW_VPORT_CONTEXT:
685686
return true;
686687
default:
687688
return false;
@@ -719,6 +720,7 @@ static bool devx_is_general_cmd(void *in)
719720
switch (opcode) {
720721
case MLX5_CMD_OP_QUERY_HCA_CAP:
721722
case MLX5_CMD_OP_QUERY_HCA_VPORT_CONTEXT:
723+
case MLX5_CMD_OP_QUERY_ESW_VPORT_CONTEXT:
722724
case MLX5_CMD_OP_QUERY_VPORT_STATE:
723725
case MLX5_CMD_OP_QUERY_ADAPTER:
724726
case MLX5_CMD_OP_QUERY_ISSI:

0 commit comments

Comments
 (0)