Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* [PATCH rdma-next] IB/mlx5: Support querying eswitch functions from DEVX
@ 2022-08-29  9:04 Leon Romanovsky
  2022-09-05 12:06 ` Leon Romanovsky
  0 siblings, 1 reply; 2+ messages in thread
From: Leon Romanovsky @ 2022-08-29  9:04 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: Bodong Wang, Erez Shitrit, linux-rdma, Saeed Mahameed

From: Bodong Wang <bodong@mellanox.com>

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 <erezsh@nvidia.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
---
 drivers/infiniband/hw/mlx5/devx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/infiniband/hw/mlx5/devx.c b/drivers/infiniband/hw/mlx5/devx.c
index d617f3ff9779..c8c345d90e0f 100644
--- a/drivers/infiniband/hw/mlx5/devx.c
+++ b/drivers/infiniband/hw/mlx5/devx.c
@@ -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;
-- 
2.37.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH rdma-next] IB/mlx5: Support querying eswitch functions from DEVX
  2022-08-29  9:04 [PATCH rdma-next] IB/mlx5: Support querying eswitch functions from DEVX Leon Romanovsky
@ 2022-09-05 12:06 ` Leon Romanovsky
  0 siblings, 0 replies; 2+ messages in thread
From: Leon Romanovsky @ 2022-09-05 12:06 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: Bodong Wang, Erez Shitrit, linux-rdma, Saeed Mahameed

On Mon, Aug 29, 2022 at 12:04:12PM +0300, Leon Romanovsky wrote:
> From: Bodong Wang <bodong@mellanox.com>
> 
> 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 <erezsh@nvidia.com>
> Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
> Signed-off-by: Bodong Wang <bodong@mellanox.com>
> Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
> ---
>  drivers/infiniband/hw/mlx5/devx.c | 2 ++
>  1 file changed, 2 insertions(+)
> 

Thanks, applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-05 12:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-29  9:04 [PATCH rdma-next] IB/mlx5: Support querying eswitch functions from DEVX Leon Romanovsky
2022-09-05 12:06 ` Leon Romanovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox