IB/hfi1, qib, rdmavt: Move two IB event functions into rdmavt
Add rvt_rc_error() and rvt_comm_est() as shared functions in rdmavt, moved from hfi1/qib logic. Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Brian Welty <brian.welty@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:

committato da
Doug Ledford

parent
c03c08d50b
commit
beb5a04267
@@ -167,7 +167,7 @@ static void ud_loopback(struct rvt_qp *sqp, struct rvt_swqe *swqe)
|
||||
|
||||
ret = hfi1_rvt_get_rwqe(qp, 0);
|
||||
if (ret < 0) {
|
||||
hfi1_rc_error(qp, IB_WC_LOC_QP_OP_ERR);
|
||||
rvt_rc_error(qp, IB_WC_LOC_QP_OP_ERR);
|
||||
goto bail_unlock;
|
||||
}
|
||||
if (!ret) {
|
||||
@@ -796,7 +796,7 @@ void hfi1_ud_rcv(struct hfi1_packet *packet)
|
||||
|
||||
ret = hfi1_rvt_get_rwqe(qp, 0);
|
||||
if (ret < 0) {
|
||||
hfi1_rc_error(qp, IB_WC_LOC_QP_OP_ERR);
|
||||
rvt_rc_error(qp, IB_WC_LOC_QP_OP_ERR);
|
||||
return;
|
||||
}
|
||||
if (!ret) {
|
||||
|
Fai riferimento in un nuovo problema
Block a user