Lines Matching refs:nskb
301 struct sk_buff *nskb; in bnep_rx_frame() local
366 nskb = alloc_skb(2 + ETH_HLEN + skb->len, GFP_KERNEL); in bnep_rx_frame()
367 if (!nskb) { in bnep_rx_frame()
372 skb_reserve(nskb, 2); in bnep_rx_frame()
377 memcpy(__skb_put(nskb, ETH_HLEN), &s->eh, ETH_HLEN); in bnep_rx_frame()
381 memcpy(__skb_put(nskb, ETH_ALEN), s->eh.h_dest, ETH_ALEN); in bnep_rx_frame()
382 memcpy(__skb_put(nskb, ETH_ALEN), skb_mac_header(skb), ETH_ALEN); in bnep_rx_frame()
383 put_unaligned(s->eh.h_proto, (__be16 *) __skb_put(nskb, 2)); in bnep_rx_frame()
387 memcpy(__skb_put(nskb, ETH_ALEN), skb_mac_header(skb), in bnep_rx_frame()
389 memcpy(__skb_put(nskb, ETH_ALEN + 2), s->eh.h_source, in bnep_rx_frame()
394 memcpy(__skb_put(nskb, ETH_ALEN * 2), skb_mac_header(skb), in bnep_rx_frame()
396 put_unaligned(s->eh.h_proto, (__be16 *) __skb_put(nskb, 2)); in bnep_rx_frame()
400 skb_copy_from_linear_data(skb, __skb_put(nskb, skb->len), skb->len); in bnep_rx_frame()
404 nskb->ip_summed = CHECKSUM_NONE; in bnep_rx_frame()
405 nskb->protocol = eth_type_trans(nskb, dev); in bnep_rx_frame()
406 netif_rx_ni(nskb); in bnep_rx_frame()