Skip to content

net: 6lowpan: simplify lookup by nhc id

Alexander Aring linux-bluetooth linux-wpan 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: 6lowpan: remove const from scalarsnet/6lowpan/nhc.h+3 -33 replies
2/3net: 6lowpan: use array for find nhc idnet/6lowpan/nhc.c net/6lowpan/nhc.h net/6lowpan/nhc_dest.c +12 more+37 -2032 replies
3/3net: 6lowpan: constify lowpan_nhc structuresnet/6lowpan/nhc.c net/6lowpan/nhc.h+11 -112 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchStefan SchmidtJukka Rissanen
1/3R-b A-b
2/3R-b A-b
3/3R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bluetooth-next 0/3] net: 6lowpan: simplify lookup by nhc id

Hi,

this patch series removes the rb data structure for looking up a nhc by nhc id. Instead we using the existing nexthdr lookup array by iterating over it and find the right nhc by nhc id. It's simply not worth it to use such complex handling for such small amount of nhc. As we only support nhc ids which fits into 1 byte and there are not two byte nhc ids values specified yet, we let the nhc layer only handle 1 byte values. If there is the need for 2 byte nhc values we can add support for it.

- Alex

Alexander Aring (3):
net: 6lowpan: remove const from scalars
net: 6lowpan: use array for find nhc id
net: 6lowpan: constify lowpan_nhc structures

 net/6lowpan/nhc.c               | 103 ++++++--------------------------
 net/6lowpan/nhc.h               |  38 +++++-------
 net/6lowpan/nhc_dest.c          |   9 +--
 net/6lowpan/nhc_fragment.c      |   9 +--
 net/6lowpan/nhc_ghc_ext_dest.c  |   9 +--
 net/6lowpan/nhc_ghc_ext_frag.c  |  11 +---
 net/6lowpan/nhc_ghc_ext_hop.c   |   9 +--
 net/6lowpan/nhc_ghc_ext_route.c |   9 +--
 net/6lowpan/nhc_ghc_icmpv6.c    |   9 +--
 net/6lowpan/nhc_ghc_udp.c       |   9 +--
 net/6lowpan/nhc_hop.c           |   9 +--
 net/6lowpan/nhc_ipv6.c          |  11 +---
 net/6lowpan/nhc_mobility.c      |   9 +--
 net/6lowpan/nhc_routing.c       |   9 +--
 net/6lowpan/nhc_udp.c           |   9 +--
 15 files changed, 48 insertions(+), 214 deletions(-)
Signature · 1 line
2.31.1