]> asedeno.scripts.mit.edu Git - linux.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)
commit5190f052a3654aa1120ea4f9ff3bfac430459893
tree42d773c9138e453717dd06237944a3d479d8c6f6
parentd2e9ace47aac92a465c4ad8e0cd1f5f8422a117e
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