linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question on recv_pkt
@ 2014-10-07  8:18 Martin Townsend
  0 siblings, 0 replies; only message in thread
From: Martin Townsend @ 2014-10-07  8:18 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

I'm trying to work out why the skb is cloned in recv_pkt in net/bluetooth/6lowpan.c when performing IPHC [0].  I would like to call process_data with an unshared skb as my proposal for the next patch is to use pskb_expand_head[1] in the decompression routine to save copying but this requires an skb with users == 1 otherwise it will call BUG().
In light of the locking problem Jukka was seeing with my previous patch I'm wondering if me removing this skb_clone was the cause so I want to make sure I know what it's there for before sending the patch.  Any help is appreciated.

- Martin.


[0]http://lxr.free-electrons.com/source/net/bluetooth/6lowpan.c#L258
[1]http://lxr.free-electrons.com/source/net/core/skbuff.c#L1037


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-07  8:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-07  8:18 Question on recv_pkt Martin Townsend

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).