* [PATCH] ehea: Increase the skb array usage
@ 2011-01-11 17:45 leitao
2011-01-11 22:04 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: leitao @ 2011-01-11 17:45 UTC (permalink / raw)
To: davem; +Cc: netdev
From: Breno Leitao <leitao@linux.vnet.ibm.com>
Currently the skb array is not fully allocated, and the allocation
is done as it' s requested, which is not the expected way.
This patch just allocate the full skb array at driver initialization.
Also, this patch increases ehea version to 107.
Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
---
drivers/net/ehea/ehea.h | 2 +-
drivers/net/ehea/ehea_main.c | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ehea/ehea.h b/drivers/net/ehea/ehea.h
index a724a2d..6c7257b 100644
--- a/drivers/net/ehea/ehea.h
+++ b/drivers/net/ehea/ehea.h
@@ -40,7 +40,7 @@
#include <asm/io.h>
#define DRV_NAME "ehea"
-#define DRV_VERSION "EHEA_0106"
+#define DRV_VERSION "EHEA_0107"
/* eHEA capability flags */
#define DLPAR_PORT_ADD_REM 1
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c
index 1032b5b..f75d314 100644
--- a/drivers/net/ehea/ehea_main.c
+++ b/drivers/net/ehea/ehea_main.c
@@ -437,7 +437,7 @@ static void ehea_init_fill_rq1(struct ehea_port_res *pr, int nr_rq1a)
}
}
/* Ring doorbell */
- ehea_update_rq1a(pr->qp, i);
+ ehea_update_rq1a(pr->qp, i - 1);
}
static int ehea_refill_rq_def(struct ehea_port_res *pr,
@@ -1329,9 +1329,7 @@ static int ehea_fill_port_res(struct ehea_port_res *pr)
int ret;
struct ehea_qp_init_attr *init_attr = &pr->qp->init_attr;
- ehea_init_fill_rq1(pr, init_attr->act_nr_rwqes_rq1
- - init_attr->act_nr_rwqes_rq2
- - init_attr->act_nr_rwqes_rq3 - 1);
+ ehea_init_fill_rq1(pr, pr->rq1_skba.len);
ret = ehea_refill_rq2(pr, init_attr->act_nr_rwqes_rq2 - 1);
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ehea: Increase the skb array usage
2011-01-11 17:45 [PATCH] ehea: Increase the skb array usage leitao
@ 2011-01-11 22:04 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-01-11 22:04 UTC (permalink / raw)
To: leitao; +Cc: netdev
From: leitao@linux.vnet.ibm.com
Date: Tue, 11 Jan 2011 15:45:57 -0200
> From: Breno Leitao <leitao@linux.vnet.ibm.com>
>
> Currently the skb array is not fully allocated, and the allocation
> is done as it' s requested, which is not the expected way.
>
> This patch just allocate the full skb array at driver initialization.
> Also, this patch increases ehea version to 107.
>
> Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-11 22:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-11 17:45 [PATCH] ehea: Increase the skb array usage leitao
2011-01-11 22:04 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).