IB/{hfi1, qib, rdmavt}: Move logic to allocate receive WQE into rdmavt
Moving receive-side WQE allocation logic into rdmavt will allow further code reuse between qib and hfi1 drivers. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Brian Welty <brian.welty@intel.com> Signed-off-by: Harish Chegondi <harish.chegondi@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:

committed by
Doug Ledford

parent
5d18ee67d4
commit
832369fa64
@@ -163,7 +163,7 @@ static void ud_loopback(struct rvt_qp *sqp, struct rvt_swqe *swqe)
|
||||
} else {
|
||||
int ret;
|
||||
|
||||
ret = hfi1_rvt_get_rwqe(qp, 0);
|
||||
ret = rvt_get_rwqe(qp, false);
|
||||
if (ret < 0) {
|
||||
rvt_rc_error(qp, IB_WC_LOC_QP_OP_ERR);
|
||||
goto bail_unlock;
|
||||
@@ -974,7 +974,7 @@ void hfi1_ud_rcv(struct hfi1_packet *packet)
|
||||
} else {
|
||||
int ret;
|
||||
|
||||
ret = hfi1_rvt_get_rwqe(qp, 0);
|
||||
ret = rvt_get_rwqe(qp, false);
|
||||
if (ret < 0) {
|
||||
rvt_rc_error(qp, IB_WC_LOC_QP_OP_ERR);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user