MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sfc_ef100_evq_prime

Function sfc_ef100_evq_prime

dpdk/drivers/net/sfc/sfc_ef100.h:24–43  ·  view source on GitHub ↗

* Prime event queue to allow processed events to be reused. * * @param evq_prime Global address of the prime register * @param evq_hw_index Event queue index * @param evq_read_ptr Masked event queue read pointer */

Source from the content-addressed store, hash-verified

22 * @param evq_read_ptr Masked event queue read pointer
23 */
24static inline void
25sfc_ef100_evq_prime(volatile void *evq_prime, unsigned int evq_hw_index,
26 unsigned int evq_read_ptr)
27{
28 efx_dword_t dword;
29
30 EFX_POPULATE_DWORD_2(dword,
31 ERF_GZ_EVQ_ID, evq_hw_index,
32 ERF_GZ_IDX, evq_read_ptr);
33
34 /*
35 * EvQ prime on EF100 allows HW to reuse descriptors. So we
36 * should be sure that event descriptor reads are done.
37 * However, there is implicit data dependency here since we
38 * move past event if we have found out that the event has
39 * come (i.e. we read it) and we have processed it.
40 * So, no extra barriers are required here.
41 */
42 rte_write32_relaxed(dword.ed_u32[0], evq_prime);
43}
44
45static inline bool
46sfc_ef100_ev_present(const efx_qword_t *ev, bool phase_bit)

Callers 1

sfc_ef100_rx_qprimeFunction · 0.85

Calls 1

rte_write32_relaxedFunction · 0.50

Tested by

no test coverage detected