aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma/rdma_vt.h
diff options
context:
space:
mode:
authorKaike Wan <kaike.wan@intel.com>2018-09-26 10:26:44 -0700
committerJason Gunthorpe <jgg@mellanox.com>2018-09-30 19:21:11 -0600
commitd205a06a14796a24b3447bc5d27b7dedff4479d5 (patch)
treec881493df31a382b2e658cd1cb0e622eafd2fbc3 /include/rdma/rdma_vt.h
parentRDMA/hns: remove set but not used variable 'dseg' (diff)
downloadlinux-dev-d205a06a14796a24b3447bc5d27b7dedff4479d5.tar.xz
linux-dev-d205a06a14796a24b3447bc5d27b7dedff4479d5.zip
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>
Diffstat (limited to 'include/rdma/rdma_vt.h')
-rw-r--r--include/rdma/rdma_vt.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/rdma/rdma_vt.h b/include/rdma/rdma_vt.h
index cc08de3570b4..52907204afcd 100644
--- a/include/rdma/rdma_vt.h
+++ b/include/rdma/rdma_vt.h
@@ -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