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 D43D6457BB; Wed, 14 Aug 2024 09:48:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AD39940EE3; Wed, 14 Aug 2024 09:48:37 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by mails.dpdk.org (Postfix) with ESMTP id E4C894026C for ; Tue, 13 Aug 2024 18:00:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723564812; x=1755100812; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4bsh9QL2BQAHT/+G31mDn7pPvhhNaJn8DXr+QYGPnTw=; b=ZW08SmSVXOYlUue2EHSdU3u7dV2oZ00tKiHI79Yudm1Q9nIewrdnkcEM 2/I/9Qi51mUwcjS1tX/q1R6lQT9mv/HEJs2Qwef1w58gV3odMCCsQRUh1 VicEBqGy4tdYdT04xQGpcaWmAj0uHwIZS8XFeSLy7zswhARoZ0FAjdOjL WFjOHcNGEUhVI8ZmUp4w3D582cGhaRdtvB1WGnmCQ/xO/FtTIpQI/qBUk m5EyT7K8NIwX9AQTvlBMv5fJ/oAC/Z9ejCk9FZ/ySGVnJ/tHzdwiAZCKX kQh2ZHApWjZrmzo9xW/A0SSkYpj7JCvT6Q4F29qnUZuIsZsNLIGkpFT9H Q==; X-CSE-ConnectionGUID: O24Ou2YySQaDEf39C/6ESQ== X-CSE-MsgGUID: UyJF4VPUQWqgqO/C4lsJFA== X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="12987787" X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="12987787" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2024 09:00:11 -0700 X-CSE-ConnectionGUID: pVBZpO3PSny6REjFHiMtSg== X-CSE-MsgGUID: qY/8fXSKT5u+KkI1PH0k5w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="58406065" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by fmviesa007.fm.intel.com with ESMTP; 13 Aug 2024 09:00:09 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ferruh.yigit@amd.com, thomas@monjalon.net, mb@smartsharesystems.com, Bruce Richardson Subject: [RFC PATCH v2 00/26] add meson config options for queues per port Date: Tue, 13 Aug 2024 16:59:37 +0100 Message-ID: <20240813160003.423935-1-bruce.richards@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240812132910.162252-1-bruce.richardson@intel.com> References: <20240812132910.162252-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 14 Aug 2024 09:48:34 +0200 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 There are a number of issues with the current RTE_MAX_QUEUES_PER_PORT setting in DPDK that are addressed by this patchset: * The name does not make it clear that this is intended as an ethdev-only setting * A number of other libraries are using this define rather than having more relevant defines for the particular usecase. * The define is hard-coded in DPDK source code and is not adjustable via a build-time/meson option * Because of the lack of configurability, the max is therefore set to a conservatively-high value, wasting memory. * There is an assumption that the number of Rx queues and Tx queues should have the same maximum value. Depending on application, it may be desirable to have fan-in with multiple Rx queues e.g. for classification/filtering, feed a single Tx queue, or the opposite where, e.g. for QoS Tx scheduling, a few Rx queues feeds a very large number of Tx queues. This patchset therefore addresses these by: * replacing the single define for max queues with independent defines for Rx and Tx queues. * adjusts the name to ensure that it is clear the defines are for ethports only. [ethports being used in the RTE_MAX_ETHPORTS setting]. * replaces occurances of RTE_MAX_QUEUES_PER_PORT with appropriate defines for non-ethdev use cases * replaces all other internal occurances of the define with the new per-Rx and per-Tx definitions. * adds meson config options to allow build-time configuration of the max Rx and Tx queue values. Naming Note: * The new meson config options are called "max_ethport_rx_queues" and "max_ethport_tx_queues" so that in the meson options list they appear alphabetically beside the existing "max_ethports" option. * For naming consistency, the new C defines are therefore RTE_MAX_ETHPORT_RX_QUEUES and RTE_MAX_ETHPORT_TX_QUEUES. V2: * What was a single patch with "3 insertions(+), 1 deletion(-)" has now become a 26-patch set! :-) * Created separate Rx and Tx defines * Ensured that the name makes it clear that the define is for ethdev * When updating internal use, created one patch per component for easier maintainer review. In most cases it was obvious whether Rx or Tx define should be used, but a few cases were less clear. * Added documentation updates for the changes (release notes and deprecation notice), spread across 3 of the patches. Bruce Richardson (26): cryptodev: remove use of ethdev max queues definition eventdev: remove use of ethev queues define app/test-bbdev: remove use of ethdev queue count value config: add separate defines for max Rx and Tx queues ethdev: use separate Rx and Tx queue limits bpf: use separate Rx and Tx queue limits latencystats: use separate Rx and Tx queue limits pdump: use separate Rx and Tx queue limits power: use separate Rx and Tx queue limits net/af_xdp: use separate Rx and Tx queue limits net/cnxk: use separate Rx and Tx queue limits net/failsafe: use separate Rx and Tx queue limits net/hns3: use separate Rx and Tx queue limits net/mlx5: use separate Rx and Tx queue limits net/null: use separate Rx and Tx queue limits net/sfc: use separate Rx and Tx queue limits net/thunderx: use separate Rx and Tx queue limits net/vhost: use separate Rx and Tx queue limits app/dumpcap: use separate Rx and Tx queue limits app/test-pmd: use separate Rx and Tx queue limits examples/ipsec-secgw: use separate Rx and Tx queue limits examples/l3fwd-power: use separate Rx and Tx queue limits examples/l3fwd: use separate Rx and Tx queue limits examples/vhost: use separate Rx and Tx queue limits config: make queues per port a meson config option config: add computed max queues define for compatibility app/dumpcap/main.c | 2 +- app/test-bbdev/test_bbdev.c | 4 ++-- app/test-pmd/testpmd.c | 7 ++++--- app/test-pmd/testpmd.h | 16 ++++++++-------- config/meson.build | 10 ++++++++++ config/rte_config.h | 2 +- doc/guides/rel_notes/deprecation.rst | 11 +++++++++++ doc/guides/rel_notes/release_24_11.rst | 21 +++++++++++++++++++++ drivers/net/af_xdp/rte_eth_af_xdp.c | 2 +- drivers/net/cnxk/cnxk_ethdev_ops.c | 4 ++-- drivers/net/failsafe/failsafe_ops.c | 4 ++-- drivers/net/hns3/hns3_tm.c | 2 +- drivers/net/mlx5/mlx5_flow.c | 2 +- drivers/net/mlx5/mlx5_flow_hw.c | 2 +- drivers/net/null/rte_eth_null.c | 4 ++-- drivers/net/sfc/sfc_sw_stats.c | 6 ++++-- drivers/net/thunderx/nicvf_ethdev.c | 2 +- drivers/net/vhost/rte_eth_vhost.c | 7 ++++--- examples/ipsec-secgw/ipsec-secgw.c | 2 +- examples/ipsec-secgw/ipsec.c | 2 +- examples/l3fwd-power/main.c | 2 +- examples/l3fwd-power/perf_core.c | 2 +- examples/l3fwd/main.c | 2 +- examples/vhost/main.c | 2 +- examples/vhost/main.h | 2 +- lib/bpf/bpf_pkt.c | 3 ++- lib/cryptodev/cryptodev_pmd.c | 4 ++-- lib/ethdev/ethdev_driver.h | 8 ++++---- lib/ethdev/ethdev_private.c | 24 ++++++++++++++---------- lib/ethdev/rte_ethdev.c | 16 +++++++--------- lib/ethdev/rte_ethdev.h | 18 +++++++++--------- lib/eventdev/eventdev_private.c | 2 +- lib/latencystats/rte_latencystats.c | 4 ++-- lib/pdump/rte_pdump.c | 18 +++++++++--------- lib/power/rte_power_pmd_mgmt.c | 4 ++-- meson_options.txt | 4 ++++ 36 files changed, 140 insertions(+), 87 deletions(-) -- 2.43.0