From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B7254A034F; Mon, 22 Mar 2021 10:50:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 864AB140E6C; Mon, 22 Mar 2021 10:50:26 +0100 (CET) Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) by mails.dpdk.org (Postfix) with ESMTP id 399FD4003D for ; Mon, 22 Mar 2021 10:50:24 +0100 (CET) Received: by mail-io1-f48.google.com with SMTP id k8so13204434iop.12 for ; Mon, 22 Mar 2021 02:50:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Kpl52IythQaErfmKeikW+p9yr9OUamdBIBn3krIGj0Y=; b=rWAXAcWEkrYyfbtquyQXAUgiwlcPzzVe2t1NNNPRyFpm8L/rhoKZRg/TXhKepuCvdV urrG7PLh4LIu0O5OWLa7u1jYBgd3uI/62TpJ22AZVSsIpNgEmKHybqgaoYGlqcXD8ie6 tj5g+KM5Y/A5xpkhYN/D/bkfwLaZT6DmIk96pN13I/fTv3swXU/zEQzmIApBlBsOYdw2 GPjpQWQFbkq4ydmP8Z3O+QRT+NOqutyal3/451VtOWfKLg3ZRtd1TVzwSMEsdLXVWJMR RlJdHKazK2VE2uDDledOaW3Qa7PP8zZ6Ku4aLqf/fqM9n3WZ1mrX8GoCfQt48rXqYZ/j f6XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Kpl52IythQaErfmKeikW+p9yr9OUamdBIBn3krIGj0Y=; b=V96tLJigSdHCOigYb5pPnIsS7x9BptA398lWPOgzqdAi/Jpovden7pBAu3NY+pAvdh wLRKn7B/txG5h2golgLeqsuiZaTaNBV+Gevp+8qjYYjPKBCFuOl+x31YJpO6sHLd8n44 kqaczKTrif7stEvwjW4gvnHNIj7X7PC1QzJl4id+28eoWqZoNE65z6dKWpyRLsGPeorI GZfmX5iEAWUIO5Cl8qttTvNJvOqJD53HjuUtr7qrdOsVsvq+ZbGbiYLXbpjBRtdDoJon F/OAGuj+oNReXNKAxvTueVc8MLcnJ2t2OwoLEOu4Ctqvu8OppZ9jCo3O3bJEO4ZSiT0B eoFA== X-Gm-Message-State: AOAM532Dn3QjcFTw4s2njzCf80Pi4j6yWUuOqj/u2FOm1EUYgfitmSEH CdqAbuio0+LkhhG94hvPwwy9GA8SpzIwHhlvyzw= X-Google-Smtp-Source: ABdhPJxVG7ClpqJBd0G15yrb7fFKaMpWkhl38p5LTZgQC5AYfKNVeGJQuFd8BHZsyMTVWFGOew/3X1aZ8J/lJCDpuGY= X-Received: by 2002:a05:6602:722:: with SMTP id g2mr10191985iox.1.1616406623638; Mon, 22 Mar 2021 02:50:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jerin Jacob Date: Mon, 22 Mar 2021 15:20:07 +0530 Message-ID: To: "Carrillo, Erik G" Cc: Shijith Thotton , Pavan Nikhilesh , Jerin Jacob , "dev@dpdk.org" Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v3 1/3] eventdev: introduce adapter flags for periodic mode X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Mar 17, 2021 at 11:37 PM Carrillo, Erik G wrote: > > > -----Original Message----- > > From: Shijith Thotton > > Sent: Wednesday, March 17, 2021 3:04 AM > > To: Carrillo, Erik G > > Cc: Shijith Thotton ; Pavan Nikhilesh > > ; Jerin Jacob ; > > dev@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 > > Thanks, Shijith: > > Acked-by: Erik Gabriel Carrillo 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 Applied to dpdk-next-net-eventdev/for-main. Thanks