Parav Pandit | 8 Jun 2012 17:55
Favicon

[PATCH] RDMA/ocrdma: Corrected Queue max values.

From: Mahesh Vardhamanaiah <mahesh.vardhamanaiah@...>

Fixed  code to read the max wqe and max rqe values from
mailbox response.

Signed-off-by: Mahesh Vardhamanaiah <mahesh.vardhamanaiah@...>
---
 drivers/infiniband/hw/ocrdma/ocrdma_hw.c  |   15 +++++----------
 drivers/infiniband/hw/ocrdma/ocrdma_sli.h |    2 +-
 2 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
index f26314f..5704bb9 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
+++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
 <at>  <at>  -990,8 +990,6  <at>  <at>  static void ocrdma_get_attr(struct ocrdma_dev *dev,
 			      struct ocrdma_dev_attr *attr,
 			      struct ocrdma_mbx_query_config *rsp)
 {
-	int max_q_mem;
-
 	attr->max_pd =
 	    (rsp->max_pd_ca_ack_delay & OCRDMA_MBX_QUERY_CFG_MAX_PD_MASK) >>
 	    OCRDMA_MBX_QUERY_CFG_MAX_PD_SHIFT;
 <at>  <at>  -1037,18 +1035,15  <at>  <at>  static void ocrdma_get_attr(struct ocrdma_dev *dev,
 	attr->max_inline_data =
 	    attr->wqe_size - (sizeof(struct ocrdma_hdr_wqe) +
 			      sizeof(struct ocrdma_sge));
-	max_q_mem = OCRDMA_Q_PAGE_BASE_SIZE << (OCRDMA_MAX_Q_PAGE_SIZE_CNT - 1);
-	/* hw can queue one less then the configured size,
(Continue reading)

Roland Dreier | 11 Jun 2012 18:43
Favicon
Gravatar

Re: [PATCH] RDMA/ocrdma: Corrected Queue max values.

This patch is almost formatted perfectly, except in the future when
you send someone else's patch, please include your own Signed-off-by
line as well at the end of the chain.  In other words, the email
should go

>From: Mahesh Vardhamanaiah <mahesh.vardhamanaiah@...>
>
>Fixed  code to read the max wqe and max rqe values from
>mailbox response.
>
>Signed-off-by: Mahesh Vardhamanaiah <mahesh.vardhamanaiah@...>
>Signed-off-by: Parav Pandit <parav.pandit@...>

because you are in the chain of people that handled this patch.

anyway, applied this time.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Gmane