From: Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: Devesh Sharma <devesh.sharma-iH1Dq9VlAzfQT0dZR+AlfA@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
Subject: Re: [PATCH] RDMA/ocrdma: fix traffic class shift
Date: Mon, 10 Feb 2014 12:28:21 +0300 [thread overview]
Message-ID: <20140210092821.GA26776@mwanda> (raw)
In-Reply-To: <8b417e9b-fb15-4585-aba3-e9be06b7b12a-3RiH6ntJJkOPfaB/Gd0HpljyZtpTMMwT@public.gmane.org>
On Mon, Feb 10, 2014 at 01:48:58PM +0530, Devesh Sharma wrote:
> Use correct value for obtaining traffic class from device
> response for Query QP request.
>
> Signed-off-by: Devesh Sharma <devesh.sharma-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
Reported-by: Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
regards,
dan carpenter
> ---
> drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
> index 7686dce..998f0de 100644
> --- a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
> +++ b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
> @@ -1415,7 +1415,7 @@ int ocrdma_query_qp(struct ib_qp *ibqp,
> OCRDMA_QP_PARAMS_HOP_LMT_MASK) >>
> OCRDMA_QP_PARAMS_HOP_LMT_SHIFT;
> qp_attr->ah_attr.grh.traffic_class = (params.tclass_sq_psn &
> - OCRDMA_QP_PARAMS_SQ_PSN_MASK) >>
> + OCRDMA_QP_PARAMS_TCLASS_MASK) >>
> OCRDMA_QP_PARAMS_TCLASS_SHIFT;
>
> qp_attr->ah_attr.ah_flags = IB_AH_GRH;
> --
> 1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2014-02-10 9:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-10 8:18 [PATCH] RDMA/ocrdma: fix traffic class shift Devesh Sharma
[not found] ` <8b417e9b-fb15-4585-aba3-e9be06b7b12a-3RiH6ntJJkOPfaB/Gd0HpljyZtpTMMwT@public.gmane.org>
2014-02-10 9:28 ` Dan Carpenter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140210092821.GA26776@mwanda \
--to=dan.carpenter-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
--cc=devesh.sharma-iH1Dq9VlAzfQT0dZR+AlfA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox