net/mlx5: fix DevX event registration timing
[dpdk.git] / drivers / net / sfc / sfc_ef10.h
index a73e0bd..deb134d 100644 (file)
@@ -109,6 +109,18 @@ sfc_ef10_rx_qpush(volatile void *doorbell, unsigned int added,
        rte_write32(dword.ed_u32[0], doorbell);
 }
 
+static inline void
+sfc_ef10_ev_qprime(volatile void *qprime, unsigned int read_ptr,
+                 unsigned int ptr_mask)
+{
+       efx_dword_t dword;
+
+       EFX_POPULATE_DWORD_1(dword, ERF_DZ_EVQ_RPTR, read_ptr & ptr_mask);
+
+       rte_write32_relaxed(dword.ed_u32[0], qprime);
+       rte_wmb();
+}
+
 
 const uint32_t * sfc_ef10_supported_ptypes_get(uint32_t tunnel_encaps);