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 E8E6DA0C4B; Wed, 3 Nov 2021 03:25:28 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B5FD940E0F; Wed, 3 Nov 2021 03:25:28 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 3FBAE40E03; Wed, 3 Nov 2021 03:25:26 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10156"; a="231670455" X-IronPort-AV: E=Sophos;i="5.87,204,1631602800"; d="scan'208";a="231670455" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2021 19:25:24 -0700 X-IronPort-AV: E=Sophos;i="5.87,204,1631602800"; d="scan'208";a="500855677" Received: from unknown (HELO localhost.localdomain) ([10.240.183.109]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2021 19:25:20 -0700 From: Wenwu Ma To: dev@dpdk.org Cc: maxime.coquelin@redhat.com, chenbo.xia@intel.com, ferruh.yigit@intel.com, cheng1.jiang@intel.com, jiayu.hu@intel.com, yvonnex.yang@intel.com, Wenwu Ma , stable@dpdk.org Date: Wed, 3 Nov 2021 14:17:19 +0000 Message-Id: <20211103141719.221486-1-wenwux.ma@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211015164832.8865-1-wenwux.ma@intel.com> References: <20211015164832.8865-1-wenwux.ma@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4] examples/vhost: fix failure to launch dpdk-vhost 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 Sender: "dev" When the default max queue value of vhost is 128, dpdk-vhost will fail to launch with a 40G i40e port due to the mbuf allocation of the port queue fails. Therefore, we modify the default value of max queue from 128 to 512, it will ensure that there are enough mbufs. Fixes: 4796ad63ba1f ("examples/vhost: import userspace vhost application") Cc: stable@dpdk.org Signed-off-by: Wenwu Ma Reviewed-by: Maxime Coquelin --- examples/vhost/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index bc3d71c898..36969a4de5 100644 --- a/examples/vhost/main.c +++ b/examples/vhost/main.c @@ -29,7 +29,7 @@ #include "main.h" #ifndef MAX_QUEUES -#define MAX_QUEUES 128 +#define MAX_QUEUES 512 #endif /* the maximum number of external ports supported */ -- 2.25.1