I have implemented and tested the fix and it seems to work!
I used a combination of skb_unshare and pulled some of your wpan_rework
changes in so the compression is done in lowpan_xmit.
Simon
On 19/09/14 13:57, Alexander Aring wrote:
On Fri, Sep 19, 2014 at 02:55:44PM +0200, Alexander Aring wrote:
Hi Simon,
On Fri, Sep 19, 2014 at 01:44:38PM +0100, Simon Vincent wrote:
...
mhh, take a look on skb_unshare - make a copy of a shared buffe [0].
Seems that we could use that to have a copy of the buffer. Don't know if
this can work, because we are inside of callback and the caller lost the
reference then.
I tried that earlier! Didn't work as we lost the reference as you say.
I think if we do it inside lowpan_xmit like you do in your rework we might
be ok. I will have a go.
Yea, with combination of lowpan_xmit and do a:
skb = skb_unshare(skb, GFP_ATOMIC);
it's woooorrkkinnnnggg.
I hope it's working now, it doesn't look like garbage anymore.
- Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html