Home
last modified time | relevance | path

Searched refs:n_slots (Results 1 – 2 of 2) sorted by relevance

/f-stack/dpdk/drivers/net/memif/
H A Drte_eth_memif.c343 n_slots = last_slot - cur_slot; in eth_memif_rx()
345 while (n_slots && n_rx_pkts < nb_pkts) { in eth_memif_rx()
396 n_slots--; in eth_memif_rx()
423 while (n_slots--) { in eth_memif_rx()
477 n_slots = last_slot - cur_slot; in eth_memif_rx_zc()
479 while (n_slots && n_rx_pkts < nb_pkts) { in eth_memif_rx_zc()
498 n_slots--; in eth_memif_rx_zc()
525 n_slots = ring_size - head + mq->last_tail; in eth_memif_rx_zc()
527 if (n_slots < 32) in eth_memif_rx_zc()
534 while (n_slots--) { in eth_memif_rx_zc()
[all …]
/f-stack/dpdk/lib/librte_hash/
H A Drte_cuckoo_hash.c978 unsigned int n_slots; in alloc_slot() local
985 n_slots = rte_ring_mc_dequeue_burst_elem(h->free_slots, in alloc_slot()
989 if (n_slots == 0) in alloc_slot()
992 cached_free_slots->len += n_slots; in alloc_slot()
1455 unsigned lcore_id, n_slots; in free_slot() local
1465 n_slots = rte_ring_mp_enqueue_burst_elem(h->free_slots, in free_slot()
1469 RETURN_IF_TRUE((n_slots == 0), -EFAULT); in free_slot()
1470 cached_free_slots->len -= n_slots; in free_slot()