mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
RDMA/qedr: Initialize byte_len in WC of READ and SEND commands
Initialize byte_len in work completion of RDMA_READ and RDMA_SEND. Exposed by uDAPL application. Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
86816a00ca
commit
dac2738607
1 changed files with 4 additions and 0 deletions
|
@ -3209,6 +3209,10 @@ static int process_req(struct qedr_dev *dev, struct qedr_qp *qp,
|
||||||
case IB_WC_REG_MR:
|
case IB_WC_REG_MR:
|
||||||
qp->wqe_wr_id[qp->sq.cons].mr->info.completed++;
|
qp->wqe_wr_id[qp->sq.cons].mr->info.completed++;
|
||||||
break;
|
break;
|
||||||
|
case IB_WC_RDMA_READ:
|
||||||
|
case IB_WC_SEND:
|
||||||
|
wc->byte_len = qp->wqe_wr_id[qp->sq.cons].bytes_len;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue