]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ipwireless: Preallocate received packet buffers with MRU size
authorDavid Sterba <dsterba@suse.cz>
Mon, 28 Jul 2008 14:53:32 +0000 (16:53 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Jul 2008 15:28:03 +0000 (08:28 -0700)
commita01386924874c4d6d67f8a34e66f04452c2abb69
treec412347f001f7d84c23ffc8d88f14479d999dfd4
parent0f38c47a545d36da4038fec0708e6e3fbdb160b1
ipwireless: Preallocate received packet buffers with MRU size

ipwireless: Preallocate received packet buffers with MRU size

Packets are assembled from link size (~300 bytes) up to PPP MRU
(1500 by default). Try to preallocate full size rather than
repeatedly advance buffer size by 256 bytes.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/pcmcia/ipwireless/hardware.c
drivers/char/pcmcia/ipwireless/network.c
drivers/char/pcmcia/ipwireless/network.h