mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
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>
This commit is contained in:
committed by
Jason Gunthorpe
parent
d2e9ace47a
commit
5190f052a3
@@ -268,6 +268,13 @@ struct rvt_driver_provided {
|
||||
*/
|
||||
void * (*qp_priv_alloc)(struct rvt_dev_info *rdi, struct rvt_qp *qp);
|
||||
|
||||
/*
|
||||
* Init a struture allocated with qp_priv_alloc(). This should be
|
||||
* called after all qp fields have been initialized in rdmavt.
|
||||
*/
|
||||
int (*qp_priv_init)(struct rvt_dev_info *rdi, struct rvt_qp *qp,
|
||||
struct ib_qp_init_attr *init_attr);
|
||||
|
||||
/*
|
||||
* Free the driver's private qp structure.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user