All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 00/16] ieee802154: 6lowpan: cleanup and rework dispatch evaluation
@ 2015-08-02 11:30 Alexander Aring
  0 siblings, 0 replies; 7+ messages in thread
From: Alexander Aring @ 2015-08-02 11:30 UTC (permalink / raw)
  To: linux-wpan; +Cc: kernel, Alexander Aring

Hi,

this patch series contains a rework of 802.15.4 6LoWPAN receive handling.
We need to check on some things before which never checked before, like
is 802.15.4 dataframe, if we can access skb->data[0] (could be that skb->len
is 0 then), etc.

Also various bug fixes like the masking for fragmentation dispatch value which
is currently wrong.

I introduced a complete new handling for the dispatch values based on mac80211
datatype receive handling mechanism.

This patch series based on bluetooth-next with various pending patches, I uploaded
the branch at:

https://github.com/linux-wpan/linux-wpan-next/commits/802154_6lowpan_cleanup2

so everybody can test it.

- Alex

Alexander Aring (16):
  ieee802154: 6lowpan: change dev vars to wdev and ldev
  ieee802154: 6lowpan: remove set to zero
  ieee802154: 6lowpan: remove EXPORT_SYMBOL
  ieee802154: 6lowpan: remove check on wdev is running
  ieee802154: 6lowpan: cleanup pull of iphc bytes
  ieee802154: 6lowpan: trivial checks at first
  ieee802154: 6lowpan: change skb->dev earlier
  ieee802154: 6lowpan: change frag return value handling
  ieee820154: 6lowpan: dispatch evaluation rework
  ieee802154: 6lowpan: add dispatch evalualtion helpers
  ieee802154: 6lowpan: fix fragmentation dispatch mask
  ieee802154: 6lowpan: add generic lowpan header check
  ieee802154: 6lowpan: add handler for all dispatch values
  ieee802154: 6lowpan: add check for reserved dispatch
  ieee802154: 6lowpan: check on valid 802.15.4 frame
  ieee802154: 6lowpan: remove packet type to host

 include/linux/ieee802154.h          |  48 +++++-
 include/net/6lowpan.h               |  18 ++-
 net/ieee802154/6lowpan/6lowpan_i.h  |   5 +-
 net/ieee802154/6lowpan/core.c       |  83 +++++-----
 net/ieee802154/6lowpan/reassembly.c |  15 +-
 net/ieee802154/6lowpan/rx.c         | 312 +++++++++++++++++++++++++++---------
 net/ieee802154/6lowpan/tx.c         |  39 +++--
 7 files changed, 369 insertions(+), 151 deletions(-)

-- 
2.5.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [RFC 00/16] ieee802154: 6lowpan: cleanup and rework dispatch evaluation
@ 2015-08-02 11:31 Alexander Aring
  2015-08-02 11:38 ` Alexander Aring
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Aring @ 2015-08-02 11:31 UTC (permalink / raw)
  To: linux-wpan; +Cc: kernel, Alexander Aring

Hi,

this patch series contains a rework of 802.15.4 6LoWPAN receive handling.
We need to check on some things before which never checked before, like
is 802.15.4 dataframe, if we can access skb->data[0] (could be that skb->len
is 0 then), etc.

Also various bug fixes like the masking for fragmentation dispatch value which
is currently wrong.

I introduced a complete new handling for the dispatch values based on mac80211
datatype receive handling mechanism.

This patch series based on bluetooth-next with various pending patches, I uploaded
the branch at:

https://github.com/linux-wpan/linux-wpan-next/commits/802154_6lowpan_cleanup2

so everybody can test it.

- Alex

Alexander Aring (16):
  ieee802154: 6lowpan: change dev vars to wdev and ldev
  ieee802154: 6lowpan: remove set to zero
  ieee802154: 6lowpan: remove EXPORT_SYMBOL
  ieee802154: 6lowpan: remove check on wdev is running
  ieee802154: 6lowpan: cleanup pull of iphc bytes
  ieee802154: 6lowpan: trivial checks at first
  ieee802154: 6lowpan: change skb->dev earlier
  ieee802154: 6lowpan: change frag return value handling
  ieee820154: 6lowpan: dispatch evaluation rework
  ieee802154: 6lowpan: add dispatch evalualtion helpers
  ieee802154: 6lowpan: fix fragmentation dispatch mask
  ieee802154: 6lowpan: add generic lowpan header check
  ieee802154: 6lowpan: add handler for all dispatch values
  ieee802154: 6lowpan: add check for reserved dispatch
  ieee802154: 6lowpan: check on valid 802.15.4 frame
  ieee802154: 6lowpan: remove packet type to host

 include/linux/ieee802154.h          |  48 +++++-
 include/net/6lowpan.h               |  18 ++-
 net/ieee802154/6lowpan/6lowpan_i.h  |   5 +-
 net/ieee802154/6lowpan/core.c       |  83 +++++-----
 net/ieee802154/6lowpan/reassembly.c |  15 +-
 net/ieee802154/6lowpan/rx.c         | 312 +++++++++++++++++++++++++++---------
 net/ieee802154/6lowpan/tx.c         |  39 +++--
 7 files changed, 369 insertions(+), 151 deletions(-)

-- 
2.5.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC 00/16] ieee802154: 6lowpan: cleanup and rework dispatch evaluation
  2015-08-02 11:31 [RFC 00/16] ieee802154: 6lowpan: cleanup and rework dispatch evaluation Alexander Aring
@ 2015-08-02 11:38 ` Alexander Aring
  2015-08-03  6:12   ` Alexander Aring
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Aring @ 2015-08-02 11:38 UTC (permalink / raw)
  To: linux-wpan; +Cc: kernel

Hi,

sorry my git-send-email setup seems to be broken somehow.

The first mail was sent and I got a "Maybe git-send-email is broken?".

I will try to dig into this issue. Again sorry for the noise.

- Alex

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC 00/16] ieee802154: 6lowpan: cleanup and rework dispatch evaluation
  2015-08-02 11:38 ` Alexander Aring
