This will add support to skip bytes from skb with the lowpan_fetch_skb function without copying (data will be NULL in this case).
Signed-off-by: Alexander Aring <alex.ar...@gmail.com> --- net/ieee802154/6lowpan.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/ieee802154/6lowpan.h b/net/ieee802154/6lowpan.h index 2869c05..1b1b5db 100644 --- a/net/ieee802154/6lowpan.h +++ b/net/ieee802154/6lowpan.h @@ -238,7 +238,9 @@ static inline bool lowpan_fetch_skb(struct sk_buff *skb, if (unlikely(!pskb_may_pull(skb, len))) return true; - skb_copy_from_linear_data(skb, data, len); + if (data) + skb_copy_from_linear_data(skb, data, len); + skb_pull(skb, len); return false; -- 1.8.4.1 ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel