[dpdk-dev] [PATCH v3 1/3] eventdev: introduce adapter flags for periodic mode

Jerin Jacob jerinjacobk at gmail.com
Mon Mar 22 10:50:07 CET 2021


On Wed, Mar 17, 2021 at 11:37 PM Carrillo, Erik G
<erik.g.carrillo at intel.com> wrote:
>
> > -----Original Message-----
> > From: Shijith Thotton <sthotton at marvell.com>
> > Sent: Wednesday, March 17, 2021 3:04 AM
> > To: Carrillo, Erik G <erik.g.carrillo at intel.com>
> > Cc: Shijith Thotton <sthotton at marvell.com>; Pavan Nikhilesh
> > <pbhagavatula at marvell.com>; Jerin Jacob <jerinj at marvell.com>;
> > dev at dpdk.org
> > Subject: [PATCH v3 1/3] eventdev: introduce adapter flags for periodic mode
> >
> > A timer adapter in periodic mode can be used to arm periodic timers.
> > This patch adds flags used to advertise capability and configure timer adapter
> > in periodic mode. Capability flag should be set for adapters which support
> > periodic mode.
> >
> > Below is a programming sequence on the usage:
> >       /* check for periodic mode support by reading capability. */
> >       rte_event_timer_adapter_caps_get(...);
> >
> >       /* create adapter in periodic mode by setting periodic flag
> >          (RTE_EVENT_TIMER_ADAPTER_F_PERIODIC) and resolution. */
> >       rte_event_timer_adapter_create_ext(...);
> >
> >       /* arm periodic timer of configured resolution */
> >       rte_event_timer_arm_burst(...);
> >
> >       /* timer event will be periodically generated at configured
> >          resolution till cancel is called. */
> >       while (running) { rte_event_dequeue_burst(...); }
> >
> >       /* cancel periodic timer which stops generating events */
> >       rte_event_timer_cancel_burst(...);
> >
> > Signed-off-by: Shijith Thotton <sthotton at marvell.com>
>
> Thanks, Shijith:
>
> Acked-by: Erik Gabriel Carrillo <erik.g.carrillo at intel.com>

Added following text in release notes in respective patches.

--
* **Introduced period timer mode in eventdev timer adapter.**

  * Added support for periodic timer mode in eventdev timer adapter.
  * Added support for periodic timer mode in octeontx2 event device driver.
--

Series Acked-by: Jerin Jacob <jerinj at marvell.com>
Applied to dpdk-next-net-eventdev/for-main. Thanks


More information about the dev mailing list