event/dlb2: add port attribute for independent enqueue
PATCH 1/1 event/dlb2: add port attribute for independent enqueue
From: Pravin Pathak <[email protected]>
Independent Enqueue support is added to DPDK 24.11 Adding the attribute rte_event_port_attr_get() was missing This commit adds it to retrieve port attributes
--- lib/eventdev/rte_eventdev.c | 8 ++++++++ lib/eventdev/rte_eventdev.h | 6 ++++++ 2 files changed, 14 insertions(+)
lib/eventdev/rte_eventdev.c +8 -0
@@ -880,6 +880,14 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id, uint32_t attr_id, *attr_value = !!(config &RTE_EVENT_PORT_CFG_DISABLE_IMPL_REL );break ; } +case RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQ : + { +uint32_t config; + + config = dev->data->ports_cfg[port_id].event_port_cfg; + *attr_value = !!(config &RTE_EVENT_PORT_CFG_INDEPENDENT_ENQ ); +break ; + }default :return -EINVAL ; };
lib/eventdev/rte_eventdev.h +6 -0
@@ -1318,6 +1318,12 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id,* Port attribute id for the implicit release disable attribute of the port. */ #define RTE_EVENT_PORT_ATTR_IMPLICIT_RELEASE_DISABLE 3 +/** +* Port attribute indicating it supports independent enqueue. i.e. enqueue order +* is independent of dequeue order for all forwarded events. +* +*/ +#define RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQ 4/** * Get an attribute from a port.
Signature · 1 line
2.26.2
Quoted 3 lines · On 2024-12-13 05:33, [email protected] wrote:
From: Pravin Pathak <[email protected]>
Independent Enqueue support is added to DPDK 24.11
"."
Quoted 1 line
Adding the attribute
rte_event_port_attr_get()was missing
There is something wrong with that sentence.
"Add the corresponding rte_event_port_attr_get() attribute, which was missing."
Quoted 32 lines
This commit adds it to retrieve port attributes
Signed-off-by Pravin Pathak <[email protected]>--- lib/eventdev/rte_eventdev.c | 8 ++++++++ lib/eventdev/rte_eventdev.h | 6 ++++++ 2 files changed, 14 insertions(+)lib/eventdev/rte_eventdev.c +8
-0@@ -880,6 +880,14 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id, uint32_t attr_id, *attr_value = !!(config &RTE_EVENT_PORT_CFG_DISABLE_IMPL_REL );break ; } +case RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQ : + { +uint32_t config; + + config = dev->data->ports_cfg[port_id].event_port_cfg; + *attr_value = !!(config &RTE_EVENT_PORT_CFG_INDEPENDENT_ENQ ); +break ; + }default :return -EINVAL ; };lib/eventdev/rte_eventdev.h +0
-0
lib/eventdev/rte_eventdev.h rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id, · line 1323
Quoted 6 lines
lib/eventdev/rte_eventdev.h +3
-0@@ -1318,6 +1318,12 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id,* Port attribute id for the implicit release disable attribute of the port. */ #define RTE_EVENT_PORT_ATTR_IMPLICIT_RELEASE_DISABLE 3 +/** +* Port attribute indicating it supports independent enqueue. i.e. enqueue order +* is independent of dequeue order for all forwarded events.
Maybe it's better not to make any attempts to explain what independent enqueue is, here?
Quoted 6 lines
lib/eventdev/rte_eventdev.h +3
-0+* +*/ +#define RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQ 4/** * Get an attribute from a port.
13/12/2024 05:33, [email protected]:
Quoted 7 lines
From: Pravin Pathak <[email protected]>
Independent Enqueue support is added to DPDK 24.11 Adding the attribute
rte_event_port_attr_get()was missing This commit adds it to retrieve port attributesSigned-off-by Pravin Pathak <[email protected]>
The title mentions dlb2 but the change is generic.
PATCH v2 1/1 eventdev: add port attribute for independent enqueue
In reply to [email protected]From: Pravin Pathak <[email protected]>
Independent Enqueue support is added to DPDK 24.11. Adding support for RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQ attribute to rte_event_port_attr_get() which was missing
--- lib/eventdev/rte_eventdev.c | 8 ++++++++ lib/eventdev/rte_eventdev.h | 4 ++++ 2 files changed, 12 insertions(+)
lib/eventdev/rte_eventdev.c +8 -0
@@ -880,6 +880,14 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id, uint32_t attr_id, *attr_value = !!(config &RTE_EVENT_PORT_CFG_DISABLE_IMPL_REL );break ; } +case RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQ : + { +uint32_t config; + + config = dev->data->ports_cfg[port_id].event_port_cfg; + *attr_value = !!(config &RTE_EVENT_PORT_CFG_INDEPENDENT_ENQ ); +break ; + }default :return -EINVAL ; };
lib/eventdev/rte_eventdev.h +4 -0
@@ -1318,6 +1318,10 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id,* Port attribute id for the implicit release disable attribute of the port. */ #define RTE_EVENT_PORT_ATTR_IMPLICIT_RELEASE_DISABLE 3 +/** +* Port attribute id for the Independent Enqueue feature. +*/ +#define RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQ 4/** * Get an attribute from a port.
Signature · 1 line
2.26.2
Jerin Jacob
AppliedRE: [EXTERNAL] [PATCH v2] eventdev: add port attribute for independent enqueue
Quoted 18 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Tuesday, December 17, 2024 2:03 AM
To: [email protected]
Cc: Jerin Jacob <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: [EXTERNAL] [PATCH v2] eventdev: add port attribute for independent enqueueFrom: Pravin Pathak <pravin. pathak@ intel. com> Independent Enqueue support is added to DPDK 24. 11. Adding support for
RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQattribute torte_event_port_attr_get()which was missing Signed-off-by: Pravin Pathak
Quoted 7 lines
From: Pravin Pathak <[email protected]>
Independent Enqueue support is added to DPDK 24.11. Adding support for
RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQattribute torte_event_port_attr_get()which was missingSigned-off-by Pravin Pathak <[email protected]>
Applied to dpdk-next-net-eventdev/for-main. Thanks
Quoted 45 lines
--- lib/eventdev/rte_eventdev.c | 8 ++++++++ lib/eventdev/rte_eventdev.h | 4 ++++ 2 files changed, 12 insertions(+)lib/eventdev/rte_eventdev.c index renamed from lib/eventdev/rte_eventdev.c +0
-0
ca295c87c4..61cff87b63100644lib/eventdev/rte_eventdev.c +8
-0@@ -880,6 +880,14 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id, uint32_t attr_id, *attr_value = !!(config &RTE_EVENT_PORT_CFG_DISABLE_IMPL_REL );break ; } +case RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQ : + { +uint32_t config; + + config = dev->data->ports_cfg[port_id].event_port_cfg; + *attr_value = !!(config &RTE_EVENT_PORT_CFG_INDEPENDENT_ENQ ); +break ; + }lib/eventdev/rte_eventdev.c +0
-0default :return -EINVAL ; };lib/eventdev/rte_eventdev.h index renamed from lib/eventdev/rte_eventdev.h +0
-0
fabd1490db..6400d6109f100644lib/eventdev/rte_eventdev.h +4
-0@@ -1318,6 +1318,10 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_tport_id, * Port attribute id for the implicit release disable attribute of the port. */ #define RTE_EVENT_PORT_ATTR_IMPLICIT_RELEASE_DISABLE 3 +/** +* Port attribute id for the Independent Enqueue feature. +*/ +#define RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQ 4/** * Get an attribute from a port.
--
2.26.2