linux/net/6lowpan
Alexander Aring 31264f9563 net: 6lowpan: use array for find nhc id
This patch will remove the complete overengineered and overthinking rb data
structure for looking up the nhc by nhcid. Instead we using the existing
nhc next header array and iterate over it. It works now for 1 byte values
only. However there are only 1 byte nhc id values currently
supported and IANA also does not specify large than 1 byte values yet.
If there are 2 byte values for nhc ids specified we can revisit this
data structure and add support for it.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Link: https://lore.kernel.org/r/20220428030534.3220410-3-aahringo@redhat.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
2022-06-09 21:53:28 +02:00
..
6lowpan_i.h 6lowpan: no need to check return value of debugfs_create functions 2019-07-06 12:50:01 +02:00
core.c net: don't include ndisc.h from ipv6.h 2022-02-04 14:15:11 -08:00
debugfs.c 6lowpan: iphc: Fix an off-by-one check of array index 2021-07-22 16:19:03 +02:00
iphc.c 6lowpan: iphc: reset mac_header after decompress to fix panic 2018-07-06 12:32:12 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ndisc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
nhc_dest.c net: 6lowpan: use array for find nhc id 2022-06-09 21:53:28 +02:00
nhc_fragment.c net: 6lowpan: use array for find nhc id 2022-06-09 21:53:28 +02:00
nhc_ghc_ext_dest.c net: 6lowpan: use array for find nhc id 2022-06-09 21:53:28 +02:00
nhc_ghc_ext_frag.c net: 6lowpan: use array for find nhc id 2022-06-09 21:53:28 +02:00
nhc_ghc_ext_hop.c net: 6lowpan: use array for find nhc id 2022-06-09 21:53:28 +02:00
nhc_ghc_ext_route.c net: 6lowpan: use array for find nhc id 2022-06-09 21:53:28 +02:00
nhc_ghc_icmpv6.c net: 6lowpan: use array for find nhc id 2022-06-09 21:53:28 +02:00
nhc_ghc_udp.c net: 6lowpan: use array for find nhc id 2022-06-09 21:53:28 +02:00
nhc_hop.c net: 6lowpan: use array for find nhc id 2022-06-09 21:53:28 +02:00
nhc_ipv6.c net: 6lowpan: use array for find nhc id 2022-06-09 21:53:28 +02:00
nhc_mobility.c net: 6lowpan: use array for find nhc id 2022-06-09 21:53:28 +02:00
nhc_routing.c net: 6lowpan: use array for find nhc id 2022-06-09 21:53:28 +02:00
nhc_udp.c net: 6lowpan: use array for find nhc id 2022-06-09 21:53:28 +02:00
nhc.c net: 6lowpan: use array for find nhc id 2022-06-09 21:53:28 +02:00
nhc.h net: 6lowpan: use array for find nhc id 2022-06-09 21:53:28 +02:00