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 7F57645E89; Fri, 13 Dec 2024 05:33:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1230440263; Fri, 13 Dec 2024 05:33:07 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by mails.dpdk.org (Postfix) with ESMTP id 5076C4003C for ; Fri, 13 Dec 2024 05:33:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1734064385; x=1765600385; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=uNScyhD/mGemebK213KcxGUIpDOJce2SCz+RMeIb+5k=; b=C0UoLvPMCxoqyAE10qLXfmB682yv937aVgTgGzn7mm3J+dMvnVZTNuN9 HvkehuEJUh4m8/4mf+MJIeUQzdpTZKlB7jE2EEWVEHlGeYPup4c0CIBa2 F4dO8NmvJAlmbfqRGsf5Fk19BA+3Idn/SZSSWvzjFACdpoyKJHK3Kn8KQ d7qubsPVjZM/XP3KkpstqYEf1SZ12PRXWHH/uETU0xFaAVR9ChNvCE06p bCIbBV2dyBdecxT+w26B5hoZdPlHF5fBHpi+defrk0CKliKj+64he9L0x UHjzkwjSyfE/f3pWAxaYDHwmua1p8o+h7iJ87qKg9aXBGyy4wIFIpjimk w==; X-CSE-ConnectionGUID: R1Rw1EFCT2yGXhIwt7cv5g== X-CSE-MsgGUID: RmgVO78YRci6jp4Q2uu49Q== X-IronPort-AV: E=McAfee;i="6700,10204,11284"; a="34235206" X-IronPort-AV: E=Sophos;i="6.12,230,1728975600"; d="scan'208";a="34235206" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2024 20:33:04 -0800 X-CSE-ConnectionGUID: nvUagTO0TNWm55c/l6WRLw== X-CSE-MsgGUID: qmEDMRLrSHi/R+3MLsnVGA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,230,1728975600"; d="scan'208";a="101458318" Received: from awylogin02.aw.intel.com ([10.228.148.185]) by orviesa004.jf.intel.com with ESMTP; 12 Dec 2024 20:33:02 -0800 From: pravin.pathak@intel.com To: dev@dpdk.org Cc: jerinj@marvell.com, mike.ximing.chen@intel.com, bruce.richardson@intel.com, thomas@monjalon.net, david.marchand@redhat.com, tirthendu.sarkar@intel.com, Pravin Pathak Subject: [PATCH v1] event/dlb2: add port attribute for independent enqueue Date: Thu, 12 Dec 2024 23:33:00 -0500 Message-Id: <20241213043300.18015-1-pravin.pathak@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Pravin Pathak 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 Signed-off-by: Pravin Pathak --- lib/eventdev/rte_eventdev.c | 8 ++++++++ lib/eventdev/rte_eventdev.h | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c index ca295c87c4..61cff87b63 100644 --- a/lib/eventdev/rte_eventdev.c +++ b/lib/eventdev/rte_eventdev.c @@ -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; }; diff --git a/lib/eventdev/rte_eventdev.h b/lib/eventdev/rte_eventdev.h index fabd1490db..4089c493a7 100644 --- a/lib/eventdev/rte_eventdev.h +++ b/lib/eventdev/rte_eventdev.h @@ -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. -- 2.26.2