/openbmc/linux/Documentation/networking/ |
H A D | skbuff.rst | 15 Shared skbs and skb clones 19 to keep a struct sk_buff alive. skbs with a ``sk_buff.users != 1`` are referred 20 to as shared skbs (see skb_shared()). 22 skb_clone() allows for fast duplication of skbs. None of the data buffers 24 &skb_shared_info.refcount indicates the number of skbs pointing at the same 27 dataref and headerless skbs 31 :doc: dataref and headerless skbs
|
H A D | netdev-features.rst | 129 ndo_start_xmit can handle skbs with frags in high memory. 133 Those features say that ndo_start_xmit can handle fragmented skbs: 134 NETIF_F_SG --- paged skbs (skb_shinfo()->frags), NETIF_F_FRAGLIST --- 135 chained skbs (skb->next/prev list).
|
H A D | xdp-rx-metadata.rst | 79 ``skbs``. However, TC-BPF programs can access the XDP metadata area using 83 can override some of the metadata used for building ``skbs``.
|
H A D | segmentation-offloads.rst | 60 UFO is deprecated: modern kernels will no longer generate UFO skbs, but can 165 padded and stored as chained skbs, and skb_segment() splits based on those. 181 will check for GSO_BY_FRAGS and WARN if asked to manipulate these skbs.
|
/openbmc/linux/drivers/net/ethernet/actions/ |
H A D | owl-emac.c | 206 ring->skbs[i] = skb; in owl_emac_ring_prepare_rx() 252 owl_emac_dma_unmap_rx(priv, ring->skbs[i], ring->skbs_dma[i]); in owl_emac_ring_unprepare_rx() 255 dev_kfree_skb(ring->skbs[i]); in owl_emac_ring_unprepare_rx() 256 ring->skbs[i] = NULL; in owl_emac_ring_unprepare_rx() 271 owl_emac_dma_unmap_tx(priv, ring->skbs[i], ring->skbs_dma[i]); in owl_emac_ring_unprepare_tx() 274 dev_kfree_skb(ring->skbs[i]); in owl_emac_ring_unprepare_tx() 275 ring->skbs[i] = NULL; in owl_emac_ring_unprepare_tx() 288 ring->skbs = devm_kcalloc(dev, size, sizeof(struct sk_buff *), in owl_emac_ring_alloc() 290 if (!ring->skbs) in owl_emac_ring_alloc() 530 ring->skbs[tx_head] = skb; in owl_emac_setup_frame_xmit() [all …]
|
H A D | owl-emac.h | 247 struct sk_buff **skbs; member
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | selftest.c | 88 struct sk_buff **skbs; member 432 state->skbs[i] = skb; in efx_begin_loopback() 490 skb = state->skbs[i]; in efx_end_loopback() 546 state->skbs = kcalloc(state->packet_count, in efx_test_loopback() 547 sizeof(state->skbs[0]), GFP_KERNEL); in efx_test_loopback() 548 if (!state->skbs) in efx_test_loopback() 569 kfree(state->skbs); in efx_test_loopback()
|
/openbmc/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | selftest.c | 85 struct sk_buff **skbs; member 434 state->skbs[i] = skb; in ef4_begin_loopback() 492 skb = state->skbs[i]; in ef4_end_loopback() 548 state->skbs = kcalloc(state->packet_count, in ef4_test_loopback() 549 sizeof(state->skbs[0]), GFP_KERNEL); in ef4_test_loopback() 550 if (!state->skbs) in ef4_test_loopback() 571 kfree(state->skbs); in ef4_test_loopback()
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | selftest.c | 87 struct sk_buff **skbs; member 431 state->skbs[i] = skb; in efx_begin_loopback() 489 skb = state->skbs[i]; in efx_end_loopback() 545 state->skbs = kcalloc(state->packet_count, in efx_test_loopback() 546 sizeof(state->skbs[0]), GFP_KERNEL); in efx_test_loopback() 547 if (!state->skbs) in efx_test_loopback() 568 kfree(state->skbs); in efx_test_loopback()
|
/openbmc/linux/drivers/net/ethernet/socionext/ |
H A D | sni_ave.c | 227 struct sk_buff *skbs; member 586 skb = priv->rx.desc[entry].skbs; in ave_rxdesc_prepare() 619 priv->rx.desc[entry].skbs = skb; in ave_rxdesc_prepare() 716 if (priv->tx.desc[done_idx].skbs) { in ave_tx_complete() 719 dev_consume_skb_any(priv->tx.desc[done_idx].skbs); in ave_tx_complete() 720 priv->tx.desc[done_idx].skbs = NULL; in ave_tx_complete() 777 skb = priv->rx.desc[proc_idx].skbs; in ave_rx_receive() 778 priv->rx.desc[proc_idx].skbs = NULL; in ave_rx_receive() 1372 if (!priv->tx.desc[entry].skbs) in ave_stop() 1376 dev_kfree_skb_any(priv->tx.desc[entry].skbs); in ave_stop() [all …]
|
/openbmc/linux/net/mac80211/ |
H A D | tx.c | 926 __skb_queue_tail(&tx->skbs, tmp); in ieee80211_fragment() 968 __skb_queue_tail(&tx->skbs, skb); in ieee80211_tx_h_fragment() 1005 skb_queue_walk(&tx->skbs, skb) { in ieee80211_tx_h_fragment() 1011 if (!skb_queue_is_last(&tx->skbs, skb)) { in ieee80211_tx_h_fragment() 1041 skb_queue_walk(&tx->skbs, skb) { in ieee80211_tx_h_stats() 1092 skb_queue_walk(&tx->skbs, skb) { in ieee80211_tx_h_calculate_duration() 1096 if (!skb_queue_is_last(&tx->skbs, skb)) { in ieee80211_tx_h_calculate_duration() 1097 struct sk_buff *next = skb_queue_next(&tx->skbs, skb); in ieee80211_tx_h_calculate_duration() 1224 __skb_queue_head_init(&tx->skbs); in ieee80211_tx_prepare() 1679 struct sk_buff_head *skbs, in ieee80211_tx_frags() argument [all …]
|
H A D | wpa.c | 255 skb_queue_walk(&tx->skbs, skb) { in ieee80211_crypto_tkip_encrypt() 496 skb_queue_walk(&tx->skbs, skb) { in ieee80211_crypto_ccmp_encrypt() 695 skb_queue_walk(&tx->skbs, skb) { in ieee80211_crypto_gcmp_encrypt() 830 if (WARN_ON(skb_queue_len(&tx->skbs) != 1)) in ieee80211_crypto_aes_cmac_encrypt() 833 skb = skb_peek(&tx->skbs); in ieee80211_crypto_aes_cmac_encrypt() 878 if (WARN_ON(skb_queue_len(&tx->skbs) != 1)) in ieee80211_crypto_aes_cmac_256_encrypt() 881 skb = skb_peek(&tx->skbs); in ieee80211_crypto_aes_cmac_256_encrypt() 1023 if (WARN_ON(skb_queue_len(&tx->skbs) != 1)) in ieee80211_crypto_aes_gmac_encrypt() 1026 skb = skb_peek(&tx->skbs); in ieee80211_crypto_aes_gmac_encrypt()
|
/openbmc/linux/drivers/net/wireless/mediatek/mt7601u/ |
H A D | dma.c | 283 struct sk_buff_head skbs; in mt7601u_tx_tasklet() local 286 __skb_queue_head_init(&skbs); in mt7601u_tx_tasklet() 295 skb_queue_splice_init(&dev->tx_skb_done, &skbs); in mt7601u_tx_tasklet() 299 while (!skb_queue_empty(&skbs)) { in mt7601u_tx_tasklet() 300 struct sk_buff *skb = __skb_dequeue(&skbs); in mt7601u_tx_tasklet()
|
/openbmc/linux/include/linux/ |
H A D | skb_array.h | 191 struct sk_buff **skbs, int n) in skb_array_unconsume() argument 193 ptr_ring_unconsume(&a->ring, (void **)skbs, n, __skb_array_destroy_skb); in skb_array_unconsume()
|
/openbmc/linux/kernel/bpf/ |
H A D | cpumap.c | 281 void *skbs[CPUMAP_BATCH]; in cpu_map_kthread_run() local 332 m = kmem_cache_alloc_bulk(skbuff_cache, gfp, nframes, skbs); in cpu_map_kthread_run() 335 skbs[i] = NULL; /* effect: xdp_return_frame */ in cpu_map_kthread_run() 343 struct sk_buff *skb = skbs[i]; in cpu_map_kthread_run()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfd3/ |
H A D | xsk.c | 391 unsigned int pkts_polled, skbs = 0; in nfp_nfd3_xsk_poll() local 393 pkts_polled = nfp_nfd3_xsk_rx(r_vec->rx_ring, budget, &skbs); in nfp_nfd3_xsk_poll() 404 if (pkts_polled < budget && napi_complete_done(napi, skbs)) in nfp_nfd3_xsk_poll()
|
/openbmc/linux/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_fp.c | 79 struct sk_buff *skb = txq->sw_tx_ring.skbs[idx].skb; in qede_free_tx_pkt() 84 bool data_split = txq->sw_tx_ring.skbs[idx].flags & QEDE_TSO_SPLIT_BD; in qede_free_tx_pkt() 124 txq->sw_tx_ring.skbs[idx].skb = NULL; in qede_free_tx_pkt() 125 txq->sw_tx_ring.skbs[idx].flags = 0; in qede_free_tx_pkt() 136 struct sk_buff *skb = txq->sw_tx_ring.skbs[idx].skb; in qede_free_failed_tx_pkt() 172 txq->sw_tx_ring.skbs[idx].skb = NULL; in qede_free_failed_tx_pkt() 173 txq->sw_tx_ring.skbs[idx].flags = 0; in qede_free_failed_tx_pkt() 1519 txq->sw_tx_ring.skbs[idx].skb = skb; in qede_start_xmit() 1641 txq->sw_tx_ring.skbs[idx].flags |= QEDE_TSO_SPLIT_BD; in qede_start_xmit()
|
/openbmc/linux/net/bpf/ |
H A D | test_run.c | 116 struct sk_buff **skbs; member 176 xdp->skbs = kvmalloc_array(xdp->batch_size, sizeof(void *), GFP_KERNEL); in xdp_test_run_setup() 177 if (!xdp->skbs) in xdp_test_run_setup() 207 kvfree(xdp->skbs); in xdp_test_run_setup() 218 kfree(xdp->skbs); in xdp_test_run_teardown() 251 struct sk_buff **skbs, in xdp_recv_frames() argument 258 n = kmem_cache_alloc_bulk(skbuff_cache, gfp, nframes, (void **)skbs); in xdp_recv_frames() 267 struct sk_buff *skb = skbs[i]; in xdp_recv_frames() 355 ret = xdp_recv_frames(frames, nframes, xdp->skbs, xdp->dev); in xdp_test_run_batch()
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | tx.c | 1123 struct sk_buff_head skbs; in iwlagn_rx_reply_tx() local 1144 __skb_queue_head_init(&skbs); in iwlagn_rx_reply_tx() 1173 iwl_trans_reclaim(priv->trans, txq_id, ssn, &skbs, false); in iwlagn_rx_reply_tx() 1178 skb_queue_walk(&skbs, skb) { in iwlagn_rx_reply_tx() 1249 while (!skb_queue_empty(&skbs)) { in iwlagn_rx_reply_tx() 1250 skb = __skb_dequeue(&skbs); in iwlagn_rx_reply_tx()
|
/openbmc/linux/drivers/net/ethernet/renesas/ |
H A D | rswitch.c | 284 kfree(gq->skbs); in rswitch_gwca_queue_free() 285 gq->skbs = NULL; in rswitch_gwca_queue_free() 323 gq->skbs = kcalloc(gq->ring_size, sizeof(*gq->skbs), GFP_KERNEL); in rswitch_gwca_queue_alloc() 324 if (!gq->skbs) in rswitch_gwca_queue_alloc() 799 skb = gq->skbs[gq->dirty]; in rswitch_tx_free() 806 dev_kfree_skb_any(gq->skbs[gq->dirty]); in rswitch_tx_free() 807 gq->skbs[gq->dirty] = NULL; in rswitch_tx_free() 1635 gq->skbs[gq->cur] = skb; in rswitch_start_xmit() 1656 gq->skbs[(g in rswitch_start_xmit() [all...] |
/openbmc/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_star_emac.c | 241 struct sk_buff *skbs[MTK_STAR_RING_NUM_DESCS]; member 325 desc_data->skb = ring->skbs[ring->tail]; in mtk_star_ring_pop_tail() 328 ring->skbs[ring->tail] = NULL; in mtk_star_ring_pop_tail() 349 ring->skbs[ring->head] = desc_data->skb; in mtk_star_ring_push_head() 718 ring->skbs[i] = skb; in mtk_star_prepare_rx_skbs() 738 desc_data.skb = ring->skbs[i]; in mtk_star_ring_free_skbs()
|
/openbmc/linux/drivers/net/ethernet/natsemi/ |
H A D | ns83820.c | 401 struct sk_buff *skbs[NR_RX_DESC]; member 524 BUG_ON(NULL != dev->rx_info.skbs[next_empty]); in ns83820_add_rx_skb() 525 dev->rx_info.skbs[next_empty] = skb; in ns83820_add_rx_skb() 790 struct sk_buff *skb = dev->rx_info.skbs[i]; in ns83820_cleanup_rx() 791 dev->rx_info.skbs[i] = NULL; in ns83820_cleanup_rx() 856 skb = info->skbs[next_rx]; 857 info->skbs[next_rx] = NULL;
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/queue/ |
H A D | tx.h | 182 struct sk_buff_head *skbs, bool is_flush);
|
/openbmc/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 3945.c | 283 skb = txq->skbs[txq->q.read_ptr]; in il3945_tx_queue_reclaim() 285 txq->skbs[txq->q.read_ptr] = NULL; in il3945_tx_queue_reclaim() 332 info = IEEE80211_SKB_CB(txq->skbs[txq->q.read_ptr]); in il3945_hdl_tx() 667 if (txq->skbs) { in il3945_hw_txq_free_tfd() 668 struct sk_buff *skb = txq->skbs[txq->q.read_ptr]; in il3945_hw_txq_free_tfd() 673 txq->skbs[txq->q.read_ptr] = NULL; in il3945_hw_txq_free_tfd()
|
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A D | chtls_main.c | 423 struct sk_buff **skbs, const __be64 *rsp) in chtls_recv() 425 struct sk_buff *skb = *skbs; in chtls_recv() 422 chtls_recv(struct chtls_dev * cdev,struct sk_buff ** skbs,const __be64 * rsp) chtls_recv() argument
|