]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/qedr: Add EDPM mode type for user-fw compatibility
authorMichal Kalderon <michal.kalderon@marvell.com>
Tue, 7 Jul 2020 06:30:59 +0000 (09:30 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 16 Jul 2020 19:01:55 +0000 (16:01 -0300)
commit7e2b6da38937260df87b99cf39728bcc8f5382c4
tree3fcf89355c6d8014946bb889616af38282769b0e
parenta52a0c9ff8a45d49832284425c9a2b84890e9a78
RDMA/qedr: Add EDPM mode type for user-fw compatibility

In older FW versions the completion flag was treated as the ack flag in
edpm messages.  commit 1999461820e9 ("qed: Add EDPM mode type for user-fw
compatibility") exposed the FW option of setting which mode the QP is in
by adding a flag to the qedr <-> qed API.

This patch adds the qedr <-> libqedr interface so that the libqedr can set
the flag appropriately and qedr can pass it down to FW.  Flag is added for
backward compatibility with libqedr.

For older libs, this flag didn't exist and therefore set to zero.

Fixes: c1b7616bb304 ("qedr: Add support for user context verbs")
Link: https://lore.kernel.org/r/20200707063100.3811-2-michal.kalderon@marvell.com
Signed-off-by: Yuval Bason <yuval.bason@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/qedr/qedr.h
drivers/infiniband/hw/qedr/verbs.c
include/uapi/rdma/qedr-abi.h