Home
last modified time | relevance | path

Searched refs:cached_prod (Results 1 – 3 of 3) sorted by relevance

/linux/net/xdp/
A Dxsk_queue.h43 u32 cached_prod; member
124 if (q->cached_cons != q->cached_prod) { in xskq_cons_read_addr_unchecked()
271 if (q->cached_prod == q->cached_cons) in xskq_cons_peek_addr_unchecked()
280 if (q->cached_prod == q->cached_cons) in xskq_cons_peek_desc()
343 q->cached_prod--; in xskq_prod_cancel()
352 q->cached_prod++; in xskq_prod_reserve()
372 u32 nb_entries, i, cached_prod; in xskq_prod_reserve_addr_batch() local
377 cached_prod = q->cached_prod; in xskq_prod_reserve_addr_batch()
380 q->cached_prod = cached_prod; in xskq_prod_reserve_addr_batch()
395 idx = q->cached_prod++ & q->ring_mask; in xskq_prod_reserve_desc()
[all …]
/linux/tools/lib/bpf/
A Dxsk.h100 __u32 cached_prod; \
159 __u32 free_entries = r->cached_cons - r->cached_prod; in xsk_prod_nb_free()
174 return r->cached_cons - r->cached_prod; in xsk_prod_nb_free()
179 __u32 entries = r->cached_prod - r->cached_cons; in xsk_cons_nb_avail()
182 r->cached_prod = libbpf_smp_load_acquire(r->producer); in xsk_cons_nb_avail()
183 entries = r->cached_prod - r->cached_cons; in xsk_cons_nb_avail()
194 *idx = prod->cached_prod; in xsk_ring_prod__reserve()
195 prod->cached_prod += nb; in xsk_ring_prod__reserve()
A Dxsk.c1122 rx->cached_prod = *rx->producer; in xsk_socket__create_shared()
1143 tx->cached_prod = *tx->producer; in xsk_socket__create_shared()

Completed in 9 milliseconds