net: 6lowpan: simplify lookup by nhc id
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | net: 6lowpan: remove const from scalarsnet/ | +3 | 3 replies | |
| 2/3 | net: 6lowpan: use array for find nhc idnet/ net/ net/ +12 more | +37 | 2 replies | |
| 3/3 | net: 6lowpan: constify lowpan_nhc structuresnet/ net/ | +11 | 2 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Stefan Schmidt | Jukka Rissanen |
|---|---|---|
| 1/3 | R-b | A-b |
| 2/3 | R-b | A-b |
| 3/3 | R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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