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 97038457BB; Wed, 14 Aug 2024 09:50:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C0ED7427BC; Wed, 14 Aug 2024 09:49:11 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by mails.dpdk.org (Postfix) with ESMTP id 1D09C4026C for ; Tue, 13 Aug 2024 18:00:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723564848; x=1755100848; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vsik0F6ayLvSLIDX0XaFAyvAK7W7MSyu/qYtzAPqMhE=; b=GkQQinhSmudikwR5+fLmadXtxK3Y3gCK/pYg0CQHcnzsWbqMuAXaAH2O 8SB1fYu11aQ1BdU4Ug4e43k99gniEhrtdZ/XYGGKA4FgToQa3uvxFQKg0 vlVcCZLDs5QshdUCXhfIZghqUYY8e/kUOKzczTUBAusIMLEKe/1Cp37MP zzPJOXncCWeT5uJSBIgd6wZahhiE6Fl48CQVmRba/BeaLpJuJOJ4jqXvm R9dv9zNsOXKbC6egdPTGHTEF8csS+1JrgmASY/SR86N/4ZzglihagtvDM UB7WqsP857p6QU7eiFY8aD1g3Bq6JFlqer3ddLVibU9bKt+IBhKNb1TH8 A==; X-CSE-ConnectionGUID: BRdrOMAZSvGBJGLl4Z9c3Q== X-CSE-MsgGUID: y1TNroOBRRyF3GyJgvDltA== X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="12987897" X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="12987897" 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:48 -0700 X-CSE-ConnectionGUID: cTvCylhJRaSpsdQitRfMMA== X-CSE-MsgGUID: zDycJV5iRhCESztNV+IKVw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="58406708" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by fmviesa007.fm.intel.com with ESMTP; 13 Aug 2024 09:00:46 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ferruh.yigit@amd.com, thomas@monjalon.net, mb@smartsharesystems.com, Bruce Richardson , Bruce Richardson Subject: [RFC PATCH v2 24/26] examples/vhost: use separate Rx and Tx queue limits Date: Tue, 13 Aug 2024 17:00:01 +0100 Message-ID: <20240813160003.423935-25-bruce.richards@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240813160003.423935-1-bruce.richards@intel.com> References: <20240812132910.162252-1-bruce.richardson@intel.com> <20240813160003.423935-1-bruce.richards@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 14 Aug 2024 09:48:35 +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 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 --- 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