diff options
author | David Sterba <dsterba@suse.cz> | 2008-07-28 10:53:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-28 11:28:03 -0400 |
commit | a01386924874c4d6d67f8a34e66f04452c2abb69 (patch) | |
tree | c412347f001f7d84c23ffc8d88f14479d999dfd4 /drivers/char/pcmcia/ipwireless/network.h | |
parent | 0f38c47a545d36da4038fec0708e6e3fbdb160b1 (diff) |
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>
Diffstat (limited to 'drivers/char/pcmcia/ipwireless/network.h')
-rw-r--r-- | drivers/char/pcmcia/ipwireless/network.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/pcmcia/ipwireless/network.h b/drivers/char/pcmcia/ipwireless/network.h index ccacd26fc7ef..561f765b3334 100644 --- a/drivers/char/pcmcia/ipwireless/network.h +++ b/drivers/char/pcmcia/ipwireless/network.h | |||
@@ -48,5 +48,6 @@ void ipwireless_ppp_open(struct ipw_network *net); | |||
48 | void ipwireless_ppp_close(struct ipw_network *net); | 48 | void ipwireless_ppp_close(struct ipw_network *net); |
49 | int ipwireless_ppp_channel_index(struct ipw_network *net); | 49 | int ipwireless_ppp_channel_index(struct ipw_network *net); |
50 | int ipwireless_ppp_unit_number(struct ipw_network *net); | 50 | int ipwireless_ppp_unit_number(struct ipw_network *net); |
51 | int ipwireless_ppp_mru(const struct ipw_network *net); | ||
51 | 52 | ||
52 | #endif | 53 | #endif |