Re: [PATCH v2 rdma-next 2/3] qedr: Add support for kernel mode SRQ's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jul 08, 2018 at 04:59:50PM +0300, Yuval Bason wrote:
> Implement the SRQ specific verbs and update the poll_cq verb to deal with
> SRQ completions.
>
> Signed-off-by: Michal Kalderon <michal.kalderon@xxxxxxxxxx>
> Signed-off-by: Yuval Bason <yuval.bason@xxxxxxxxxx>
> ---
>  drivers/infiniband/hw/qedr/main.c          |   5 +
>  drivers/infiniband/hw/qedr/qedr.h          |  35 +++
>  drivers/infiniband/hw/qedr/qedr_hsi_rdma.h |  11 +
>  drivers/infiniband/hw/qedr/verbs.c         | 417 ++++++++++++++++++++++++++++-
>  drivers/infiniband/hw/qedr/verbs.h         |   9 +
>  5 files changed, 464 insertions(+), 13 deletions(-)

<..>
>
>  static inline void
> @@ -1292,9 +1539,17 @@ static void qedr_set_roce_db_info(struct qedr_dev *dev, struct qedr_qp *qp)
>  	params->dpi = pd->uctx ? pd->uctx->dpi : dev->dpi;
>  	params->sq_cq_id = get_qedr_cq(attrs->send_cq)->icid;
>  	params->stats_queue = 0;
> -	params->rq_cq_id = get_qedr_cq(attrs->recv_cq)->icid;
>  	params->srq_id = 0;
>  	params->use_srq = false;
> +
> +	if (!qp->srq)
> +		params->rq_cq_id = get_qedr_cq(attrs->recv_cq)->icid;
> +
> +	if (qp->srq) {
> +		params->rq_cq_id = get_qedr_cq(attrs->recv_cq)->icid;
> +		params->srq_id = qp->srq->srq_id;
> +		params->use_srq = true;
> +	}

if () { ... } else { ... } ;

Thanks

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux