Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ehea: Increase the skb array usage

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>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Breno Leitao and committed by
David S. Miller
f76957fc b5074087

+3 -5
+1 -1
drivers/net/ehea/ehea.h
··· 40 40 #include <asm/io.h> 41 41 42 42 #define DRV_NAME "ehea" 43 - #define DRV_VERSION "EHEA_0106" 43 + #define DRV_VERSION "EHEA_0107" 44 44 45 45 /* eHEA capability flags */ 46 46 #define DLPAR_PORT_ADD_REM 1
+2 -4
drivers/net/ehea/ehea_main.c
··· 437 437 } 438 438 } 439 439 /* Ring doorbell */ 440 - ehea_update_rq1a(pr->qp, i); 440 + ehea_update_rq1a(pr->qp, i - 1); 441 441 } 442 442 443 443 static int ehea_refill_rq_def(struct ehea_port_res *pr, ··· 1329 1329 int ret; 1330 1330 struct ehea_qp_init_attr *init_attr = &pr->qp->init_attr; 1331 1331 1332 - ehea_init_fill_rq1(pr, init_attr->act_nr_rwqes_rq1 1333 - - init_attr->act_nr_rwqes_rq2 1334 - - init_attr->act_nr_rwqes_rq3 - 1); 1332 + ehea_init_fill_rq1(pr, pr->rq1_skba.len); 1335 1333 1336 1334 ret = ehea_refill_rq2(pr, init_attr->act_nr_rwqes_rq2 - 1); 1337 1335