OSDN Git Service

IB/mlx5: Allocate the per-port Q counter shared when DEVX is supported
authorYishai Hadas <yishaih@mellanox.com>
Sun, 9 Dec 2018 10:52:36 +0000 (12:52 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 21 Dec 2018 19:15:07 +0000 (12:15 -0700)
commitaa74be6eeade1caf3ef945ff1812059f3d7dc947
treea929d5ffb6e8a325c82ca603772da96502346022
parent75bf8a2a2f6b0def50009a631ea2f22f0143ba6c
IB/mlx5: Allocate the per-port Q counter shared when DEVX is supported

The per-port Q counter is some kernel resource and as such may be used by
few UID(s) upon DEVX usage.

To enable using it for QP/RQ when DEVX context is used need to allocate it
with a sharing mode indication to let firmware allows its usage.

The UID = 0xffff was chosen to mark it.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/cmd.c
drivers/infiniband/hw/mlx5/cmd.h
drivers/infiniband/hw/mlx5/main.c