examples/vhost: reduce number of hugepages needed
authorBernard Iremonger <bernard.iremonger@intel.com>
Thu, 10 Dec 2015 15:49:17 +0000 (15:49 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 10 Dec 2015 21:33:54 +0000 (22:33 +0100)
commitf17eb179046962fdc29c3609b1c9bd46bfefa4f5
treecb78ba7a211bde222fc315765956b75e89637954
parent5c258942ee6d3c0fba14168e3568ba25eb9addc0
examples/vhost: reduce number of hugepages needed

Add #ifndef MAX_QUEUES to change MAX_QUEUES at compile time if needed.
Change MAX_QUEUES from 512 to 128 to reduce the number of hugepages
required by the vhost-switch program.

To change MAX_QUEUES add '-D MAX_QUEUES=512' to the EXTRA_CFLAGS variable,
before building the application.

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
examples/vhost/main.c