Searched refs:nb_pkts (Results 1 – 5 of 5) sorted by relevance
/linux-5.19.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_xsk.c | 453 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 458 batched = nb_pkts & ~(PKTS_PER_BATCH - 1); in i40e_fill_tx_hw_ring() 459 leftover = nb_pkts & (PKTS_PER_BATCH - 1); in i40e_fill_tx_hw_ring() 485 u32 nb_pkts, nb_processed = 0; in i40e_xmit_zc() local 488 nb_pkts = xsk_tx_peek_release_desc_batch(xdp_ring->xsk_pool, budget); in i40e_xmit_zc() 489 if (!nb_pkts) in i40e_xmit_zc() 492 if (xdp_ring->next_to_use + nb_pkts >= xdp_ring->count) { in i40e_xmit_zc() 498 i40e_fill_tx_hw_ring(xdp_ring, &descs[nb_processed], nb_pkts - nb_processed, in i40e_xmit_zc() 505 i40e_update_tx_stats(xdp_ring, nb_pkts, total_bytes); in i40e_xmit_zc() 507 return nb_pkts < budget; in i40e_xmit_zc()
|
/linux-5.19.10/tools/testing/selftests/bpf/ |
D | xdpxceiver.c | 501 if (pkt_nb >= pkt_stream->nb_pkts) in pkt_stream_get_pkt() 509 while (pkt_stream->rx_pkt_nb < pkt_stream->nb_pkts) { in pkt_stream_get_next_rx_pkt() 539 static struct pkt_stream *__pkt_stream_alloc(u32 nb_pkts) in __pkt_stream_alloc() argument 547 pkt_stream->pkts = calloc(nb_pkts, sizeof(*pkt_stream->pkts)); in __pkt_stream_alloc() 553 pkt_stream->nb_pkts = nb_pkts; in __pkt_stream_alloc() 567 static struct pkt_stream *pkt_stream_generate(struct xsk_umem_info *umem, u32 nb_pkts, u32 pkt_len) in pkt_stream_generate() argument 572 pkt_stream = __pkt_stream_alloc(nb_pkts); in pkt_stream_generate() 576 pkt_stream->nb_pkts = nb_pkts; in pkt_stream_generate() 577 for (i = 0; i < nb_pkts; i++) { in pkt_stream_generate() 589 return pkt_stream_generate(umem, pkt_stream->nb_pkts, pkt_stream->pkts[0].len); in pkt_stream_clone() [all …]
|
D | xdpxceiver.h | 118 u32 nb_pkts; member
|
/linux-5.19.10/drivers/net/ethernet/intel/ice/ |
D | ice_xsk.c | 925 u32 nb_pkts, unsigned int *total_bytes) in ice_fill_tx_hw_ring() argument 930 batched = ALIGN_DOWN(nb_pkts, PKTS_PER_BATCH); in ice_fill_tx_hw_ring() 931 leftover = nb_pkts & (PKTS_PER_BATCH - 1); in ice_fill_tx_hw_ring() 959 u32 nb_pkts, nb_processed = 0; in ice_xmit_zc() local 965 nb_pkts = xsk_tx_peek_release_desc_batch(xdp_ring->xsk_pool, budget); in ice_xmit_zc() 966 if (!nb_pkts) in ice_xmit_zc() 969 if (xdp_ring->next_to_use + nb_pkts >= xdp_ring->count) { in ice_xmit_zc() 981 ice_fill_tx_hw_ring(xdp_ring, &descs[nb_processed], nb_pkts - nb_processed, in ice_xmit_zc() 985 ice_update_tx_ring_stats(xdp_ring, nb_pkts, total_bytes); in ice_xmit_zc() 990 return nb_pkts < budget; in ice_xmit_zc()
|
/linux-5.19.10/net/xdp/ |
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() 361 u32 nb_pkts; in xsk_tx_peek_release_desc_batch() local 372 nb_pkts = 0; in xsk_tx_peek_release_desc_batch() 377 nb_pkts = xskq_cons_read_desc_batch(xs->tx, pool, max_entries); 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, pool->tx_descs, nb_pkts); in xsk_tx_peek_release_desc_batch() 390 if (!nb_pkts) in xsk_tx_peek_release_desc_batch() [all …]
|