]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: extract qdio buffers from output buffer struct
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Fri, 27 Jun 2014 15:09:25 +0000 (17:09 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 22 Jul 2014 07:26:15 +0000 (09:26 +0200)
commitd15ed280d60db4486678b434ee207f5eb175885f
tree500daa23bf7efe87fa5e1bbb91f77994f041e787
parenta7e9e148beff5c866cf762851e8aeb68e1399dd8
s390/qeth: extract qdio buffers from output buffer struct

Because of the embedded qdio_buffer array struct qeth_qdio_out_q is
quite large resulting in an order 4 allocation. This is likely to
fail at runtime and wastes a lot of memory since the actual size is
just about 34K.

Since there is no need for this buffer to be contiguous split it up
using qdio buffer helpers.

Reported-by: Neale Ferguson <neale@sinenomine.net>
Reviewed-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/net/qeth_core.h
drivers/s390/net/qeth_core_main.c