@ 2015-08-03  6:12   ` Alexander Aring
  0 siblings, 0 replies; 7+ messages in thread
From: Alexander Aring @ 2015-08-03  6:12 UTC (permalink / raw)
  To: linux-wpan; +Cc: kernel

On Sun, Aug 02, 2015 at 01:38:05PM +0200, Alexander Aring wrote:
> Hi,
> 
> sorry my git-send-email setup seems to be broken somehow.
> 

I finally figured out that I have already known issue at [0].

Should be fixed now, I will try to resend.

- Alex

[0] http://www.spinics.net/lists/git/msg255933.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [RFC 00/16] ieee802154: 6lowpan: cleanup and rework dispatch evaluation
@ 2015-08-03  6:23 Alexander Aring
  2015-08-12  8:15 ` Stefan Schmidt
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Aring @ 2015-08-03  6:23 UTC (permalink / raw)
  To: linux-wpan; +Cc: kernel, Alexander Aring

Hi,

this patch series contains a rework of 802.15.4 6LoWPAN receive handling.
We need to check on some things before which never checked before, like
is 802.15.4 dataframe, if we can access skb->data[0] (could be that skb->len
is 0 then), etc.

Also various bug fixes like the masking for fragmentation dispatch value which
is currently wrong. Also we should again check the dispatch value after successful
reassembly a fragment, we currently assume always a iphc header there. This is wrong
it could also be a non-compressed header. This can occur if the compressed header is
larger than lower interface MTU size, we doesn't react on this while transmit which
is another issue. Nevertheless we also don't reach this case at worst-case compression
currently.

I introduced a complete new handling for the dispatch values based on mac80211
datatype receive handling mechanism.

This patch series based on bluetooth-next with various pending patches, I uploaded
the branch at:

https://github.com/linux-wpan/linux-wpan-next/commits/802154_6lowpan_cleanup2

so everybody can test it.

- Alex

Alexander Aring (16):
  ieee802154: 6lowpan: change dev vars to wdev and ldev
  ieee802154: 6lowpan: remove set to zero
  ieee802154: 6lowpan: remove EXPORT_SYMBOL
  ieee802154: 6lowpan: remove check on wdev is running
  ieee802154: 6lowpan: cleanup pull of iphc bytes
  ieee802154: 6lowpan: trivial checks at first
  ieee802154: 6lowpan: change skb->dev earlier
  ieee802154: 6lowpan: change frag return value handling
  ieee820154: 6lowpan: dispatch evaluation rework
  ieee802154: 6lowpan: add dispatch evalualtion helpers
  ieee802154: 6lowpan: fix fragmentation dispatch mask
  ieee802154: 6lowpan: add generic lowpan header check
  ieee802154: 6lowpan: add handler for all dispatch values
  ieee802154: 6lowpan: add check for reserved dispatch
  ieee802154: 6lowpan: check on valid 802.15.4 frame
  ieee802154: 6lowpan: remove packet type to host

 include/linux/ieee802154.h          |  48 +++++-
 include/net/6lowpan.h               |  18 ++-
 net/ieee802154/6lowpan/6lowpan_i.h  |   5 +-
 net/ieee802154/6lowpan/core.c       |  83 +++++-----
 net/ieee802154/6lowpan/reassembly.c |  15 +-
 net/ieee802154/6lowpan/rx.c         | 312 +++++++++++++++++++++++++++---------
 net/ieee802154/6lowpan/tx.c         |  39 +++--
 7 files changed, 369 insertions(+), 151 deletions(-)

