]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Allow the driver to initialize QP priv struct
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Wed, 28 Nov 2018 18:22:31 +0000 (10:22 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 7 Dec 2018 02:59:47 +0000 (19:59 -0700)
commitc64e5632136c8942e79576d9331c3e7ab256afd0
tree42d773c9138e453717dd06237944a3d479d8c6f6
parent1736c484bbd91302a34c35d742c7d61f59d06d08
IB/hfi1: Allow the driver to initialize QP priv struct

This patch adds an interface to allow the driver to initialize the QP priv
struct when the QP is created and after the qpn has been assigned.  A
field is added to the QP priv struct to reference the rcd and two new
files are added to contain the function to initialize the rcd field so
that more TID RDMA related code can be added here later.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/Makefile
drivers/infiniband/hw/hfi1/tid_rdma.c [new file with mode: 0644]
drivers/infiniband/hw/hfi1/tid_rdma.h [new file with mode: 0644]
drivers/infiniband/hw/hfi1/verbs.c
drivers/infiniband/hw/hfi1/verbs.h
drivers/infiniband/sw/rdmavt/qp.c
include/rdma/rdma_vt.h