From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 65F9FDE3 for ; Thu, 24 May 2018 12:25:38 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 May 2018 03:25:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,436,1520924400"; d="scan'208";a="58100024" Received: from irsmsx110.ger.corp.intel.com ([163.33.3.25]) by fmsmga001.fm.intel.com with ESMTP; 24 May 2018 03:25:36 -0700 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.251]) by irsmsx110.ger.corp.intel.com ([169.254.15.125]) with mapi id 14.03.0319.002; Thu, 24 May 2018 11:25:35 +0100 From: "Kovacevic, Marko" To: "Wang, Xiao W" , "maxime.coquelin@redhat.com" CC: "dev@dpdk.org" , "Wang, Zhihong" , "Wang, Xiao W" Thread-Topic: [dpdk-dev] [PATCH] doc: add note for MAX QUEUES macro in vhost sample Thread-Index: AQHT8yZxsG/gHqEqiUeZJtrjcir3WaQ+rAtA Date: Thu, 24 May 2018 10:25:34 +0000 Message-ID: <6DC05C7C5F25994B81B3F2F214251F6638E09E@IRSMSX104.ger.corp.intel.com> References: <20180524061115.104319-1-xiao.w.wang@intel.com> In-Reply-To: <20180524061115.104319-1-xiao.w.wang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTQ0MzM0ODItYmFjMC00Nzg3LThhODQtM2IyYWNmM2ZkYzcxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6ImU2UTJkTkRBWmk4MndXOTdnTUZvK1lxWGNrWE9FRFwvbFJnTEJuXC9zTk1DWT0ifQ== x-ctpclassification: CTP_NT x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] 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 10:25: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. >=20 > Signed-off-by: Xiao Wang > --- > doc/guides/sample_app_ug/vhost.rst | 10 ++++++++++ > 1 file changed, 10 insertions(+) >=20 > diff --git a/doc/guides/sample_app_ug/vhost.rst > b/doc/guides/sample_app_ug/vhost.rst > index 5e7f24c4e..88905e404 100644 > --- a/doc/guides/sample_app_ug/vhost.rst > +++ b/doc/guides/sample_app_ug/vhost.rst > @@ -181,3 +181,13 @@ Common Issues > * Failed to build DPDK in VM >=20 > 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=3D"-DMAX_QUEUES=3D320" Build fails: doc/guides/sample_app_ug/vhost.rst:193: WARNING: Unexpected in= dentation Id suggest making it like below: Change the default number to make it work as below, just set the number according to the NIC's property. :: make EXTRA_CFLAGS=3D"-DMAX_QUEUES=3D320" You can add my ack when changes are made. Marko K. Acked-by: Marko Kovacevic