-- 
2.5.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC 00/16] ieee802154: 6lowpan: cleanup and rework dispatch evaluation
  2015-08-03  6:23 Alexander Aring
@ 2015-08-12  8:15 ` Stefan Schmidt
  2015-08-13  9:10   ` Stefan Schmidt
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Schmidt @ 2015-08-12  8:15 UTC (permalink / raw)
  To: Alexander Aring, linux-wpan; +Cc: kernel

Hello.

On 03/08/15 08:23, Alexander Aring wrote:
> Hi,
>
> this patch series contains a rework of 802.15.4 6LoWPAN receive handling.
> We need to check on some things before which never checked before, like
> is 802.15.4 dataframe, if we can access skb->data[0] (could be that skb->len
> is 0 then), etc.
>
> Also various bug fixes like the masking for fragmentation dispatch value which
> is currently wrong. Also we should again check the dispatch value after successful
> reassembly a fragment, we currently assume always a iphc header there. This is wrong
> it could also be a non-compressed header. This can occur if the compressed header is
> larger than lower interface MTU size, we doesn't react on this while transmit which
> is another issue. Nevertheless we also don't reach this case at worst-case compression
> currently.
>
> I introduced a complete new handling for the dispatch values based on mac80211
> datatype receive handling mechanism.

I'm going to review this set over the next days. Just as a heads up.

> This patch series based on bluetooth-next with various pending patches, I uploaded
> the branch at:
>
> https://github.com/linux-wpan/linux-wpan-next/commits/802154_6lowpan_cleanup2
>
> so everybody can test it.

I tried to apply the patches directly on bluetooth-next but they did not 
apply. Guess you want to rebase them when sending out a new round. For 
now I will review the patches here and use the branch you uploaded for 
testing. Will report back later.

regards
Stefan Schmidt

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC 00/16] ieee802154: 6lowpan: cleanup and rework dispatch evaluation
  2015-08-12  8:15 ` Stefan Schmidt
@ 2015-08-13  9:10   ` Stefan Schmidt
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Schmidt @ 2015-08-13  9:10 UTC (permalink / raw)
  To: Alexander Aring, linux-wpan; +Cc: kernel

Hello.

On 12/08/15 10:15, Stefan Schmidt wrote:
> Hello.
>
> On 03/08/15 08:23, Alexander Aring wrote:
>> Hi,
>>
>> this patch series contains a rework of 802.15.4 6LoWPAN receive 
>> handling.
>> We need to check on some things before which never checked before, like
>> is 802.15.4 dataframe, if we can access skb->data[0] (could be that 
>> skb->len
>> is 0 then), etc.
>>
>> Also various bug fixes like the masking for fragmentation dispatch 
>> value which
>> is currently wrong. Also we should again check the dispatch value 
>> after successful
>> reassembly a fragment, we currently assume always a iphc header 
>> there. This is wrong
>> it could also be a non-compressed header. This can occur if the 
>> compressed header is
>> larger than lower interface MTU size, we doesn't react on this while 
>> transmit which
>> is another issue. Nevertheless we also don't reach this case at 
>> worst-case compression
>> currently.
>>
>> I introduced a complete new handling for the dispatch values based on 
>> mac80211
>> datatype receive handling mechanism.
>
> I'm going to review this set over the next days. Just as a heads up.
>
>> This patch series based on bluetooth-next with various pending 
>> patches, I uploaded
>> the branch at:
>>
>> https://github.com/linux-wpan/linux-wpan-next/commits/802154_6lowpan_cleanup2 
>>
>>
>> so everybody can test it.
>
> I tried to apply the patches directly on bluetooth-next but they did 
> not apply. Guess you want to rebase them when sending out a new round. 
> For now I will review the patches here and use the branch you uploaded 
> for testing. Will report back later.

My testing showed no problems with this. You can add a

Tested-by: Stefan Schmidt <stefan@osg.samsung.com>

to the whole series.

regards
Stefan Schmidt




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-08-13  9:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-02 11:31 [RFC 00/16] ieee802154: 6lowpan: cleanup and rework dispatch evaluation Alexander Aring
2015-08-02 11:38 ` Alexander Aring
2015-08-03  6:12   ` Alexander Aring
  -- strict thread matches above, loose matches on Subject: below --
2015-08-03  6:23 Alexander Aring
2015-08-12  8:15 ` Stefan Schmidt
2015-08-13  9:10   ` Stefan Schmidt
2015-08-02 11:30 Alexander Aring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.