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 24C73457C0; Wed, 14 Aug 2024 12:51:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2B47242DBB; Wed, 14 Aug 2024 12:50:36 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 3952B42DA3 for ; Wed, 14 Aug 2024 12:50:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723632633; x=1755168633; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=uv6bco8l6BpJUxRkzjzy5e8D4MGy5Zs/cqZarlX1tH4=; b=auSKo5uxDVzRvvRzqwr6jmwZrjuAqcZnjwDOg5XXmvNx8zOoMeDu+CBQ fFMM5N+OPX27myE0DvOe4qzsxvBCBScDLWxUg0e4UhEoxIG9aWeKvGWlA 9e3IPtu3ssrAsQHX1ri4ePBqAW1zP0xC/jvSrIuJ2Gy/UN2+ayKGrDHZu XC9jjow8l007jrhq6i1jso5mU+xTtJFQkhfdssw5VEQIYNE4TNVcCRG6e 9RIlJgk03qgfFfAsG8hn5exAEfOaNguCF575b9MCSIQ4bJMdCJhtfCRfM XWVWPIO6g24JAYB02xFX2kB02wdWfinYC+DGyFSrYErsfuZYZGIlDySYh w==; X-CSE-ConnectionGUID: VDUZP95HR8SBvdWudO+jiA== X-CSE-MsgGUID: n3nG4LJnRKGWmAJ1VjnBzw== X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="44360307" X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="44360307" 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:33 -0700 X-CSE-ConnectionGUID: Ff3d54ajSwK4/zcNjmP4ag== X-CSE-MsgGUID: 2Kh42cZJThqu4erN2fNPnA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="96481722" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by orviesa001.jf.intel.com with ESMTP; 14 Aug 2024 03:50:32 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ferruh.yigit@amd.com, thomas@monjalon.net, mb@smartsharesystems.com, Bruce Richardson Subject: [PATCH v3 11/26] net/cnxk: use separate Rx and Tx queue limits Date: Wed, 14 Aug 2024 11:49:17 +0100 Message-ID: <20240814104933.14062-12-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/cnxk/cnxk_ethdev_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/cnxk/cnxk_ethdev_ops.c b/drivers/net/cnxk/cnxk_ethdev_ops.c index b1093dd584..b587e32e24 100644 --- a/drivers/net/cnxk/cnxk_ethdev_ops.c +++ b/drivers/net/cnxk/cnxk_ethdev_ops.c @@ -16,8 +16,8 @@ cnxk_nix_info_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *devinfo) devinfo->min_rx_bufsize = NIX_MIN_HW_FRS + RTE_ETHER_CRC_LEN; devinfo->max_rx_pktlen = max_rx_pktlen; - devinfo->max_rx_queues = RTE_MAX_QUEUES_PER_PORT; - devinfo->max_tx_queues = RTE_MAX_QUEUES_PER_PORT; + devinfo->max_rx_queues = RTE_MAX_ETHPORT_RX_QUEUES; + devinfo->max_tx_queues = RTE_MAX_ETHPORT_TX_QUEUES; devinfo->max_mac_addrs = dev->max_mac_entries; devinfo->max_vfs = pci_dev->max_vfs; devinfo->max_mtu = devinfo->max_rx_pktlen - CNXK_NIX_L2_OVERHEAD; -- 2.43.0