linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bluetooth-next] 6lowpan: Use pskb_expand_head in IPHC decompression.
@ 2014-10-07 15:33 Martin Townsend
  2014-10-07 15:33 ` Martin Townsend
  0 siblings, 1 reply; 13+ messages in thread
From: Martin Townsend @ 2014-10-07 15:33 UTC (permalink / raw)
  To: linux-bluetooth, linux-wpan
  Cc: marcel, alex.aring, jukka.rissanen, Martin Townsend

This patch aims to reduce the amount of copying in the receive path when
decompressing by checking for headroom and calling pskb_expand_head if required.
Another benefit of this is that the skb pointer passed to the decompression
routine will be the same skb after decompression.  This will be a step towards
freeing the skb within the receive function and not within all the error paths
of the decompression routine.

Bluetooth and 802.15.4 have been changed to ensure that only one reference
to the skb exists before calling the decompression routine as this is a
requirement of pskb_expand_head.

Martin Townsend (1):
  6lowpan: Use pskb_expand_head in IPHC decompression.

 net/6lowpan/iphc.c            | 53 ++++++++++++++++++++++---------------------
 net/bluetooth/6lowpan.c       | 19 ++++++++++++----
 net/ieee802154/6lowpan_rtnl.c | 13 +++++++++++
 3 files changed, 55 insertions(+), 30 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2014-10-08 13:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-07 15:33 [PATCH bluetooth-next] 6lowpan: Use pskb_expand_head in IPHC decompression Martin Townsend
2014-10-07 15:33 ` Martin Townsend
2014-10-07 15:37   ` Martin Townsend
2014-10-08 10:24     ` Jukka Rissanen
2014-10-08 11:07       ` Martin Townsend
2014-10-08 12:12         ` Jukka Rissanen
2014-10-08 12:52           ` Martin Townsend
2014-10-08 13:35             ` Jukka Rissanen
2014-10-08 13:42               ` Martin Townsend
2014-10-07 16:14   ` Alexander Aring
2014-10-07 16:17     ` Alexander Aring
2014-10-07 18:25     ` Martin Townsend
2014-10-07 18:58       ` 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).