linux/drivers/infiniband/hw
Mark Bloch 9a89d3ad6d RDMA/mlx5: Expose private query port
Expose a non standard query port via IOCTL that will be used to expose
port attributes that are specific to mlx5 devices.

The new interface receives a port number to query and returns a structure
that contains the available attributes for that port.  This will be used
to fill the gap between pure DEVX use cases and use cases where a kernel
needs to inform userspace about various kernel driver configurations that
userspace must use in order to work correctly.

Flags is used to indicate which fields are valid on return.

MLX5_IB_UAPI_QUERY_PORT_VPORT:
	The vport number of the queered port.

MLX5_IB_UAPI_QUERY_PORT_VPORT_VHCA_ID:
	The VHCA ID of the vport of the queered port.

MLX5_IB_UAPI_QUERY_PORT_VPORT_STEERING_ICM_RX:
	The vport's RX ICM address used for sw steering.

MLX5_IB_UAPI_QUERY_PORT_VPORT_STEERING_ICM_TX:
	The vport's TX ICM address used for sw steering.

MLX5_IB_UAPI_QUERY_PORT_VPORT_REG_C0:
	The metadata used to tag egress packets of the vport.

MLX5_IB_UAPI_QUERY_PORT_ESW_OWNER_VHCA_ID:
	The E-Switch owner vhca id of the vport.

Link: https://lore.kernel.org/r/6e2ef13e5a266a6c037eb0105eb1564c7bb52f23.1618743394.git.leonro@nvidia.com
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-04-20 17:00:18 -03:00
..
bnxt_re RDMA/bnxt_re: Get rid of custom module reference counting 2021-04-19 14:57:03 -03:00
cxgb4 RDMA/cxgb4: add missing qpid increment 2021-04-20 09:36:00 -03:00
efa RDMA/efa: Use strscpy instead of strlcpy 2021-03-30 17:03:22 -03:00
hfi1 IB/hfi1: Rework AIP and VNIC dummy netdev usage 2021-04-13 13:54:56 -03:00
hns RDMA/hns: Remove duplicated hem page size config code 2021-04-13 20:01:28 -03:00
i40iw RDMA/i40iw: Fix error unwinding when i40iw_hmc_sd_one fails 2021-04-20 09:36:52 -03:00
mlx4 RDMA/mlx4: Remove an unused variable 2021-04-20 16:32:33 -03:00
mlx5 RDMA/mlx5: Expose private query port 2021-04-20 17:00:18 -03:00
mthca RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
ocrdma RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
qedr RDMA/qedr: Fix error return code in qedr_iw_connect() 2021-04-12 15:00:17 -03:00
qib RDMA/qib: Remove useless qib_read_ureg() function 2021-04-13 13:06:25 -03:00
usnic RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
vmw_pvrdma RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00