Home
last modified time | relevance | path

Searched refs:nb_pkts (Results 1 – 5 of 5) sorted by relevance

/linux/tools/testing/selftests/bpf/
H A Dxskxceiver.c609 if (pkt_stream->current_pkt_nb >= pkt_stream->nb_pkts) in pkt_stream_get_next_tx_pkt()
617 while (pkt_stream->current_pkt_nb < pkt_stream->nb_pkts) { in pkt_stream_get_next_rx_pkt()
648 static struct pkt_stream *__pkt_stream_alloc(u32 nb_pkts) in __pkt_stream_alloc() argument
656 pkt_stream->pkts = calloc(nb_pkts, sizeof(*pkt_stream->pkts)); in __pkt_stream_alloc()
662 pkt_stream->nb_pkts = nb_pkts; in __pkt_stream_alloc()
695 while (next_frag++ < pkt_stream->nb_pkts) { in pkt_nb_frags()
729 static struct pkt_stream *__pkt_stream_generate(u32 nb_pkts, u32 pkt_len, u32 nb_start, u32 nb_off) in __pkt_stream_generate() argument
734 pkt_stream = __pkt_stream_alloc(nb_pkts); in __pkt_stream_generate()
738 pkt_stream->nb_pkts = nb_pkts; in __pkt_stream_generate()
740 for (i = 0; i < nb_pkts; i++) { in __pkt_stream_generate()
[all …]
H A Dxskxceiver.h109 u32 nb_pkts; member
/linux/net/xdp/
H A Dxsk.c469 u32 nb_pkts = 0; in xsk_tx_peek_release_fallback() local
471 while (nb_pkts < max_entries && xsk_tx_peek_desc(pool, &descs[nb_pkts])) in xsk_tx_peek_release_fallback()
472 nb_pkts++; in xsk_tx_peek_release_fallback()
475 return nb_pkts; in xsk_tx_peek_release_fallback()
478 u32 xsk_tx_peek_release_desc_batch(struct xsk_buff_pool *pool, u32 nb_pkts) in xsk_tx_peek_release_desc_batch() argument
486 return xsk_tx_peek_release_fallback(pool, nb_pkts); in xsk_tx_peek_release_desc_batch()
491 nb_pkts = 0; in xsk_tx_peek_release_desc_batch()
495 nb_pkts = xskq_cons_nb_entries(xs->tx, nb_pkts); in xsk_tx_peek_release_desc_batch()
503 nb_pkts = xskq_prod_nb_free(pool->cq, nb_pkts); in xsk_tx_peek_release_desc_batch()
504 if (!nb_pkts) in xsk_tx_peek_release_desc_batch()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_xsk.c1047 struct xdp_desc *descs, u32 nb_pkts, in ice_fill_tx_hw_ring() argument
1052 batched = ALIGN_DOWN(nb_pkts, PKTS_PER_BATCH); in ice_fill_tx_hw_ring()
1053 leftover = nb_pkts & (PKTS_PER_BATCH - 1); in ice_fill_tx_hw_ring()
1070 u32 nb_pkts, nb_processed = 0; in ice_xmit_zc() local
1083 nb_pkts = xsk_tx_peek_release_desc_batch(xsk_pool, budget); in ice_xmit_zc()
1084 if (!nb_pkts) in ice_xmit_zc()
1087 if (xdp_ring->next_to_use + nb_pkts >= xdp_ring->count) { in ice_xmit_zc()
1095 nb_pkts - nb_processed, &total_bytes); in ice_xmit_zc()
1099 ice_update_tx_ring_stats(xdp_ring, nb_pkts, total_bytes); in ice_xmit_zc()
1104 return nb_pkts < budget; in ice_xmit_zc()
/linux/drivers/net/
H A Dvirtio_net.c1466 u32 nb_pkts, i; in virtnet_xsk_xmit_batch() local
1471 nb_pkts = xsk_tx_peek_release_desc_batch(pool, budget); in virtnet_xsk_xmit_batch()
1472 if (!nb_pkts) in virtnet_xsk_xmit_batch()
1475 for (i = 0; i < nb_pkts; i++) { in virtnet_xsk_xmit_batch()
1478 xsk_tx_completed(sq->xsk_pool, nb_pkts - i); in virtnet_xsk_xmit_batch()