mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
qed: Chain support for external PBL
iWARP would require the chains to allocate/free their PBL memory independently, so add the infrastructure to provide it externally. Signed-off-by: Yuval Mintz <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
8917a777be
commit
1a4a69751f
10 changed files with 56 additions and 28 deletions
|
|
@ -276,7 +276,7 @@ static int qedr_alloc_resources(struct qedr_dev *dev)
|
|||
QED_CHAIN_CNT_TYPE_U16,
|
||||
n_entries,
|
||||
sizeof(struct regpair *),
|
||||
&cnq->pbl);
|
||||
&cnq->pbl, NULL);
|
||||
if (rc)
|
||||
goto err4;
|
||||
|
||||
|
|
|
|||
|
|
@ -925,7 +925,7 @@ struct ib_cq *qedr_create_cq(struct ib_device *ibdev,
|
|||
QED_CHAIN_CNT_TYPE_U32,
|
||||
chain_entries,
|
||||
sizeof(union rdma_cqe),
|
||||
&cq->pbl);
|
||||
&cq->pbl, NULL);
|
||||
if (rc)
|
||||
goto err1;
|
||||
|
||||
|
|
@ -1413,7 +1413,7 @@ qedr_roce_create_kernel_qp(struct qedr_dev *dev,
|
|||
QED_CHAIN_CNT_TYPE_U32,
|
||||
n_sq_elems,
|
||||
QEDR_SQE_ELEMENT_SIZE,
|
||||
&qp->sq.pbl);
|
||||
&qp->sq.pbl, NULL);
|
||||
|
||||
if (rc)
|
||||
return rc;
|
||||
|
|
@ -1427,7 +1427,7 @@ qedr_roce_create_kernel_qp(struct qedr_dev *dev,
|
|||
QED_CHAIN_CNT_TYPE_U32,
|
||||
n_rq_elems,
|
||||
QEDR_RQE_ELEMENT_SIZE,
|
||||
&qp->rq.pbl);
|
||||
&qp->rq.pbl, NULL);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue