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 B6B1643E02; Thu, 4 Apr 2024 23:03:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8C53640A87; Thu, 4 Apr 2024 23:03:52 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by mails.dpdk.org (Postfix) with ESMTP id 9A0E1402BC for ; Thu, 4 Apr 2024 23:03:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712264630; x=1743800630; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Mm6Yiq4jUh1nzv15XIA2fDpieb0I+gM2iuGv539tzCY=; b=eMByaXcLu5s6nzXcglCZxmKcMh6/bluyr0yVn5B6eXq+XbUcW4bsW531 fDNonYyxTT+bvjC7S5ue8X08uw/WqfojtGNAUHE3WvuCRKHap88qLU01i Ei6bXVzBaLhzL0qy/SmBvvnQhGE9vXtdCa9IdnNNiq+dVVYrEz6RTi1Ii JV9Sgszpwmu8OrliPq3bfq85sBJtn1uCvGNAoveBzCqg3g2fx2zVvjmzP M9TFY1UCSkUEkWXO5wANJtHNG08fvMEYj+QT1HUXSx+KpxNcOeyJZZpM9 QOZnYMSGzlXCiPKrAaSEADwc15l4CtQ7DV9X39/695lsMnJo4gOdo3cmI g==; X-CSE-ConnectionGUID: WuwTDm/bSc2dVw6srBr9Rw== X-CSE-MsgGUID: dpNHdhBST1utpfGoXR5nPA== X-IronPort-AV: E=McAfee;i="6600,9927,11034"; a="11393383" X-IronPort-AV: E=Sophos;i="6.07,180,1708416000"; d="scan'208";a="11393383" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2024 14:03:45 -0700 X-CSE-ConnectionGUID: GJ4PRmfiRJyalmhEThZTmQ== X-CSE-MsgGUID: vhT7bItRQtGvcWf/n3BFEw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,180,1708416000"; d="scan'208";a="18864455" Received: from spr-npg-bds1-eec2.sn.intel.com (HELO spr-npg-bds1-eec2..) ([10.233.181.123]) by fmviesa010.fm.intel.com with ESMTP; 04 Apr 2024 14:03:45 -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 v1 1/3] bbdev: new queue stat for available enqueue depth Date: Thu, 4 Apr 2024 14:04:45 -0700 Message-Id: <20240404210447.1915517-2-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240404210447.1915517-1-nicolas.chautru@intel.com> References: <20240404210447.1915517-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 --- lib/bbdev/rte_bbdev.h | 2 ++ 1 file changed, 2 insertions(+) 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