All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rdma/nes: set assume_alligned_header bit
@ 2010-02-19 21:06 Faisal Latif
  2010-02-19 21:18 ` Roland Dreier
  0 siblings, 1 reply; 3+ messages in thread
From: Faisal Latif @ 2010-02-19 21:06 UTC (permalink / raw)
  To: Roland Dreier; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

set assume bit alligned bit in qp context as recommended by hardware group.

Signed-off-by: Faisal Latif <faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
 drivers/infiniband/hw/nes/nes_verbs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c
index 64d3136..dba659a 100644
--- a/drivers/infiniband/hw/nes/nes_verbs.c
+++ b/drivers/infiniband/hw/nes/nes_verbs.c
@@ -1325,6 +1325,7 @@ static struct ib_qp *nes_create_qp(struct ib_pd *ibpd,
 			nesqp->nesqp_context->ird_ord_sizes = cpu_to_le32(NES_QPCONTEXT_ORDIRD_ALSMM |
 					((((u32)nesadapter->max_irrq_wr) <<
 					NES_QPCONTEXT_ORDIRD_IRDSIZE_SHIFT) & NES_QPCONTEXT_ORDIRD_IRDSIZE_MASK));
+			nesqp->nesqp_context->ird_ord_sizes |= cpu_to_le32(NES_QPCONTEXT_ORDIRD_AAH);
 			if (disable_mpa_crc) {
 				nes_debug(NES_DBG_QP, "Disabling MPA crc checking due to module option.\n");
 				nesqp->nesqp_context->ird_ord_sizes |= cpu_to_le32(NES_QPCONTEXT_ORDIRD_RNMC);
-- 
1.6.0

--
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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] rdma/nes: set assume_alligned_header bit
  2010-02-19 21:06 [PATCH] rdma/nes: set assume_alligned_header bit Faisal Latif
@ 2010-02-19 21:18 ` Roland Dreier
       [not found]   ` <ada3a0w7wmi.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Roland Dreier @ 2010-02-19 21:18 UTC (permalink / raw)
  To: Faisal Latif; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

 >  			nesqp->nesqp_context->ird_ord_sizes = cpu_to_le32(NES_QPCONTEXT_ORDIRD_ALSMM |
 >  					((((u32)nesadapter->max_irrq_wr) <<
 >  					NES_QPCONTEXT_ORDIRD_IRDSIZE_SHIFT) & NES_QPCONTEXT_ORDIRD_IRDSIZE_MASK));
 > +			nesqp->nesqp_context->ird_ord_sizes |= cpu_to_le32(NES_QPCONTEXT_ORDIRD_AAH);

I think I would just combine this into the existing assignment (which
could also probably be formatted better but I'm not worrying about
this), and write the whole thing as:

 			nesqp->nesqp_context->ird_ord_sizes = cpu_to_le32(NES_QPCONTEXT_ORDIRD_ALSMM |
					NES_QPCONTEXT_ORDIRD_AAH |
 					((((u32)nesadapter->max_irrq_wr) <<
 					NES_QPCONTEXT_ORDIRD_IRDSIZE_SHIFT) & NES_QPCONTEXT_ORDIRD_IRDSIZE_MASK));

-- 
Roland Dreier  <rolandd-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/index.html
--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] rdma/nes: set assume_alligned_header bit
       [not found]   ` <ada3a0w7wmi.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
@ 2010-02-19 21:23     ` Latif, Faisal
  0 siblings, 0 replies; 3+ messages in thread
From: Latif, Faisal @ 2010-02-19 21:23 UTC (permalink / raw)
  To: Roland Dreier; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

That will be fine.

Thanks
Faisal


>-----Original Message-----
>From: Roland Dreier [mailto:rdreier-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org]
>Sent: Friday, February 19, 2010 3:18 PM
>To: Latif, Faisal
>Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>Subject: Re: [PATCH] rdma/nes: set assume_alligned_header bit
>
> >  			nesqp->nesqp_context->ird_ord_sizes =
>cpu_to_le32(NES_QPCONTEXT_ORDIRD_ALSMM |
> >  					((((u32)nesadapter->max_irrq_wr) <<
> >  					NES_QPCONTEXT_ORDIRD_IRDSIZE_SHIFT) &
>NES_QPCONTEXT_ORDIRD_IRDSIZE_MASK));
> > +			nesqp->nesqp_context->ird_ord_sizes |=
>cpu_to_le32(NES_QPCONTEXT_ORDIRD_AAH);
>
>I think I would just combine this into the existing assignment (which
>could also probably be formatted better but I'm not worrying about
>this), and write the whole thing as:
>
> 			nesqp->nesqp_context->ird_ord_sizes =
>cpu_to_le32(NES_QPCONTEXT_ORDIRD_ALSMM |
>					NES_QPCONTEXT_ORDIRD_AAH |
> 					((((u32)nesadapter->max_irrq_wr) <<
> 					NES_QPCONTEXT_ORDIRD_IRDSIZE_SHIFT) &
>NES_QPCONTEXT_ORDIRD_IRDSIZE_MASK));
>
>--
>Roland Dreier  <rolandd-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
>For corporate legal information go to:
>http://www.cisco.com/web/about/doing_business/legal/cri/index.html
--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-19 21:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-19 21:06 [PATCH] rdma/nes: set assume_alligned_header bit Faisal Latif
2010-02-19 21:18 ` Roland Dreier
     [not found]   ` <ada3a0w7wmi.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-02-19 21:23     ` Latif, Faisal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.