summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Wang <xiao.w.wang@intel.com>2018-05-24 20:05:07 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-05-25 17:07:40 +0200
commitcde83b8bd726d3132404852ba4f6351f56fb9c76 (patch)
tree7abf40baf55a5bf3ad8db7b563dfb1c4412b1681
parentf42deafa44524562efa3f0373bf27f6adef382f5 (diff)
downloaddpdk-cde83b8bd726d3132404852ba4f6351f56fb9c76.zip
dpdk-cde83b8bd726d3132404852ba4f6351f56fb9c76.tar.gz
dpdk-cde83b8bd726d3132404852ba4f6351f56fb9c76.tar.xz
doc: add note for maximum queues setting in vhost sample
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 <xiao.w.wang@intel.com> Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com> Acked-by: Marko Kovacevic <marko.kovacevic@intel.com>
-rw-r--r--doc/guides/sample_app_ug/vhost.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/guides/sample_app_ug/vhost.rst b/doc/guides/sample_app_ug/vhost.rst
index 5e7f24c..9112e78 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"