From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 7E54523A for ; Thu, 24 May 2018 14:07:38 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 May 2018 05:07:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,436,1520924400"; d="scan'208";a="57210308" Received: from dpdk-xiao-1.sh.intel.com ([10.67.111.90]) by fmsmga004.fm.intel.com with ESMTP; 24 May 2018 05:07:36 -0700 From: Xiao Wang To: maxime.coquelin@redhat.com Cc: dev@dpdk.org, marko.kovacevic@intel.com, Xiao Wang Date: Thu, 24 May 2018 20:05:07 +0800 Message-Id: <20180524120507.5089-1-xiao.w.wang@intel.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180524061115.104319-1-xiao.w.wang@intel.com> References: <20180524061115.104319-1-xiao.w.wang@intel.com> Subject: [dpdk-dev] [PATCH v2] doc: add note for MAX QUEUES macro in vhost sample X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2018 12:07:38 -0000 If the NIC has a queue number larger than 128, then we need to change the ``MAX_QUEUES`` to a larger number to make sure we allocate a big enough memory pool for device setup. Signed-off-by: Xiao Wang Acked-by: Maxime Coquelin Acked-by: Marko Kovacevic --- v2: - Fix unexpected indentation warning. --- doc/guides/sample_app_ug/vhost.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/guides/sample_app_ug/vhost.rst b/doc/guides/sample_app_ug/vhost.rst index 5e7f24c4e..9112e7897 100644 --- a/doc/guides/sample_app_ug/vhost.rst +++ b/doc/guides/sample_app_ug/vhost.rst @@ -181,3 +181,14 @@ Common Issues * Failed to build DPDK in VM Make sure "-cpu host" QEMU option is given. + +* Device start fails if NIC's max queues > the default number of 128 + + mbuf pool size is dependent on the MAX_QUEUES configuration, if NIC's + max queue number is larger than 128, device start will fail due to + insufficient mbuf. + + Change the default number to make it work as below, just set the number + according to the NIC's property. :: + + make EXTRA_CFLAGS="-DMAX_QUEUES=320" -- 2.15.1