IB/rdmavt: Rename check_send_wqe as setup_wqe

The driver-provided function check_send_wqe allows the hardware driver to
check and set up the incoming send wqe before it is inserted into the swqe
ring. This patch will rename it as setup_wqe to better reflect its
usage. In addition, this function is only called when all setup is
complete in rdmavt.

Reviewed-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:
Kaike Wan
2018-09-26 10:26:44 -07:00
committed by Jason Gunthorpe
parent 8c31c9188b
commit d205a06a14
6 changed files with 39 additions and 21 deletions

View File

@@ -215,13 +215,14 @@ struct rvt_driver_provided {
void (*schedule_send_no_lock)(struct rvt_qp *qp);
/*
* Validate the wqe. This needs to be done prior to inserting the
* wqe into the ring, but after the wqe has been set up. Allow for
* driver specific work request checking by providing a callback.
* call_send indicates if the wqe should be posted or scheduled.
* Driver specific work request setup and checking.
* This function is allowed to perform any setup, checks, or
* adjustments required to the SWQE in order to be usable by
* underlying protocols. This includes private data structure
* allocations.
*/
int (*check_send_wqe)(struct rvt_qp *qp, struct rvt_swqe *wqe,
bool *call_send);
int (*setup_wqe)(struct rvt_qp *qp, struct rvt_swqe *wqe,
bool *call_send);
/*
* Sometimes rdmavt needs to kick the driver's send progress. That is