-----Original Message-----
> Date: Fri, 1 Dec 2017 14:00:54 -0600
> From: Erik Gabriel Carrillo <[email protected]>
> To: [email protected]
> CC: [email protected], [email protected], [email protected],
> [email protected]
> Subject: [RFC PATCH v5 1/5] eventtimer: introduce event timer adapter
> X-Mailer: git-send-email 1.7.10
>
> Signed-off-by: Erik Gabriel Carrillo <[email protected]>
Feel free to add my Signed-off-by as this patch is mostly based on initial RFC.
> ---
> doc/api/doxy-api-index.md | 1 +
> lib/librte_eventdev/Makefile | 1 +
> lib/librte_eventdev/rte_event_timer_adapter.h | 518
> ++++++++++++++++++++++++++
> lib/librte_eventdev/rte_eventdev.h | 4 +-
> 4 files changed, 522 insertions(+), 2 deletions(-)
> create mode 100644 lib/librte_eventdev/rte_event_timer_adapter.h
>
> + * Event timer state.
> + */
> +enum rte_event_timer_state {
> + RTE_EVENT_TIMER_NOT_ARMED = 0,
> + /**< Event timer is in not armed state.*/
> + RTE_EVENT_TIMER_ARMED = 1,
> + /**< Event timer successfully armed.*/
How about adding a state called RTE_EVENT_TIMER_CANCELED?, Which
will updated by the driver on rte_event_timer_arm_burst().
This will enable application to get the state of the rte_event_timer object
in latter time.
> + RTE_EVENT_TIMER_ERROR = -1,
> + /**< Generic event timer error.*/
> + RTE_EVENT_TIMER_ERROR_TOOEARLY = -2,
> + /**< Event timer timeout tick is too little to add to the adapter. */
> + RTE_EVENT_TIMER_ERROR_TOOLATE = -3,
> + /**< Event timer timeout tick is greater than the maximum timeout.*/
> +};
> +
> +/**