Lines Matching refs:pskb
75 void ctcm_unpack_skb(struct channel *ch, struct sk_buff *pskb) in ctcm_unpack_skb() argument
79 __u16 len = *((__u16 *) pskb->data); in ctcm_unpack_skb()
81 skb_put(pskb, 2 + LL_HEADER_LENGTH); in ctcm_unpack_skb()
82 skb_pull(pskb, 2); in ctcm_unpack_skb()
83 pskb->dev = dev; in ctcm_unpack_skb()
84 pskb->ip_summed = CHECKSUM_UNNECESSARY; in ctcm_unpack_skb()
88 struct ll_header *header = (struct ll_header *)pskb->data; in ctcm_unpack_skb()
90 skb_pull(pskb, LL_HEADER_LENGTH); in ctcm_unpack_skb()
110 pskb->protocol = cpu_to_be16(header->type); in ctcm_unpack_skb()
128 if ((header->length > skb_tailroom(pskb)) || in ctcm_unpack_skb()
142 skb_put(pskb, header->length); in ctcm_unpack_skb()
143 skb_reset_mac_header(pskb); in ctcm_unpack_skb()
145 skb = dev_alloc_skb(pskb->len); in ctcm_unpack_skb()
156 skb_copy_from_linear_data(pskb, skb_put(skb, pskb->len), in ctcm_unpack_skb()
157 pskb->len); in ctcm_unpack_skb()
159 skb->dev = pskb->dev; in ctcm_unpack_skb()
160 skb->protocol = pskb->protocol; in ctcm_unpack_skb()
161 pskb->ip_summed = CHECKSUM_UNNECESSARY; in ctcm_unpack_skb()
171 skb_pull(pskb, header->length); in ctcm_unpack_skb()
172 if (skb_tailroom(pskb) < LL_HEADER_LENGTH) { in ctcm_unpack_skb()
178 skb_put(pskb, LL_HEADER_LENGTH); in ctcm_unpack_skb()