diff options
author | Alan Ott <alan@signal11.us> | 2013-04-03 00:00:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-07 17:06:43 -0400 |
commit | e937f583ec3a40cccd480b40d8c6d54751781587 (patch) | |
tree | 4885a511f62ca7bcf7d41f51acccd633f53587ad | |
parent | b5992fe962b0c91880229ec31166517e4db2977b (diff) |
mac802154: Increase tx_buffer_len
Increase the buffer length from 10 to 300 packets. Consider that traffic on
mac802154 devices will often be 6LoWPAN, and a full-length (1280 octet)
IPv6 packet will fragment into 15 6LoWPAN fragments (because the MTU of
IEEE 802.15.4 is 127). A 300-packet queue is really 20 full-length IPv6
packets.
With a queue length of 10, an entire IPv6 packet was unable to get queued
at one time, causing fragments to be dropped, and making reassembly
impossible.
Signed-off-by: Alan Ott <alan@signal11.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/mac802154/wpan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac802154/wpan.c b/net/mac802154/wpan.c index 7d3f6594ed4f..2ca2f4dceab7 100644 --- a/net/mac802154/wpan.c +++ b/net/mac802154/wpan.c | |||
@@ -360,7 +360,7 @@ void mac802154_wpan_setup(struct net_device *dev) | |||
360 | dev->header_ops = &mac802154_header_ops; | 360 | dev->header_ops = &mac802154_header_ops; |
361 | dev->needed_tailroom = 2; /* FCS */ | 361 | dev->needed_tailroom = 2; /* FCS */ |
362 | dev->mtu = IEEE802154_MTU; | 362 | dev->mtu = IEEE802154_MTU; |
363 | dev->tx_queue_len = 10; | 363 | dev->tx_queue_len = 300; |
364 | dev->type = ARPHRD_IEEE802154; | 364 | dev->type = ARPHRD_IEEE802154; |
365 | dev->flags = IFF_NOARP | IFF_BROADCAST; | 365 | dev->flags = IFF_NOARP | IFF_BROADCAST; |
366 | dev->watchdog_timeo = 0; | 366 | dev->watchdog_timeo = 0; |