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
@@ -397,7 +397,7 @@ send_first:
|
||||
if (test_and_clear_bit(RVT_R_REWIND_SGE, &qp->r_aflags)) {
|
||||
qp->r_sge = qp->s_rdma_read_sge;
|
||||
} else {
|
||||
ret = hfi1_rvt_get_rwqe(qp, 0);
|
||||
ret = rvt_get_rwqe(qp, false);
|
||||
if (ret < 0)
|
||||
goto op_err;
|
||||
if (!ret)
|
||||
@@ -542,7 +542,7 @@ rdma_last_imm:
|
||||
if (test_and_clear_bit(RVT_R_REWIND_SGE, &qp->r_aflags)) {
|
||||
rvt_put_ss(&qp->s_rdma_read_sge);
|
||||
} else {
|
||||
ret = hfi1_rvt_get_rwqe(qp, 1);
|
||||
ret = rvt_get_rwqe(qp, true);
|
||||
if (ret < 0)
|
||||
goto op_err;
|
||||
if (!ret)
|
||||
|
Reference in New Issue
Block a user