[dpdk-dev] [RFC PATCH v5 1/5] eventtimer: introduce event timer adapter
Jerin Jacob
jerin.jacob at caviumnetworks.com
Wed Dec 6 16:17:35 CET 2017
-----Original Message-----
> Date: Fri, 1 Dec 2017 14:00:54 -0600
> From: Erik Gabriel Carrillo <erik.g.carrillo at intel.com>
> To: pbhagavatula at caviumnetworks.com
> CC: dev at dpdk.org, jerin.jacob at caviumnetworks.com, nipun.gupta at nxp.com,
> hemant.agrawal at nxp.com
> 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 <erik.g.carrillo at intel.com>
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.*/
> +};
> +
> +/**
More information about the dev
mailing list