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 6873E457A5; Tue, 13 Aug 2024 01:39:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 57CD340A77; Tue, 13 Aug 2024 01:39:50 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by mails.dpdk.org (Postfix) with ESMTP id BD1FD402AE for ; Tue, 13 Aug 2024 01:39:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723505988; x=1755041988; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BHgfaWeFJ9iZAoBWmi5Lwqj3RgAQ2ShUQZi5df4+Tfs=; b=Czjtx+CnUMnoqhcbaHrPFWFeJRYuNClidPh6XSF1LUeCsbsjy8QvEvYH poQEU3oWQY8lHr7lBaDt2Kwe4SbOSBJ0/feYtJbvNVKOazA7BcTpLpr+K 9050NO5eGo5pM8NJmdDzCGKAdSYRFVoSafS5IA9hPrBl7uMdrQf8bguZX dslcjD/2d55t0Gh5zspUhER+h0ApK0kP/7ocfcOnZMgOfCFPn2HWjdjSx VJF0Jz/VAKgdpgyjCZCkDyPaGuXLDR6fC9J0FNs0uiowLiM0dnVtZOWz8 jrNTOwVgIaliIP66yPTJN/qKsjFuCZAozkWD5VYwwOj6sLUFoFw+8SrHx A==; X-CSE-ConnectionGUID: fqqtPESCThO+AnL7kZmjbQ== X-CSE-MsgGUID: dFYqjiHnRG21peZuDxCKsA== X-IronPort-AV: E=McAfee;i="6700,10204,11162"; a="32323300" X-IronPort-AV: E=Sophos;i="6.09,284,1716274800"; d="scan'208";a="32323300" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2024 16:39:47 -0700 X-CSE-ConnectionGUID: gF4upjw1SLqBGeqdwPb0uA== X-CSE-MsgGUID: VB1YKCyKTluS4sXhtGMdSg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,284,1716274800"; d="scan'208";a="62630016" Received: from spr-npg-bds1-eec2.sn.intel.com (HELO spr-npg-bds1-eec2..) ([10.233.181.123]) by fmviesa003.fm.intel.com with ESMTP; 12 Aug 2024 16:39:46 -0700 From: Nicolas Chautru To: dev@dpdk.org, maxime.coquelin@redhat.com Cc: hemant.agrawal@nxp.com, david.marchand@redhat.com, hernan.vargas@intel.com, Nicolas Chautru Subject: [PATCH v2 1/3] bbdev: new queue stat for available enqueue depth Date: Mon, 12 Aug 2024 16:41:59 -0700 Message-Id: <20240812234201.2196633-2-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240812234201.2196633-1-nicolas.chautru@intel.com> References: <20240812234201.2196633-1-nicolas.chautru@intel.com> 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 Capturing additional queue stats counter for the depth of enqueue batch still available on the given queue. This can help application to monitor that depth at run time. Signed-off-by: Nicolas Chautru --- doc/guides/rel_notes/release_24_11.rst | 3 +++ lib/bbdev/rte_bbdev.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/release_24_11.rst b/doc/guides/rel_notes/release_24_11.rst index 0ff70d9057..a45b9b2dc6 100644 --- a/doc/guides/rel_notes/release_24_11.rst +++ b/doc/guides/rel_notes/release_24_11.rst @@ -88,6 +88,9 @@ API Changes ABI Changes ----------- + * bbdev: Structure ``rte_bbdev_stats`` was updated to add new parameter + to optionally report number of enqueue batch available ``enqueue_depth_avail``. + .. This section should contain ABI changes. Sample format: * sample: Add a short 1-2 sentence description of the ABI change diff --git a/lib/bbdev/rte_bbdev.h b/lib/bbdev/rte_bbdev.h index 0cbfdd1c95..25514c58ac 100644 --- a/lib/bbdev/rte_bbdev.h +++ b/lib/bbdev/rte_bbdev.h @@ -283,6 +283,8 @@ struct rte_bbdev_stats { * bbdev operation */ uint64_t acc_offload_cycles; + /** Available number of enqueue batch on that queue. */ + uint16_t enqueue_depth_avail; }; /** -- 2.34.1