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 43824459D5; Thu, 19 Sep 2024 12:33:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 09E91402B1; Thu, 19 Sep 2024 12:33:01 +0200 (CEST) Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by mails.dpdk.org (Postfix) with ESMTP id 572CD400D5 for ; Thu, 19 Sep 2024 12:32:59 +0200 (CEST) Received: by mail-qt1-f176.google.com with SMTP id d75a77b69052e-456757d8871so4575601cf.0 for ; Thu, 19 Sep 2024 03:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726741978; x=1727346778; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OOyIUr1n6DRFjcGNFfJ/xN3Ll20dx71FzWhvPhqFCZ8=; b=E2p1qHW9Jh8gJNNjzGS0fZn6bl/kbSkySFFqYgaeqzzGp6p6ZE++8C8kfrADbPTBZC 0dRynIeOSZ6VpXVYFWlK5pV1i6lJe+ngmR0tME2BX4OO+B3iInnNYEuNhrBJA/M3tT/8 X0eSDBRA/P1w8yaXTtTI6QDKCLWD+Xfx0CjLtVaffXVCDSA4bX3D+1qHsG5uvqoNNLyb RmLD2xrlcV+0VX3cwe9am04JdVBFmIKFu/xJqyvH9iSFUQkl0f7YIBA1kWHymhiqYHsn CpeNay+WyHkWuphXbyZoI/HNB/R7Y/7TNJyQxP/GQYM18DCy4mjmCqosjRPgoUeoqyqz lRTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726741978; x=1727346778; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OOyIUr1n6DRFjcGNFfJ/xN3Ll20dx71FzWhvPhqFCZ8=; b=F39+M1QH7E+W9EefspeA7x0xrkKaLyXeXNgOjFlwMxRcK9AH4OqXJr3zeUN8aF+JsA /V91jU8ywgJOj0wbV+1g2Ix2e2SIo1BIXTCc91gjGLANfOgWbDmHn/v/ErONT6AckXE5 DDeJwMo8NuX2V+erKqlsT9ekDEXcz+Uhj2X9yrK+ex8fG7KTMmP9O5gXlEOZmfUdTdiB 42IEgSIlSoTY1NhI0z0W9JCvJJH1xogMpTypoWVVU3GHMpoFfsj8J9bcYlWxILR6zMxT Y/S8j+WpNLXpzfuf1m4AcYBGtkc9NGPgUOCaeguZb1WkpeS1g27YeVj7SK9sODUFtlqb m8UQ== X-Gm-Message-State: AOJu0YxpFayMblv4Jj3pH1lA6mx3k0ijLPvFQehrUsU6wszRadSwAIRO Qk8CIKKgA6NqDOR43b6dFU9lHCMgyy4K0R+whZcDqB3cRTOJt9AkLsclauZohWDMOWtyACJUrl+ WzY2+sNz5crZscH6oAvu2kdYEjEs= X-Google-Smtp-Source: AGHT+IGC88iwAz16ArJn0ImXv1/H5Z1wm0NTVdJVHI+J9jc65M/59Yj5ja/I1vSqfxzYoe8agj4pqFNCkIW58DmnVZk= X-Received: by 2002:a05:622a:14a:b0:458:4915:cc38 with SMTP id d75a77b69052e-4586031161cmr437725091cf.29.1726741978320; Thu, 19 Sep 2024 03:32:58 -0700 (PDT) MIME-Version: 1.0 References: <20240830162357.2057922-2-abdullah.sevincer@intel.com> <20240909155204.2654618-1-abdullah.sevincer@intel.com> <20240909155204.2654618-2-abdullah.sevincer@intel.com> In-Reply-To: <20240909155204.2654618-2-abdullah.sevincer@intel.com> From: Jerin Jacob Date: Thu, 19 Sep 2024 16:02:31 +0530 Message-ID: Subject: Re: [PATCH v11 1/3] eventdev: add support for independent enqueue To: Abdullah Sevincer Cc: dev@dpdk.org, jerinj@marvell.com, bruce.richardson@intel.com, pravin.pathak@intel.com, mattias.ronnblom@ericsson.com, manish.aggarwal@intel.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Tue, Sep 10, 2024 at 9:08=E2=80=AFAM Abdullah Sevincer wrote: > > This commit adds support for independent enqueue feature > and updates Event Device and PMD feature list. > > A new capability RTE_EVENT_DEV_CAP_INDEPENDENT_ENQ is introduced. It > allows out-of-order enqueuing of RTE_EVENT_OP_FORWARD or RELEASE type > events on an event port where this capability is enabled. > > To use this capability applications need to set flag > RTE_EVENT_PORT_CFG_INDEPENDENT_ENQ during port setup only if the > capability RTE_EVENT_DEV_CAP_INDEPENDENT_ENQ exists. > > Signed-off-by: Abdullah Sevincer > Acked-by: Mattias R=C3=B6nnblom Good to merge next version. Some minor comments. > --- > doc/guides/eventdevs/features/default.ini | 1 + > doc/guides/eventdevs/features/dlb2.ini | 1 + > doc/guides/rel_notes/release_24_11.rst | 5 +++ > lib/eventdev/rte_eventdev.h | 37 +++++++++++++++++++++++ > 4 files changed, 44 insertions(+) > > diff --git a/doc/guides/eventdevs/features/default.ini b/doc/guides/event= devs/features/default.ini > index 1cc4303fe5..7c4ee99238 100644 > --- a/doc/guides/eventdevs/features/default.ini > +++ b/doc/guides/eventdevs/features/default.ini > @@ -22,6 +22,7 @@ carry_flow_id =3D > maintenance_free =3D > runtime_queue_attr =3D > profile_links =3D > +independent_enq =3D > > ; > ; Features of a default Ethernet Rx adapter. > diff --git a/doc/guides/eventdevs/features/dlb2.ini b/doc/guides/eventdev= s/features/dlb2.ini > index 7b80286927..c7193b47c1 100644 > --- a/doc/guides/eventdevs/features/dlb2.ini > +++ b/doc/guides/eventdevs/features/dlb2.ini > @@ -15,6 +15,7 @@ implicit_release_disable =3D Y > runtime_port_link =3D Y > multiple_queue_port =3D Y > maintenance_free =3D Y > +independent_enq =3D Y > > [Eth Rx adapter Features] > > diff --git a/doc/guides/rel_notes/release_24_11.rst b/doc/guides/rel_note= s/release_24_11.rst > index 0ff70d9057..89c6a67e6a 100644 > --- a/doc/guides/rel_notes/release_24_11.rst > +++ b/doc/guides/rel_notes/release_24_11.rst > @@ -55,6 +55,11 @@ New Features > Also, make sure to start the actual text at the margin. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > > +* **Updated Event Device Library for independent enqueue feature** Updated eventdev to support independent enqueue feature i.e Change Event Device Library to eventdev > + > + * Added support for independent enqueue feature. Updated Event Device = and i.e Change Event Device Library to eventdev > + PMD feature list. > + > > Removed Items > ------------- > diff --git a/lib/eventdev/rte_eventdev.h b/lib/eventdev/rte_eventdev.h > index 08e5f9320b..3e3142d4a6 100644 > --- a/lib/eventdev/rte_eventdev.h > +++ b/lib/eventdev/rte_eventdev.h > @@ -446,6 +446,31 @@ struct rte_event; > * @see RTE_SCHED_TYPE_PARALLEL > */ > > +#define RTE_EVENT_DEV_CAP_INDEPENDENT_ENQ (1ULL << 16) > +/**< Event device is capable of independent enqueue. > + * A new capability, RTE_EVENT_DEV_CAP_INDEPENDENT_ENQ, will indicate th= at Eventdev Eventdev->eventdev > + * supports the enqueue in any order or specifically in a different orde= r than the > + * dequeue. Eventdev PMD can either transmit events in the changed order= in which transmit->enqueue > + * they are enqueued or restore the original order before sending them t= o the > + * underlying hardware device. A flag is provided during the port config= uration to > + * inform Eventdev PMD that the application intends to use an independen= t enqueue > + * order on a particular port. Note that this capability only matters fo= r Eventdevs Eventdevs->eventdevs > + * supporting burst mode. > + * > + * To Inform PMD that the application plans to use independent enqueue o= rder on a port Inform->inform > + * this code example can be used: > + * > + * if (capability & RTE_EVENT_DEV_CAP_INDEPENDENT_ENQ) > + * port_config =3D port_config | RTE_EVENT_PORT_CFG_INDEPENDENT_ENQ; > + * > + * When an implicit release is enabled on a port, Eventdev PMD will also= handle > + * the insertion of RELEASE events in place of dropped events. The indep= endent enqueue > + * feature only applies to FORWARD and RELEASE events. New events (op=3D= RTE_EVENT_OP_NEW) > + * will be transmitted in the order the application enqueues them and do= not maintain transmitted->enqueued > + * any order relative to FORWARD/RELEASE events. FORWARD vs NEW relaxed = ordering > + * only applies to ports that have enabled independent enqueue feature. > + */ > + > /* Event device priority levels */ > #define RTE_EVENT_DEV_PRIORITY_HIGHEST 0 > /**< Highest priority level for events and queues. > @@ -1072,6 +1097,18 @@ rte_event_queue_attr_set(uint8_t dev_id, uint8_t q= ueue_id, uint32_t attr_id, > * > * @see rte_event_port_setup() > */ > +#define RTE_EVENT_PORT_CFG_INDEPENDENT_ENQ (1ULL << 5) > +/**< Flag to enable independent enqueue. Must not be set if the device > + * is not RTE_EVENT_DEV_CAP_INDEPENDENT_ENQ capable. This feature > + * allows an application to enqueue RTE_EVENT_OP_FORWARD or > + * RTE_EVENT_OP_RELEASE in an order different than the order the > + * events were dequeued from the event device, while maintaining > + * RTE_SCHED_TYPE_ATOMIC or RTE_SCHED_TYPE_ORDERED semantics. > + * > + * Note that this flag only matters for Eventdevs supporting burst mode. Eventdevs->eventdevs > + * > + * @see rte_event_port_setup() > + */ > > /** Event port configuration structure */ > struct rte_event_port_conf { > -- > 2.25.1 >