Lines Matching refs:frag
105 struct sk_buff *frag; in lowpan_alloc_frag() local
108 frag = alloc_skb(wdev->needed_headroom + wdev->needed_tailroom + size, in lowpan_alloc_frag()
111 if (likely(frag)) { in lowpan_alloc_frag()
112 frag->dev = wdev; in lowpan_alloc_frag()
113 frag->priority = skb->priority; in lowpan_alloc_frag()
114 skb_reserve(frag, wdev->needed_headroom); in lowpan_alloc_frag()
115 skb_reset_network_header(frag); in lowpan_alloc_frag()
116 *mac_cb(frag) = *mac_cb(skb); in lowpan_alloc_frag()
119 skb_put_data(frag, skb_mac_header(skb), skb->mac_len); in lowpan_alloc_frag()
121 rc = wpan_dev_hard_header(frag, wdev, in lowpan_alloc_frag()
125 kfree_skb(frag); in lowpan_alloc_frag()
130 frag = ERR_PTR(-ENOMEM); in lowpan_alloc_frag()
133 return frag; in lowpan_alloc_frag()
141 struct sk_buff *frag; in lowpan_xmit_fragment() local
145 frag = lowpan_alloc_frag(skb, frag_hdrlen + len, wpan_hdr, frag1); in lowpan_xmit_fragment()
146 if (IS_ERR(frag)) in lowpan_xmit_fragment()
147 return PTR_ERR(frag); in lowpan_xmit_fragment()
149 skb_put_data(frag, frag_hdr, frag_hdrlen); in lowpan_xmit_fragment()
150 skb_put_data(frag, skb_network_header(skb) + offset, len); in lowpan_xmit_fragment()
152 raw_dump_table(__func__, " fragment dump", frag->data, frag->len); in lowpan_xmit_fragment()
154 return dev_queue_xmit(frag); in lowpan_xmit_fragment()