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 D3171457C0; Wed, 14 Aug 2024 12:51:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AED5A42DD3; Wed, 14 Aug 2024 12:50:40 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 877CC42DC7 for ; Wed, 14 Aug 2024 12:50:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723632638; x=1755168638; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tl9YqIebl3lDHLNYHLdgRa86MBUeFY40sR+CTe6s6IQ=; b=CatEDGAFxoRv/Otf/ZYOySPxBaGwAcV0/jcUWQRcQKH2zqqPRfGyFwVw 7bbTbAM5OMti6K7/DfLcPHHuFwkUlbjNDHFNojd8WAm8BgTtncsW0Et3r C2FudVVFy2a02YPBxy7P9ZIBW9YUmjpTk2w0OstAVY8WEqtsFPgaCT165 8UyRd6v4HzKB0MstvcznhihYXMMr3H0ptbg/XN3ZHCBBa6bHX0waS40Z/ mS8aqUjKHRB9foNq52OGxgCVRz+LOCL1kR803pjs+w3qvwTMbxkhALUGn +VULZOSxeV831hG3QNjlUo2r4dTsNXh9pVmh9ADvVqm6OQ0Z3lxVHinGE g==; X-CSE-ConnectionGUID: xKKXL3pVS4eGusW0HfzzRg== X-CSE-MsgGUID: DXPSMKLKTrSW3gnsgVAWNQ== X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="44360326" X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="44360326" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2024 03:50:37 -0700 X-CSE-ConnectionGUID: hj5W9wMWRkqm5j9JjJXRfA== X-CSE-MsgGUID: uN4Pem1EQdaWDFNUQFYCuQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="96481741" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by orviesa001.jf.intel.com with ESMTP; 14 Aug 2024 03:50:36 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ferruh.yigit@amd.com, thomas@monjalon.net, mb@smartsharesystems.com, Bruce Richardson Subject: [PATCH v3 14/26] net/mlx5: use separate Rx and Tx queue limits Date: Wed, 14 Aug 2024 11:49:20 +0100 Message-ID: <20240814104933.14062-15-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240814104933.14062-1-bruce.richardson@intel.com> References: <20240812132910.162252-1-bruce.richardson@intel.com> <20240814104933.14062-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 Update driver to use the new defines RTE_MAX_ETHPORT_TX_QUEUES and RTE_MAX_ETHPORT_RX_QUEUES rather than the old define RTE_MAX_QUEUES_PER_PORT. Signed-off-by: Bruce Richardson Acked-by: Morten Brørup --- drivers/net/mlx5/mlx5_flow.c | 2 +- drivers/net/mlx5/mlx5_flow_hw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 72fb3a55ba..3eaea66920 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -7344,7 +7344,7 @@ flow_legacy_list_create(struct rte_eth_dev *dev, enum mlx5_flow_type type, struct rte_flow_item items[MLX5_MAX_SPLIT_ITEMS]; uint8_t buffer[2048]; } items_tx; - struct mlx5_rte_flow_item_sq sq_specs[RTE_MAX_QUEUES_PER_PORT]; + struct mlx5_rte_flow_item_sq sq_specs[RTE_MAX_ETHPORT_RX_QUEUES]; struct mlx5_flow_expand_rss *buf = &expand_buffer.buf; struct mlx5_flow_rss_desc *rss_desc; const struct rte_flow_action *p_actions_rx; diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c index d243b59b71..f9514ddd4f 100644 --- a/drivers/net/mlx5/mlx5_flow_hw.c +++ b/drivers/net/mlx5/mlx5_flow_hw.c @@ -10978,7 +10978,7 @@ flow_hw_create_ctrl_rx_rss_template(struct rte_eth_dev *dev, struct rte_flow_actions_template_attr attr = { .ingress = 1, }; - uint16_t queue[RTE_MAX_QUEUES_PER_PORT]; + uint16_t queue[RTE_MAX_ETHPORT_RX_QUEUES]; struct rte_flow_action_rss rss_conf = { .func = RTE_ETH_HASH_FUNCTION_DEFAULT, .level = 0, -- 2.43.0