Searched refs:nb_pkts (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/selftests/bpf/ |
A D | xdpxceiver.c | 457 if (pkt_nb >= pkt_stream->nb_pkts) in pkt_stream_get_pkt() 465 while (pkt_stream->rx_pkt_nb < pkt_stream->nb_pkts) { in pkt_stream_get_next_rx_pkt() 488 static struct pkt_stream *__pkt_stream_alloc(u32 nb_pkts) in __pkt_stream_alloc() argument 502 pkt_stream->nb_pkts = nb_pkts; in __pkt_stream_alloc() 511 pkt_stream = __pkt_stream_alloc(nb_pkts); in pkt_stream_generate() 515 pkt_stream->nb_pkts = nb_pkts; in pkt_stream_generate() 516 for (i = 0; i < nb_pkts; i++) { in pkt_stream_generate() 552 for (i = 1; i < test->pkt_stream_default->nb_pkts; i += 2) { in pkt_stream_replace_half() 592 pkt_stream = __pkt_stream_alloc(nb_pkts); in pkt_stream_generate_custom() 599 for (i = 0; i < nb_pkts; i++) { in pkt_stream_generate_custom() [all …]
|
A D | xdpxceiver.h | 114 u32 nb_pkts; member
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_xsk.c | 439 static void i40e_fill_tx_hw_ring(struct i40e_ring *xdp_ring, struct xdp_desc *descs, u32 nb_pkts, in i40e_fill_tx_hw_ring() argument 444 batched = nb_pkts & ~(PKTS_PER_BATCH - 1); in i40e_fill_tx_hw_ring() 445 leftover = nb_pkts & (PKTS_PER_BATCH - 1); in i40e_fill_tx_hw_ring() 471 u32 nb_pkts, nb_processed = 0; in i40e_xmit_zc() local 474 nb_pkts = xsk_tx_peek_release_desc_batch(xdp_ring->xsk_pool, descs, budget); in i40e_xmit_zc() 475 if (!nb_pkts) in i40e_xmit_zc() 478 if (xdp_ring->next_to_use + nb_pkts >= xdp_ring->count) { in i40e_xmit_zc() 484 i40e_fill_tx_hw_ring(xdp_ring, &descs[nb_processed], nb_pkts - nb_processed, in i40e_xmit_zc() 491 i40e_update_tx_stats(xdp_ring, nb_pkts, total_bytes); in i40e_xmit_zc() 493 return nb_pkts < budget; in i40e_xmit_zc()
|
/linux/net/xdp/ |
A D | xsk.c | 349 u32 nb_pkts = 0; in xsk_tx_peek_release_fallback() local 351 while (nb_pkts < max_entries && xsk_tx_peek_desc(pool, &descs[nb_pkts])) in xsk_tx_peek_release_fallback() 352 nb_pkts++; in xsk_tx_peek_release_fallback() 355 return nb_pkts; in xsk_tx_peek_release_fallback() 362 u32 nb_pkts; in xsk_tx_peek_release_desc_batch() local 373 nb_pkts = 0; in xsk_tx_peek_release_desc_batch() 378 if (!nb_pkts) { in xsk_tx_peek_release_desc_batch() 389 nb_pkts = xskq_prod_reserve_addr_batch(pool->cq, descs, nb_pkts); in xsk_tx_peek_release_desc_batch() 390 if (!nb_pkts) in xsk_tx_peek_release_desc_batch() 393 xskq_cons_release_n(xs->tx, nb_pkts); in xsk_tx_peek_release_desc_batch() [all …]
|
Completed in 12 milliseconds