linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv3 bluetooth-next 0/3] 6lowpan: introduce nhc framework
@ 2014-12-08 15:50 Alexander Aring
  2014-12-08 15:50 ` [PATCHv3 bluetooth-next 1/3] 6lowpan: add generic nhc layer interface Alexander Aring
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Alexander Aring @ 2014-12-08 15:50 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: linux-wpan, kernel, Alexander Aring, Jukka Rissanen,
	Martin Townsend, Marcel Holtmann

This patch series introduce the next header compression framework. Currently
we support udp compression/uncompression only. This framework allow to add new
next header compression formats easily.

If somebody wants to add a new header compression format and some information
are missing while calling compression and uncompression callbacks. Please
feel free to make framework changes according these callbacks.

changes since v2:
 - make udp nhc as module as suggested by Marcel Holtmann
 - fix comment header in nhc_udp.c

I didn't make the lowpan_nhc declaration "const" because this will occur
issues with rb_node, id and idmask array. Which will manipulated during
runtime.

changes since v3:
 - add patch 3/3 for other known rfc6282 ipv6 extension headers compression
   formats
 - add request_modules for loading nhc default compression format modules.
   Which was suggested by Jukka Rissanen. Thanks, this is really working.
 - Add rtnl_lock for lowpan_nhc_add and del since we have no synced
   request_modules call this could make trouble.
 - Move some handling out of nhc_do_compression and uncompression function.
   The complete handling is now inside of iphc.c and nhc_do_compression and
   uncompression functions is only a wrapper call for the callback.
 - rework some menuentries for Kconfig and compression format, they are
   grouped by rfc now.
 - move some generic handling like "skb_pull(skb, nhc->nexthdrlen);" into
   iphc.c. It would be great if we have something also for uncompression
   for the skb_cow. But this isn't possible right now.
 - change warning if nhc was not found to "was not found" instead isn't
   implemented. It isn't implemented if callbacks are NULL now.
 - small cleanups.

Cc: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Cc: Martin Townsend <mtownsend1973@gmail.com>
Cc: Marcel Holtmann <marcel@holtmann.org>

Alexander Aring (3):
  6lowpan: add generic nhc layer interface
  6lowpan: add udp compression via nhc layer
  6lowpan: nhc: add other known rfc6282 compressions

 net/6lowpan/Kconfig             |  60 ++++++++++-
 net/6lowpan/Makefile            |  13 ++-
 net/6lowpan/iphc.c              | 223 +++++++++++-----------------------------
 net/6lowpan/nhc.c               | 140 +++++++++++++++++++++++++
 net/6lowpan/nhc.h               | 142 +++++++++++++++++++++++++
 net/6lowpan/nhc_rfc6282_dest.c  |  27 +++++
 net/6lowpan/nhc_rfc6282_frag.c  |  26 +++++
 net/6lowpan/nhc_rfc6282_hop.c   |  26 +++++
 net/6lowpan/nhc_rfc6282_ipv6.c  |  26 +++++
 net/6lowpan/nhc_rfc6282_mobil.c |  26 +++++
 net/6lowpan/nhc_rfc6282_route.c |  26 +++++
 net/6lowpan/nhc_rfc6282_udp.c   | 156 ++++++++++++++++++++++++++++
 12 files changed, 724 insertions(+), 167 deletions(-)
 create mode 100644 net/6lowpan/nhc.c
 create mode 100644 net/6lowpan/nhc.h
 create mode 100644 net/6lowpan/nhc_rfc6282_dest.c
 create mode 100644 net/6lowpan/nhc_rfc6282_frag.c
 create mode 100644 net/6lowpan/nhc_rfc6282_hop.c
 create mode 100644 net/6lowpan/nhc_rfc6282_ipv6.c
 create mode 100644 net/6lowpan/nhc_rfc6282_mobil.c
 create mode 100644 net/6lowpan/nhc_rfc6282_route.c
 create mode 100644 net/6lowpan/nhc_rfc6282_udp.c

-- 
2.1.3

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

end of thread, other threads:[~2014-12-10 12:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-08 15:50 [PATCHv3 bluetooth-next 0/3] 6lowpan: introduce nhc framework Alexander Aring
2014-12-08 15:50 ` [PATCHv3 bluetooth-next 1/3] 6lowpan: add generic nhc layer interface Alexander Aring
2014-12-08 15:50 ` [PATCHv3 bluetooth-next 2/3] 6lowpan: add udp compression via nhc layer Alexander Aring
2014-12-08 15:50 ` [PATCHv3 bluetooth-next 3/3] 6lowpan: nhc: add other known rfc6282 compressions Alexander Aring
2014-12-09 11:28   ` Jukka Rissanen
2014-12-09 11:40     ` Jukka Rissanen
2014-12-09 11:52     ` Alexander Aring
2014-12-09 14:05       ` Jukka Rissanen
2014-12-09 18:42         ` Alexander Aring
2014-12-10  9:04           ` Jukka Rissanen
2014-12-10 11:56             ` Jukka Rissanen
2014-12-10 12:04               ` Alexander Aring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).