Home
last modified time | relevance | path

Searched refs:cached_cons (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/net/xdp/
H A Dxsk_queue.h44 u32 cached_cons; member
123 u32 idx = cached_cons & q->ring_mask; in __xskq_cons_read_addr_unchecked()
223 q->cached_cons += cnt; in xskq_cons_release_n()
237 u32 cached_cons = q->cached_cons, nb_entries = 0; in xskq_cons_read_desc_batch() local
250 cached_cons++; in xskq_cons_read_desc_batch()
268 cached_cons -= nr_frags; in xskq_cons_read_desc_batch()
270 xskq_cons_release_n(q, cached_cons - q->cached_cons); in xskq_cons_read_desc_batch()
313 if (q->cached_prod == q->cached_cons) in xskq_cons_peek_addr_unchecked()
322 if (q->cached_prod == q->cached_cons) in xskq_cons_peek_desc()
333 q->cached_cons++; in xskq_cons_release()
[all …]
H A Dxsk_buff_pool.c557 u32 i, cached_cons, nb_entries; in xp_alloc_new_from_fq() local
563 cached_cons = pool->fq->cached_cons; in xp_alloc_new_from_fq()
571 __xskq_cons_read_addr_unchecked(pool->fq, cached_cons++, &addr); in xp_alloc_new_from_fq()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dxsk.h30 __u32 cached_cons; \
88 __u32 free_entries = r->cached_cons - r->cached_prod; in xsk_prod_nb_free()
100 r->cached_cons = __atomic_load_n(r->consumer, __ATOMIC_ACQUIRE); in xsk_prod_nb_free()
101 r->cached_cons += r->size; in xsk_prod_nb_free()
103 return r->cached_cons - r->cached_prod; in xsk_prod_nb_free()
108 __u32 entries = r->cached_prod - r->cached_cons; in xsk_cons_nb_avail()
112 entries = r->cached_prod - r->cached_cons; in xsk_cons_nb_avail()
147 *idx = cons->cached_cons; in xsk_ring_cons__peek()
148 cons->cached_cons += entries; in xsk_ring_cons__peek()
156 cons->cached_cons -= nb; in xsk_ring_cons__cancel()
H A Dxsk.c197 fill->cached_cons = umem->config.fill_size; in xsk_create_umem_rings()
639 rx->cached_cons = *rx->consumer; in xsk_socket__create_shared()
663 tx->cached_cons = *tx->consumer + xsk->config.tx_size; in xsk_socket__create_shared()