Skip to contentSkip to conversation

event/dlb2: add port attribute for independent enqueue

PATCH Superseded [email protected] 4 participants 5 messages Dec 13, 2024 – Jan 22, 2025

lore
Share & tools
lore
#0 lore raw

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
index ca295c87c4..61cff87b63 100644
@@ -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
index fabd1490db..4089c493a7 100644
@@ -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
#1 lore raw
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

---
  lib/eventdev/rte_eventdev.c | 8 ++++++++
  lib/eventdev/rte_eventdev.h | 6 ++++++
  2 files changed, 14 insertions(+)
lib/eventdev/rte_eventdev.c +8 -0
index ca295c87c4..61cff87b63 100644
@@ -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
index fabd1490db..4089c493a7 100644

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.
#3 lore raw

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
index ca295c87c4..61cff87b63 100644
@@ -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
index fabd1490db..6400d6109f 100644
@@ -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
Applied
#4 lore raw

RE: [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 enqueue

From: Pravin Pathak <pravin. pathak@ intel. com> 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 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_ENQ attribute to rte_event_port_attr_get() which was missing

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..61cff87b63 100644

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;
+	}
lib/eventdev/rte_eventdev.c +0 -0
 	default:
 		return -EINVAL;
 	};
lib/eventdev/rte_eventdev.h index renamed from lib/eventdev/rte_eventdev.h +0 -0

fabd1490db..6400d6109f 100644

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.
--
2.26.2