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 B5695457C0; Wed, 14 Aug 2024 12:52:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 370E042E5F; Wed, 14 Aug 2024 12:50:56 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 3844A42E57 for ; Wed, 14 Aug 2024 12:50:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723632652; x=1755168652; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IjC3B5WvwoeLgZFJ+nk0OH7u64E5kytBvzrlKB67EHs=; b=TK2M1LN7Qm8McnjVIDCwv4DDwatO6DFov/iJellXNCIl9e2Yjo/+IAKg xSI6Sb/7u+GoamvSxF87I2eCUf5a3eHbveR0aFxcZiBY/lcxE9X9xB4iq tyklu4PENgXAElgykAuK1NVcKCS68OxJaJv4OK3vGJ3gC6sQLCJpCiSKV M145lmdYbreNOklGt3q9r90M9fAWNAR1MbaGYiDjbbLIae4G8WpfMflHt GFoqnW7F+jaMEynrr/6voetGyetoN+tChZ5ZxH1UzkOVoTIx1A6eI9ff+ GE7qVsMEWoKY0mXBC3NQteTYUcnJhGPDYv+pRW6dvE0EWXHeajUvtjFXe g==; X-CSE-ConnectionGUID: JhVp/v1cRKOkDAqEGMLFgw== X-CSE-MsgGUID: WBZ9AD4iSlSU0q3XEs9LrA== X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="44360413" X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="44360413" 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:52 -0700 X-CSE-ConnectionGUID: ET2CvJuURQiLDQ8ZqlzsgQ== X-CSE-MsgGUID: y/2JEA5wQ+ap9q7NIcZW9Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="96481804" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by orviesa001.jf.intel.com with ESMTP; 14 Aug 2024 03:50:51 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ferruh.yigit@amd.com, thomas@monjalon.net, mb@smartsharesystems.com, Bruce Richardson Subject: [PATCH v3 24/26] examples/vhost: use separate Rx and Tx queue limits Date: Wed, 14 Aug 2024 11:49:30 +0100 Message-ID: <20240814104933.14062-25-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 example app 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 --- examples/vhost/main.c | 2 +- examples/vhost/main.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 4391d88c3d..9c2f3a02eb 100644 --- a/examples/vhost/main.c +++ b/examples/vhost/main.c @@ -1891,7 +1891,7 @@ reset_dma(void) for (i = 0; i < RTE_MAX_VHOST_DEVICE; i++) { int j; - for (j = 0; j < RTE_MAX_QUEUES_PER_PORT * 2; j++) { + for (j = 0; j < RTE_MAX_ETHPORT_RX_QUEUES + RTE_MAX_ETHPORT_TX_QUEUES; j++) { dma_bind[i].dmas[j].dev_id = INVALID_DMA_ID; dma_bind[i].dmas[j].async_enabled = false; } diff --git a/examples/vhost/main.h b/examples/vhost/main.h index c986cbc5a9..374ba30ec6 100644 --- a/examples/vhost/main.h +++ b/examples/vhost/main.h @@ -99,7 +99,7 @@ struct dma_info { }; struct dma_for_vhost { - struct dma_info dmas[RTE_MAX_QUEUES_PER_PORT * 2]; + struct dma_info dmas[RTE_MAX_ETHPORT_RX_QUEUES + RTE_MAX_ETHPORT_TX_QUEUES]; uint32_t async_flag; }; -- 2.43.0