[Linux-zigbee-devel] [PATCH net-next 01/17] 6lowpan: allow to skip bytes in lowpan_fetch_skb

2013-10-13 Thread Alexander Aring
This will add support to skip bytes from skb with the lowpan_fetch_skb function. This is necessary for upcomming patches. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/ieee802154/6lowpan.h b/net/ieee802154/

[Linux-zigbee-devel] [PATCH net-next 06/17] 6lowpan: remove unnecessary ret variable

2013-10-13 Thread Alexander Aring
Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 1743478..1dd690a 100644 --- a/net/ieee802154/6lowpan.c +++ b/net/ieee802154/6lowpan.c @@ -1078,7 +1078,7

[Linux-zigbee-devel] [PATCH net-next 00/17] 6lowpan: fragmentation fix

2013-10-13 Thread Alexander Aring
The current fragmentation implementation isn't rfc4944 compatible so a ping with a payload of > 127 with other 6lowpan implementations like contiki isn't possible. This patch fixes the fragmentation implementation to rfc4944 so fragmentation with ping comes possible, Also fix some race conditio

[Linux-zigbee-devel] [PATCH net-next 02/17] 6lowpan: fix indentation

2013-10-13 Thread Alexander Aring
This patch indentation fixes are necessary for the upcomming patches. It removes some whitespace issues which checkpatch pointed out. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/net/ieee802154/6lowpa

[Linux-zigbee-devel] [PATCH net-next 16/17] 6lowpan: fix fragmentation race condition

2013-10-13 Thread Alexander Aring
If the timer expire on fragmentation handling we need to hold the flist_lock spinlock while accessing fraglist. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 0da513b..10c

[Linux-zigbee-devel] [PATCH net-next 05/17] 6lowpan: set 6lowpan network and transport header

2013-10-13 Thread Alexander Aring
This is necessary for upcomming patches to calculate the 6lowpan header. It's a little bit tricky here because a UDP transport header can be compressed in the network header, so the UDP header is merged in the 6lowpan header. In this case the transport header points to the payload of the UDP header

[Linux-zigbee-devel] [PATCH net-next 08/17] 6lowpan: remove unnecessary check on err >= 0

2013-10-13 Thread Alexander Aring
Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index c458ac2..6547efc 100644 --- a/net/ieee802154/6lowpan.c +++ b/net/ieee802154/6lowpan.c @@ -1137,7 +1137,7 @@ low

[Linux-zigbee-devel] [PATCH net-next 09/17] 6lowpan: cleanup skb copy data

2013-10-13 Thread Alexander Aring
This patch drops the directly memcpy on skb and uses the right skb memcpy functions. Also remove an unnecessary check if plen is non zero. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/net/ieee802154/

[Linux-zigbee-devel] [PATCH net-next 11/17] 6lowpan: remove lowpan_skb_deliver func

2013-10-13 Thread Alexander Aring
Since we drop the skb copies, we don't need this function. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 42deee6..711f905 100644 ---

[Linux-zigbee-devel] [PATCH net-next 12/17] 6lowpan: remove skb->dev assign

2013-10-13 Thread Alexander Aring
This patch removes the assign of skb->dev. We don't need it here because we use a netdev_alloc_skb... function. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 711f905..448cc7

[Linux-zigbee-devel] [PATCH net-next 03/17] 6lowpan: remove several copies of sk_buff

2013-10-13 Thread Alexander Aring
The current implementation does many copies of the sk_buff for increasing headroom which are not necessary. This patch increases the headroom in the maclayer for a worst case scenario of (sizeof(struct ipv6hdr) + sizeof(struct udphdr)). Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.

[Linux-zigbee-devel] [PATCH net-next 17/17] 6lowpan: use try_to_del_timer_sync instead del_timer_sync

2013-10-13 Thread Alexander Aring
This is a race condition fix if the timer expire occurs when the last frame is arrived otherwise we cleanup the list entry twice. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/ieee802154/6lowpan.c b/net/iee

[Linux-zigbee-devel] [PATCH net-next 14/17] 6lowpan: fix fragmentation on receiving side

2013-10-13 Thread Alexander Aring
This patch fixes the fragmentation of receiving 6lowpan packets. The current fragmentation isn't rfc4944 compatible. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 268 +++ 1 file changed, 154 insertions(+), 114 deletions(-) diff --git

[Linux-zigbee-devel] [PATCH net-next 15/17] 6lowpan: add match for address

2013-10-13 Thread Alexander Aring
Currently we match fragmentation frames only on his tagid. This patch adds support to match also on source and destination address. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 13 - net/ieee802154/6lowpan.h | 28 2 files changed, 40 inse

[Linux-zigbee-devel] [PATCH net-next 10/17] 6lowpan: remove unecessary set of headers

2013-10-13 Thread Alexander Aring
On receiving side we don't need to set any headers in skb. The deliver function delivers the skb to ipv6 handler and the ipv6 handler will set these headers. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 4 1 file changed, 4 deletions(-) diff --git a/net/ieee802154/6lowpan.

[Linux-zigbee-devel] [PATCH net-next 13/17] 6lowpan: fix fragmentation on sending side

2013-10-13 Thread Alexander Aring
This patch fix the fragmentation on sending side according to rfc4944. Also add improvement to use the full payload of a PDU which calculate the nearest divided to 8 payload length for the fragmentation datagram offset attribute. Signed-off-by: Alexander Aring --- include/net/ieee802154_netdev.

[Linux-zigbee-devel] [PATCH net-next 04/17] 6lowpan: set and use mac_len for mac header length

2013-10-13 Thread Alexander Aring
Set the mac header length while creating the 802.15.4 mac header. Drop the function for recalculate mac header length in upper layers which was static and works for intra pan communication only. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 13 + net/mac802154/wpan.c

[Linux-zigbee-devel] [PATCH net-next 07/17] 6lowpan: use netdev_alloc_skb instead dev_alloc_skb

2013-10-13 Thread Alexander Aring
This patch uses the netdev_alloc_skb instead dev_alloc_skb function. Also dropping the assign to skb->dev to netdev. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowp

Re: [Linux-zigbee-devel] [PATCH net-next 14/17] 6lowpan: fix fragmentation on receiving side

2013-10-13 Thread Alexander Aring
On Sun, Oct 13, 2013 at 03:46:47PM +0200, Alexander Aring wrote: > This patch fixes the fragmentation of receiving 6lowpan packets. > The current fragmentation isn't rfc4944 compatible. > > Signed-off-by: Alexander Aring > --- > net/ieee802154/6lowpan.c | 268 > +++--