git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
event/octeontx2: support dequeue timeout tick conversion
[dpdk.git]
/
drivers
/
event
/
octeontx2
/
otx2_evdev.h
diff --git
a/drivers/event/octeontx2/otx2_evdev.h
b/drivers/event/octeontx2/otx2_evdev.h
index
3f4931f
..
1a9de1b
100644
(file)
--- a/
drivers/event/octeontx2/otx2_evdev.h
+++ b/
drivers/event/octeontx2/otx2_evdev.h
@@
-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,