[Linux-zigbee-devel] [PATCH] 6lowpan: consider checksum bytes in fragmentation threshold

2012-11-29 Thread Alan Ott
Change the threshold for framentation of a lowpan packet from using the MTU size to now use the MTU size minus the checksum length, which is added by the hardware. For IEEE 802.15.4, this effectively changes it from 127 bytes to 125 bytes. Signed-off-by: Alan Ott --- net/ieee802154/6lowpan.c | 3

Re: [Linux-zigbee-devel] [PATCH] 6lowpan: consider checksum bytes in fragmentation threshold

2012-11-29 Thread Alan Ott
On 11/29/2012 08:55 PM, Alan Ott wrote: > Change the threshold for framentation of a lowpan packet from > using the MTU size to now use the MTU size minus the checksum length, > which is added by the hardware. For IEEE 802.15.4, this effectively > changes it from 127 bytes to 125 bytes. > Sorry, t

[Linux-zigbee-devel] [PATCH 2/2] mac802154: use kfree_skb() instead of dev_kfree_skb()

2012-11-29 Thread Alan Ott
kfree_skb() indicates failure, which is where this is being used. Signed-off-by: Alan Ott --- net/mac802154/tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac802154/tx.c b/net/mac802154/tx.c index db63914..4e09d07 100644 --- a/net/mac802154/tx.c +++ b/net/mac802154/

[Linux-zigbee-devel] [PATCH 1/2] mac802154: fix memory leaks

2012-11-29 Thread Alan Ott
kfree_skb() was not getting called in the case of some failures. This was pointed out by Eric Dumazet. Signed-off-by: Alan Ott --- net/mac802154/tx.c | 5 - net/mac802154/wpan.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/net/mac802154/tx.c b/net/mac802154/tx.c