Home
last modified time | relevance | path

Searched refs:newskb (Results 1 – 25 of 25) sorted by relevance

/linux-6.12.1/drivers/staging/rtl8723bs/os_dep/
Dxmit_linux.c127 struct sk_buff *newskb; in rtw_mlcst2unicst() local
162 newskb = rtw_skb_copy(skb); in rtw_mlcst2unicst()
164 if (newskb) { in rtw_mlcst2unicst()
165 memcpy(newskb->data, psta->hwaddr, 6); in rtw_mlcst2unicst()
166 res = rtw_xmit(padapter, &newskb); in rtw_mlcst2unicst()
169 dev_kfree_skb_any(newskb); in rtw_mlcst2unicst()
/linux-6.12.1/net/batman-adv/
Dmulticast.c1308 struct sk_buff *newskb; in batadv_mcast_forw_tt() local
1321 newskb = skb_copy(skb, GFP_ATOMIC); in batadv_mcast_forw_tt()
1322 if (!newskb) { in batadv_mcast_forw_tt()
1327 batadv_mcast_forw_send_orig(bat_priv, newskb, vid, in batadv_mcast_forw_tt()
1357 struct sk_buff *newskb; in batadv_mcast_forw_want_all_ipv4() local
1363 newskb = skb_copy(skb, GFP_ATOMIC); in batadv_mcast_forw_want_all_ipv4()
1364 if (!newskb) { in batadv_mcast_forw_want_all_ipv4()
1369 batadv_mcast_forw_send_orig(bat_priv, newskb, vid, orig_node); in batadv_mcast_forw_want_all_ipv4()
1394 struct sk_buff *newskb; in batadv_mcast_forw_want_all_ipv6() local
1400 newskb = skb_copy(skb, GFP_ATOMIC); in batadv_mcast_forw_want_all_ipv6()
[all …]
Dsend.c760 struct sk_buff *newskb; in batadv_forw_bcast_packet_to_list() local
762 newskb = skb_clone(skb, GFP_ATOMIC); in batadv_forw_bcast_packet_to_list()
763 if (!newskb) in batadv_forw_bcast_packet_to_list()
768 bat_priv, newskb); in batadv_forw_bcast_packet_to_list()
783 kfree_skb(newskb); in batadv_forw_bcast_packet_to_list()
815 struct sk_buff *newskb; in batadv_forw_bcast_packet_if() local
819 newskb = skb_clone(skb, GFP_ATOMIC); in batadv_forw_bcast_packet_if()
820 if (!newskb) in batadv_forw_bcast_packet_if()
823 batadv_send_broadcast_skb(newskb, if_out); in batadv_forw_bcast_packet_if()
/linux-6.12.1/net/can/
Daf_can.c201 struct sk_buff *newskb = NULL; in can_send() local
260 newskb = skb_clone(skb, GFP_ATOMIC); in can_send()
261 if (!newskb) { in can_send()
266 can_skb_set_owner(newskb, skb->sk); in can_send()
267 newskb->ip_summed = CHECKSUM_UNNECESSARY; in can_send()
268 newskb->pkt_type = PACKET_BROADCAST; in can_send()
281 kfree_skb(newskb); in can_send()
285 if (newskb) in can_send()
286 netif_rx(newskb); in can_send()
/linux-6.12.1/drivers/net/ethernet/seeq/
Dsgiseeq.c347 struct sk_buff *newskb; in sgiseeq_rx() local
366 newskb = netdev_alloc_skb(dev, PKT_BUF_SZ); in sgiseeq_rx()
367 if (!newskb) { in sgiseeq_rx()
368 newskb = skb; in sgiseeq_rx()
372 skb_reserve(newskb, 2); in sgiseeq_rx()
378 newskb = rd->skb; in sgiseeq_rx()
392 newskb = rd->skb; in sgiseeq_rx()
396 newskb = rd->skb; in sgiseeq_rx()
398 rd->skb = newskb; in sgiseeq_rx()
400 newskb->data - 2, in sgiseeq_rx()
/linux-6.12.1/drivers/net/ieee802154/
Dfakelb.c73 struct sk_buff *newskb = pskb_copy(skb, GFP_ATOMIC); in fakelb_hw_xmit() local
75 if (newskb) in fakelb_hw_xmit()
76 ieee802154_rx_irqsafe(phy->hw, newskb, 0xcc); in fakelb_hw_xmit()
Dmac802154_hwsim.c279 struct sk_buff *newskb = pskb_copy(skb, GFP_ATOMIC); in hwsim_hw_xmit() local
282 if (newskb) in hwsim_hw_xmit()
283 hwsim_hw_receive(e->endpoint->hw, newskb, einfo->lqi); in hwsim_hw_xmit()
/linux-6.12.1/drivers/net/fddi/
Ddefxx.c3005 struct sk_buff *newskb; in dfx_rcv_init() local
3008 newskb = __netdev_alloc_skb(bp->dev, NEW_SKB_SIZE, in dfx_rcv_init()
3010 if (!newskb) in dfx_rcv_init()
3017 my_skb_align(newskb, 128); in dfx_rcv_init()
3019 newskb->data, in dfx_rcv_init()
3023 dev_kfree_skb(newskb); in dfx_rcv_init()
3038 bp->p_rcv_buff_va[i+j] = (char *) newskb; in dfx_rcv_init()
3143 struct sk_buff *newskb = NULL; in dfx_rcv_queue_process() local
3148 newskb = netdev_alloc_skb(bp->dev, in dfx_rcv_queue_process()
3150 if (newskb){ in dfx_rcv_queue_process()
[all …]
Ddefza.c678 struct sk_buff *skb, *newskb; in fza_rx() local
714 newskb = fza_alloc_skb_irq(dev, FZA_RX_BUFFER_SIZE + 511); in fza_rx()
715 if (newskb) { in fza_rx()
716 fza_skb_align(newskb, 512); in fza_rx()
717 newdma = dma_map_single(fp->bdev, newskb->data, in fza_rx()
721 dev_kfree_skb_irq(newskb); in fza_rx()
722 newskb = NULL; in fza_rx()
725 if (newskb) { in fza_rx()
764 skb = newskb; in fza_rx()
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c843 struct sk_buff *newskb, *skb; in get_packet_pg() local
848 newskb = skb = q->pg_skb; in get_packet_pg()
850 newskb = alloc_skb(len, GFP_ATOMIC); in get_packet_pg()
851 if (likely(newskb != NULL)) { in get_packet_pg()
852 __skb_put(newskb, len); in get_packet_pg()
855 memcpy(newskb->data, sd->pg_chunk.va, len); in get_packet_pg()
864 return newskb; in get_packet_pg()
873 newskb = alloc_skb(SGE_RX_PULL_LEN, GFP_ATOMIC); in get_packet_pg()
875 if (unlikely(!newskb)) { in get_packet_pg()
888 __skb_put(newskb, SGE_RX_PULL_LEN); in get_packet_pg()
[all …]
/linux-6.12.1/drivers/net/wireless/ti/wl1251/
Dtx.c207 struct sk_buff *newskb = skb_copy_expand(skb, 0, 3, in wl1251_tx_send_packet() local
210 if (unlikely(newskb == NULL)) in wl1251_tx_send_packet()
213 tx_hdr = (struct tx_double_buffer_desc *) newskb->data; in wl1251_tx_send_packet()
216 wl->tx_frames[tx_hdr->id] = skb = newskb; in wl1251_tx_send_packet()
/linux-6.12.1/drivers/net/ethernet/i825xx/
D82596.c783 struct sk_buff *newskb; in i596_rx() local
786 newskb = netdev_alloc_skb(dev, PKT_BUF_SZ); in i596_rx()
787 if (newskb == NULL) { in i596_rx()
794 rbd->skb = newskb; in i596_rx()
795 rbd->v_data = newskb->data; in i596_rx()
796 rbd->b_data = WSWAPchar(virt_to_bus(newskb->data)); in i596_rx()
798 cache_clear(virt_to_phys(newskb->data), PKT_BUF_SZ); in i596_rx()
Dlib82596.c719 struct sk_buff *newskb; in i596_rx() local
726 newskb = netdev_alloc_skb_ip_align(dev, in i596_rx()
728 if (newskb == NULL) { in i596_rx()
736 rbd->skb = newskb; in i596_rx()
738 newskb->data, in i596_rx()
741 rbd->v_data = newskb->data; in i596_rx()
/linux-6.12.1/net/ipv4/
Dip_output.c398 struct sk_buff *newskb = skb_clone(skb, GFP_ATOMIC); in ip_mc_output() local
399 if (newskb) in ip_mc_output()
401 net, sk, newskb, NULL, newskb->dev, in ip_mc_output()
414 struct sk_buff *newskb = skb_clone(skb, GFP_ATOMIC); in ip_mc_output() local
415 if (newskb) in ip_mc_output()
417 net, sk, newskb, NULL, newskb->dev, in ip_mc_output()
/linux-6.12.1/drivers/s390/net/
Dctcm_main.c878 struct sk_buff *newskb = NULL; in ctcmpc_tx() local
899 newskb = __dev_alloc_skb(len, GFP_ATOMIC | GFP_DMA); in ctcmpc_tx()
901 if (!newskb) { in ctcmpc_tx()
913 newskb->protocol = skb->protocol; in ctcmpc_tx()
914 skb_reserve(newskb, TH_HEADER_LENGTH + PDU_HEADER_LENGTH); in ctcmpc_tx()
915 skb_put_data(newskb, skb->data, skb->len); in ctcmpc_tx()
917 skb = newskb; in ctcmpc_tx()
/linux-6.12.1/drivers/net/ethernet/aeroflex/
Dgreth.c859 struct sk_buff *skb, *newskb; in greth_rx_gbit() local
897 if (!bad && (newskb=netdev_alloc_skb(dev, MAX_FRAME_SIZE + NET_IP_ALIGN))) { in greth_rx_gbit()
898 skb_reserve(newskb, NET_IP_ALIGN); in greth_rx_gbit()
901 newskb->data, in greth_rx_gbit()
929 greth->rx_skbuff[greth->rx_cur] = newskb; in greth_rx_gbit()
934 dev_kfree_skb(newskb); in greth_rx_gbit()
/linux-6.12.1/drivers/net/wireless/admtek/
Dadm8211.c356 struct sk_buff *skb, *newskb; in adm8211_interrupt_rci() local
397 newskb = dev_alloc_skb(RX_PKT_SIZE); in adm8211_interrupt_rci()
398 if (newskb) { in adm8211_interrupt_rci()
404 priv->rx_buffers[entry].skb = newskb; in adm8211_interrupt_rci()
407 skb_tail_pointer(newskb), in adm8211_interrupt_rci()
413 dev_kfree_skb(newskb); in adm8211_interrupt_rci()
/linux-6.12.1/drivers/net/hippi/
Drrunner.c976 struct sk_buff *newskb; in rx_int() local
978 newskb = alloc_skb(dev->mtu + HIPPI_HLEN, in rx_int()
980 if (newskb){ in rx_int()
989 rrpriv->rx_skbuff[index] = newskb; in rx_int()
991 newskb->data, in rx_int()
/linux-6.12.1/drivers/net/ethernet/amd/
Dpcnet32.c1216 struct sk_buff *newskb; in pcnet32_rx_entry() local
1219 newskb = netdev_alloc_skb(dev, PKT_BUF_SKB); in pcnet32_rx_entry()
1224 if (newskb) { in pcnet32_rx_entry()
1225 skb_reserve(newskb, NET_IP_ALIGN); in pcnet32_rx_entry()
1227 newskb->data, in pcnet32_rx_entry()
1233 dev_kfree_skb(newskb); in pcnet32_rx_entry()
1242 lp->rx_skbuff[entry] = newskb; in pcnet32_rx_entry()
/linux-6.12.1/drivers/infiniband/ulp/ipoib/
Dipoib_cm.c565 struct sk_buff *skb, *newskb; in ipoib_cm_handle_rx_wc() local
647 newskb = ipoib_cm_alloc_rx_skb(dev, rx_ring, wr_id, frags, in ipoib_cm_handle_rx_wc()
649 if (unlikely(!newskb)) { in ipoib_cm_handle_rx_wc()
665 skb_put_frags(skb, IPOIB_CM_HEAD_SIZE, wc->byte_len, newskb); in ipoib_cm_handle_rx_wc()
/linux-6.12.1/drivers/net/ethernet/3com/
D3c59x.c2618 struct sk_buff *skb, *newskb; in boomerang_rx() local
2642 newskb = netdev_alloc_skb_ip_align(dev, PKT_BUF_SZ); in boomerang_rx()
2643 if (!newskb) { in boomerang_rx()
2647 newdma = dma_map_single(vp->gendev, newskb->data, in boomerang_rx()
2651 consume_skb(newskb); in boomerang_rx()
2657 vp->rx_skbuff[entry] = newskb; in boomerang_rx()
/linux-6.12.1/net/ipv6/
Dip6_output.c91 struct sk_buff *newskb = skb_clone(skb, GFP_ATOMIC); in ip6_finish_output2() local
96 if (newskb) in ip6_finish_output2()
98 net, sk, newskb, NULL, newskb->dev, in ip6_finish_output2()
/linux-6.12.1/drivers/net/ethernet/dec/tulip/
Ddmfe.c947 struct sk_buff *skb, *newskb; in dmfe_rx_packet() local
1000 ((newskb = netdev_alloc_skb(dev, rxlen + 2)) in dmfe_rx_packet()
1003 skb = newskb; in dmfe_rx_packet()
/linux-6.12.1/net/xfrm/
Dxfrm_policy.c3559 struct sk_buff *newskb = skb_clone(skb, GFP_ATOMIC); in xfrm_icmp_flow_decode() local
3563 if (!newskb) in xfrm_icmp_flow_decode()
3566 if (!pskb_pull(newskb, hl)) in xfrm_icmp_flow_decode()
3569 skb_reset_network_header(newskb); in xfrm_icmp_flow_decode()
3571 if (xfrm_decode_session_reverse(dev_net(skb->dev), newskb, fl1, family) < 0) in xfrm_icmp_flow_decode()
3577 nf_nat_decode_session(newskb, fl1, family); in xfrm_icmp_flow_decode()
3581 consume_skb(newskb); in xfrm_icmp_flow_decode()
/linux-6.12.1/include/linux/
Dnetdevice.h3085 int dev_loopback_xmit(struct net *net, struct sock *sk, struct sk_buff *newskb);