[Linux-zigbee-devel] [PATCH v2 3/4] mac802154: Increase tx_buffer_len

2013-04-03 Thread Alan Ott
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 packet

[Linux-zigbee-devel] [PATCH v2 0/4] 802.15.4 and 6LoWPAN Buffering Fixes

2013-04-03 Thread Alan Ott
Version 2 of this patch series: Differences from v1: 1. Patches previously numbered 5 and 6 were squashed (to become current patch #4) at the request of Alexander Smirnov. 2. Current patch #2 had extraneous braces removed. 3. Current patch #1 was changed. It is now a patch to make mac802154 _no

[Linux-zigbee-devel] [PATCH v2 1/4] mac802154: Do not try to resend failed packets

2013-04-03 Thread Alan Ott
When ops->xmit() fails, drop the packet. Devices which support hardware ack and retry (which include all devices currently supported by mainline), will automatically retry sending the packet (in the hardware) up to 3 times, per the 802.15.4 spec. There is no need, and it is incorrect to try to do

[Linux-zigbee-devel] [PATCH v2 2/4] mac802154: Use netif flow control

2013-04-03 Thread Alan Ott
Use netif_stop_queue() and netif_wake_queue() to control the flow of packets to mac802154 devices. Since many IEEE 802.15.4 devices have no output buffer, and since the mac802154 xmit() function is designed to block, netif_stop_queue() is called after each packet. Signed-off-by: Alan Ott --- ne

[Linux-zigbee-devel] [PATCH v2 4/4] 6lowpan: handle dev_queue_xmit() error code properly

2013-04-03 Thread Alan Ott
dev_queue_xmit() will return a positive value if the packet could not be queued, often because the real network device (in our case the mac802154 wpan device) has its queue stopped. lowpan_xmit() should handle the positive return code (for the debug statement) and return that value to the higher l

Re: [Linux-zigbee-devel] [RFC PATCH] at86rf230: faster switching from BUSY_TX to RX_ON

2013-04-03 Thread Sascha Herrmann
>> I would be happy about any comments :) > > This definitely sounds like a very good idea to me. > > I'm not sure whether the state change (to RX_ON) that's still > being commanded in at86rf230_start after transmit completion is > harmless. I'd consider getting rid of it. > > Unless I was horr

Re: [Linux-zigbee-devel] [RFC PATCH] at86rf230: faster switching from BUSY_TX to RX_ON

2013-04-03 Thread Werner Almesberger
Sascha Herrmann wrote: > I think you are right here, I had the setting of RX_SAFE_MODE removed in > an earlier version, too. If I understand this right, we only need to set > RX_SAFE_MODE after reading the frame buffer. I think we just need to set it once and then never touch it again. At least th

[Linux-zigbee-devel] Announcing the first public release of SimpleRPL

2013-04-03 Thread Tony Cheneau
Hello, I'm glad to announce the first release of SimpleRPL, a Linux-based implementation of the Routing Protocol for Low-Power and Lossy Networks (RPL). This protocol has been developed at the IETF as an attempt to define a routing protocol suitable for lossy and low bandwidth link-layer (such a

Re: [Linux-zigbee-devel] Announcing the first public release of SimpleRPL

2013-04-03 Thread Robert Schwebel
On Thu, Apr 04, 2013 at 12:02:30AM +0200, Tony Cheneau wrote: > I'm glad to announce the first release of SimpleRPL, a Linux-based > implementation of the Routing Protocol for Low-Power and Lossy > Networks (RPL). You do that in ... Python? How does that fit with the fact that a lot of 802.15.4 de