Skip to content

ieee802154: 6lowpan: remove full-size calculation workarounds

Alexander Aring linux-wpan 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/76lowpan: allow pull only at lowpan_fetch_skbinclude/net/6lowpan.h+3 -10 replies
2/7ieee802154: 6lowpan: skb_pull with error handlingnet/ieee802154/6lowpan/rx.c+3 -10 replies
3/7ieee802154: 6lowpan: use skb_network_headernet/ieee802154/6lowpan/rx.c+2 -20 replies
4/7ieee802154: 6lowpan: remove rx full-size calc workaroundnet/ieee802154/6lowpan/6lowpan_i.h net/ieee802154/6lowpan/reassembly.c net/ieee802154/6lowpan/rx.c+30 -170 replies
5/7ieee802154: 6lowpan: handle fragmented IPv6net/ieee802154/6lowpan/reassembly.c+14 -80 replies
6/7ieee802154: 6lowpan: cleanup frag dispatch casesnet/ieee802154/6lowpan/rx.c+4 -120 replies
7/7ieee802154: 6lowpan: remove tx full-size calc workaroundinclude/net/6lowpan.h net/ieee802154/6lowpan/tx.c+11 -1200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bluetooth-next 0/7] ieee802154: 6lowpan: remove full-size calculation workarounds

Hi,

this patch series based on "ieee802154: 6lowpan: separate receive/transmit functionality".

In this patch series I mainly removes the lowpan_uncompress_size function workarounds. Why this is a workaround solution? So this function parse again the 6LoWPAN header for getting the 6LoWPAN header size. We do parsing twice and this is the first ugly thing there. The second thing is that when we add new header compression we need to touch the lowpan_uncompress_size again for adding next header size calculation. This series removes the workaround so we need to parse/create this only once. It was myself which introduce this workaround to have at first something which works. Since Martin Townsend work which put out the lowpan_give_upper_layer outside of the iphc decompression we can handle it now in that way.

This patch also includes some cleanup patches which I detect while programming this one. In futher the 6LoWPAN parsing should look like mac802154 parsing. mac802154 parsing look like mac80211. To rework the 6LoWPAN parsing will be the next steps.

Cc Jukka Rissanen <[email protected]>

Alexander Aring (7):
6lowpan: allow pull only at lowpan_fetch_skb
ieee802154: 6lowpan: skb_pull with error handling
ieee802154: 6lowpan: use skb_network_header
ieee802154: 6lowpan: remove rx full-size calc workaround
ieee802154: 6lowpan: handle fragmented IPv6
ieee802154: 6lowpan: cleanup frag dispatch cases
ieee802154: 6lowpan: remove tx full-size calc workaround

 include/net/6lowpan.h               | 117 +-----------------------------------
 net/ieee802154/6lowpan/6lowpan_i.h  |   1 +
 net/ieee802154/6lowpan/reassembly.c |  31 ++++++++--
 net/ieee802154/6lowpan/rx.c         |  39 +++++-------
 net/ieee802154/6lowpan/tx.c         |  18 +++---
 5 files changed, 56 insertions(+), 150 deletions(-)
Signature · 1 line
2.2.0