Home
last modified time | relevance | path

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

/linux-6.6.21/net/xdp/
Dxsk_queue.h44 u32 cached_cons; member
120 static inline void __xskq_cons_read_addr_unchecked(struct xsk_queue *q, u32 cached_cons, u64 *addr) in __xskq_cons_read_addr_unchecked() argument
123 u32 idx = cached_cons & q->ring_mask; in __xskq_cons_read_addr_unchecked()
130 if (q->cached_cons != q->cached_prod) { in xskq_cons_read_addr_unchecked()
131 __xskq_cons_read_addr_unchecked(q, q->cached_cons, addr); in xskq_cons_read_addr_unchecked()
191 return q->cached_cons != q->cached_prod; in xskq_has_descs()
209 if (q->cached_cons != q->cached_prod) { in xskq_cons_read_desc()
211 u32 idx = q->cached_cons & q->ring_mask; in xskq_cons_read_desc()
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
[all …]
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()
/linux-6.6.21/tools/testing/selftests/bpf/
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()
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()