]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/qedr: Add EDPM max size to alloc ucontext response
authorMichal Kalderon <michal.kalderon@marvell.com>
Tue, 7 Jul 2020 06:31:00 +0000 (09:31 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 16 Jul 2020 19:01:55 +0000 (16:01 -0300)
commit1053a83d615aa2388f7e6815b390ab7d082619ed
tree3a581f348a5d17e2d84ad83e08530626924ef0b8
parent7e2b6da38937260df87b99cf39728bcc8f5382c4
RDMA/qedr: Add EDPM max size to alloc ucontext response

User space should receive the maximum edpm size from kernel driver,
similar to other edpm/ldpm related limits.  Add an additional parameter to
the alloc_ucontext_resp structure for the edpm maximum size.

In addition, pass an indication from user-space to kernel
(and not just kernel to user) that the DPM sizes are supported.

This is for supporting backward-forward compatibility between driver and
lib for everything related to DPM transaction and limit sizes.

This should have been part of commit mentioned in Fixes tag.

Link: https://lore.kernel.org/r/20200707063100.3811-3-michal.kalderon@marvell.com
Fixes: 51b27f6b78d4 ("RDMA/qedr: Add kernel capability flags for dpm enabled mode")
Signed-off-by: Ariel Elior <ariel.elior@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/qedr/verbs.c
include/uapi/rdma/qedr-abi.h