Home
last modified time | relevance | path

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

123

/linux/kernel/bpf/
H A Dcpumap.c150 void **skbs, u32 skb_n, in cpu_map_bpf_prog_run_skb()
158 struct sk_buff *skb = skbs[i]; in cpu_map_bpf_prog_run_skb()
163 skbs[pass++] = skb; in cpu_map_bpf_prog_run_skb()
261 void **skbs, struct cpu_map_ret *ret, in cpu_map_bpf_prog_run()
275 ret->skb_n = cpu_map_bpf_prog_run_skb(rcpu, skbs, ret->skb_n, in cpu_map_bpf_prog_run()
287 memmove(&skbs[ret->xdp_n], skbs, ret->skb_n * sizeof(*skbs)); in cpu_map_gro_flush()
322 void *skbs[CPUMAP_BATCH]; in cpu_map_kthread_run()
358 skbs[re in cpu_map_kthread_run()
140 cpu_map_bpf_prog_run_skb(struct bpf_cpu_map_entry * rcpu,void ** skbs,u32 skb_n,struct xdp_cpumap_stats * stats) cpu_map_bpf_prog_run_skb() argument
251 cpu_map_bpf_prog_run(struct bpf_cpu_map_entry * rcpu,void ** frames,void ** skbs,struct cpu_map_ret * ret,struct xdp_cpumap_stats * stats) cpu_map_bpf_prog_run() argument
312 void *skbs[CPUMAP_BATCH]; cpu_map_kthread_run() local
[all...]
/linux/drivers/net/mctp/
H A Dmctp-usblib.c250 struct sk_buff_head skbs; member
301 __skb_queue_tail(&ctx->skbs, skb); in mctp_usblib_tx_append()
316 if (ctx->buf_type == TX_SINGLE || ctx->skbs.qlen == 1) { in mctp_usblib_tx_send()
317 buf = ctx->skbs.next->data; in mctp_usblib_tx_send()
323 skb_queue_walk(&ctx->skbs, skb) { in mctp_usblib_tx_send()
344 while ((skb = __skb_dequeue(&ctx->skbs)) != NULL) in mctp_usblib_tx_ctx_free()
391 skb_queue_head_init(&ctx->skbs); in mctp_usblib_tx_ctx_create()
392 __skb_queue_tail(&ctx->skbs, skb); in mctp_usblib_tx_ctx_create()
410 u64 n = ctx->skbs.qlen; in mctp_usblib_tx_stats_update()
416 u64_stats_add(&dstats->tx_drops, ctx->skbs.qlen); in mctp_usblib_tx_stats_update()
[all …]
/linux/drivers/net/ethernet/actions/
H A Dowl-emac.c206 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_kzalloc_objs(dev, struct sk_buff *, size); in owl_emac_ring_alloc()
289 if (!ring->skbs) in owl_emac_ring_alloc()
528 ring->skbs[tx_hea in owl_emac_setup_frame_xmit()
[all...]
H A Dowl-emac.h247 struct sk_buff **skbs; member
/linux/drivers/net/ethernet/sfc/falcon/
H A Dselftest.c85 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 = kzalloc_objs(state->skbs[0], state->packet_count); in ef4_test_loopback()
549 if (!state->skbs) in ef4_test_loopback()
570 kfree(state->skbs); in ef4_test_loopback()
/linux/drivers/net/ethernet/sfc/
H A Dselftest.c87 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 = kzalloc_objs(state->skbs[0], state->packet_count); in efx_test_loopback()
546 if (!state->skbs) in efx_test_loopback()
567 kfree(state->skbs); in efx_test_loopback()
/linux/drivers/net/ethernet/sfc/siena/
H A Dselftest.c88 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 = kzalloc_objs(state->skbs[0], state->packet_count); in efx_test_loopback()
547 if (!state->skbs) in efx_test_loopback()
568 kfree(state->skbs); in efx_test_loopback()
/linux/drivers/net/ethernet/socionext/
H A Dsni_ave.c227 struct sk_buff *skbs; member
586 skb = priv->rx.desc[entry].skbs; in ave_rxdesc_prepare()
617 priv->rx.desc[entry].skbs = skb; in ave_rxdesc_prepare()
714 if (priv->tx.desc[done_idx].skbs) { in ave_tx_complete()
717 dev_consume_skb_any(priv->tx.desc[done_idx].skbs); in ave_tx_complete()
718 priv->tx.desc[done_idx].skbs = NULL; in ave_tx_complete()
775 skb = priv->rx.desc[proc_idx].skbs; in ave_rx_receive()
776 priv->rx.desc[proc_idx].skbs = NULL; in ave_rx_receive()
1368 if (!priv->tx.desc[entry].skbs) in ave_stop()
1372 dev_kfree_skb_any(priv->tx.desc[entry].skbs); in ave_stop()
[all …]
/linux/net/mac80211/
H A Dtx.c968 __skb_queue_tail(&tx->skbs, tmp); in ieee80211_tx_h_fragment()
1009 /* no matter what happens, tx->skb moves to tx->skbs */ in ieee80211_tx_h_fragment()
1010 __skb_queue_tail(&tx->skbs, skb); in ieee80211_tx_h_fragment()
1047 skb_queue_walk(&tx->skbs, skb) {
1053 if (!skb_queue_is_last(&tx->skbs, skb)) { in ieee80211_tx_h_encrypt()
1083 skb_queue_walk(&tx->skbs, skb) { in ieee80211_tx_h_calculate_duration()
1136 skb_queue_walk(&tx->skbs, skb) { in ieee80211_tx_prep_agg()
1140 if (!skb_queue_is_last(&tx->skbs, skb)) { in ieee80211_tx_prep_agg()
1141 struct sk_buff *next = skb_queue_next(&tx->skbs, skb); in ieee80211_tx_prep_agg()
1272 __skb_queue_head_init(&tx->skbs); in ieee80211_tx_prepare()
1691 ieee80211_tx_frags(struct ieee80211_local * local,struct ieee80211_vif * vif,struct sta_info * sta,struct sk_buff_head * skbs,bool txpending) ieee80211_tx_frags() argument
1765 __ieee80211_tx(struct ieee80211_local * local,struct sk_buff_head * skbs,struct sta_info * sta,bool txpending) __ieee80211_tx() argument
4741 unsigned int skbs = 0, len = 0; ieee80211_8023_xmit() local
5032 struct sk_buff_head skbs; ieee80211_tx_pending_skb() local
[all...]
H A Dwep.c299 skb_queue_walk(&tx->skbs, skb) { in ieee80211_crypto_wep_encrypt()
/linux/drivers/net/wireless/mediatek/mt7601u/
H A Ddma.c283 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()
/linux/drivers/net/wireless/realtek/rtw89/
H A Dmac.h1898 if (tx_rpt->skbs[idx]) in rtw89_tx_rpt_skb_add()
1899 rtw89_tx_rpt_tx_status(rtwdev, tx_rpt->skbs[idx], in rtw89_tx_rpt_skb_add()
1901 tx_rpt->skbs[idx] = skb; in rtw89_tx_rpt_skb_add()
1909 struct sk_buff *skbs[RTW89_MAX_TX_RPTS]; in rtw89_tx_rpt_skbs_purge() local
1912 memcpy(skbs, tx_rpt->skbs, sizeof(tx_rpt->skbs)); in rtw89_tx_rpt_skbs_purge()
1913 memset(tx_rpt->skbs, 0, sizeof(tx_rpt->skbs)); in rtw89_tx_rpt_skbs_purge()
1916 for (int i = 0; i < ARRAY_SIZE(skbs); i++) in rtw89_tx_rpt_skbs_purge()
1917 if (skbs[i]) in rtw89_tx_rpt_skbs_purge()
1918 rtw89_tx_rpt_tx_status(rtwdev, skbs[i], in rtw89_tx_rpt_skbs_purge()
/linux/tools/testing/selftests/net/packetdrill/
H A Dtcp_urg_ptr_retransmit.pkt37 // 2. server sends 5000 bytes; TSO on, so packetdrill sees whole super-skbs
58 // seg B 4001. The fix sends the hole as two independent skbs, so seg B has
H A Dtcp_zerocopy_maxfrags.pkt95 // verify that it is split in skbs with 17 frags
/linux/net/mctp/test/
H A Droute-test.c771 struct sk_buff *skbs[2]; in mctp_test_route_input_sk_fail_frag() local
783 for (i = 0; i < ARRAY_SIZE(skbs); i++) { in mctp_test_route_input_sk_fail_frag()
784 skbs[i] = mctp_test_create_skb(&hdrs[i], 10); in mctp_test_route_input_sk_fail_frag()
785 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, skbs[i]); in mctp_test_route_input_sk_fail_frag()
786 skb_get(skbs[i]); in mctp_test_route_input_sk_fail_frag()
788 mctp_test_skb_set_dev(skbs[i], dev); in mctp_test_route_input_sk_fail_frag()
794 rc = mctp_dst_input(&dst, skbs[0]); in mctp_test_route_input_sk_fail_frag()
798 rc = mctp_dst_input(&dst, skbs[1]); in mctp_test_route_input_sk_fail_frag()
802 KUNIT_EXPECT_EQ(test, refcount_read(&skbs[0]->users), 1); in mctp_test_route_input_sk_fail_frag()
803 kfree_skb(skbs[0]); in mctp_test_route_input_sk_fail_frag()
[all …]
/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_fp.c80 struct sk_buff *skb = txq->sw_tx_ring.skbs[idx].skb; in qede_free_tx_pkt()
85 bool data_split = txq->sw_tx_ring.skbs[idx].flags & QEDE_TSO_SPLIT_BD; in qede_free_tx_pkt()
125 txq->sw_tx_ring.skbs[idx].skb = NULL; in qede_free_tx_pkt()
126 txq->sw_tx_ring.skbs[idx].flags = 0; in qede_free_tx_pkt()
137 struct sk_buff *skb = txq->sw_tx_ring.skbs[idx].skb; in qede_free_failed_tx_pkt()
173 txq->sw_tx_ring.skbs[idx].skb = NULL; in qede_free_failed_tx_pkt()
174 txq->sw_tx_ring.skbs[idx].flags = 0; in qede_free_failed_tx_pkt()
1526 txq->sw_tx_ring.skbs[idx].skb = skb; in qede_start_xmit()
1648 txq->sw_tx_ring.skbs[idx].flags |= QEDE_TSO_SPLIT_BD; in qede_start_xmit()
/linux/net/bpf/
H A Dtest_run.c106 struct sk_buff **skbs; member
167 xdp->skbs = kvmalloc_array(xdp->batch_size, sizeof(void *), GFP_KERNEL); in xdp_test_run_setup()
168 if (!xdp->skbs) in xdp_test_run_setup()
198 kvfree(xdp->skbs); in xdp_test_run_setup()
209 kvfree(xdp->skbs); in xdp_test_run_teardown()
242 struct sk_buff **skbs, in xdp_recv_frames() argument
250 nframes, (void **)skbs))) { in xdp_recv_frames()
258 struct sk_buff *skb = skbs[i]; in xdp_recv_frames()
349 ret = xdp_recv_frames(frames, nframes, xdp->skbs, xdp->dev); in xdp_test_run_batch()
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dtx.c1126 struct sk_buff_head skbs; in iwlagn_rx_reply_tx()
1147 __skb_queue_head_init(&skbs); in iwlagn_rx_reply_tx()
1176 iwl_trans_reclaim(priv->trans, txq_id, ssn, &skbs, false); in iwlagn_rx_reply_tx()
1181 skb_queue_walk(&skbs, skb) { in iwlagn_rx_reply_tx()
1252 while (!skb_queue_empty(&skbs)) { in iwlagn_rx_reply_tx()
1253 skb = __skb_dequeue(&skbs); in iwlagn_rx_reply_tx()
1127 struct sk_buff_head skbs; iwlagn_rx_reply_tx() local
/linux/drivers/net/ethernet/renesas/
H A Drswitch_main.c320 kfree(gq->skbs); in rswitch_gwca_queue_free()
321 gq->skbs = NULL; in rswitch_gwca_queue_free()
359 gq->skbs = kzalloc_objs(*gq->skbs, gq->ring_size); in rswitch_gwca_queue_alloc()
360 if (!gq->skbs) in rswitch_gwca_queue_alloc()
903 skb = gq->skbs[gq->dirty]; in rswitch_tx_free()
910 dev_kfree_skb_any(gq->skbs[gq->dirty]); in rswitch_tx_free()
911 gq->skbs[gq->dirty] = NULL; in rswitch_tx_free()
1763 gq->skbs[(gq->cur + nr_desc - 1) % gq->ring_size] = skb; in rswitch_start_xmit()
1784 gq->skbs[(g in rswitch_start_xmit()
[all...]
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dtx.c1067 /* Free skbs created as part of TSO logic that have not yet in iwl_mld_hwrate_to_tx_rate()
1125 * the skbs, and the potential memory pressure from rapid skb in iwl_mld_handle_tx_resp_notif()
1235 struct sk_buff_head skbs; in iwl_mld_tx_reclaim_txq()
1258 __skb_queue_head_init(&skbs); in iwl_mld_flush_link_sta_txqs()
1261 iwl_trans_reclaim(mld->trans, txq_id, ssn, &skbs, false); in iwl_mld_flush_link_sta_txqs()
1263 while (!skb_queue_empty(&skbs)) { in iwl_mld_flush_link_sta_txqs()
1264 struct sk_buff *skb = __skb_dequeue(&skbs); in iwl_mld_flush_link_sta_txqs()
1104 struct sk_buff_head skbs; iwl_mld_handle_tx_resp_notif() local
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_star_emac.c241 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()
/linux/drivers/net/ethernet/natsemi/
H A Dns83820.c401 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;
/linux/drivers/net/wireless/intel/iwlegacy/
H A D3945.c283 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()
/linux/net/mptcp/
H A Dprotocol.c822 /* Under fallback skbs have no MPTCP extension and TCP could in __mptcp_move_skbs_from_subflow()
2166 /* skip already peeked skbs */ in __mptcp_recvmsg_mskq()
2268 * get drops at subflow level if skbs can't be moved to in mptcp_rcv_space_adjust()
2290 static bool __mptcp_move_skbs(struct sock *sk, struct list_head *skbs, u32 *delta) in mptcp_rcv_space_adjust()
2292 struct sk_buff *skb = list_first_entry(skbs, struct sk_buff, list);
2302 if (list_empty(skbs)) in __mptcp_move_skbs()
2305 skb = list_first_entry(skbs, struct sk_buff, list); in __mptcp_move_skbs()
2314 static bool mptcp_can_spool_backlog(struct sock *sk, struct list_head *skbs) in __mptcp_move_skbs()
2327 INIT_LIST_HEAD(skbs); in mptcp_can_spool_backlog()
2328 list_splice_init(&msk->backlog_list, skbs); in mptcp_can_spool_backlog()
2293 __mptcp_move_skbs(struct sock * sk,struct list_head * skbs,u32 * delta) __mptcp_move_skbs() argument
2317 mptcp_can_spool_backlog(struct sock * sk,struct list_head * skbs) mptcp_can_spool_backlog() argument
2338 struct list_head skbs; mptcp_move_skbs() local
3828 struct list_head join_list, skbs; mptcp_release_cb() local
[all...]
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dcxgb3_offload.c480 static int rx_offload_blackhole(struct t3cdev *dev, struct sk_buff **skbs, in rx_offload_blackhole() argument
484 dev_kfree_skb_any(skbs[n]); in rx_offload_blackhole()
980 static int process_rx(struct t3cdev *dev, struct sk_buff **skbs, int n) in process_rx() argument
983 struct sk_buff *skb = *skbs++; in process_rx()

123