event/octeontx2: support dequeue timeout tick conversion
[dpdk.git] / drivers / event / octeontx2 / otx2_evdev.h
index 3f4931f..1a9de1b 100644 (file)
@@ -75,6 +75,7 @@
 
 #define NSEC2USEC(__ns)                        ((__ns) / 1E3)
 #define USEC2NSEC(__us)                 ((__us) * 1E3)
+#define NSEC2TICK(__ns, __freq)                (((__ns) * (__freq)) / 1E9)
 
 enum otx2_sso_lf_type {
        SSO_LF_GGRP,