vhost: add --no-pci support.

Change-Id: Id7cfb7ea3bbecf9ebe5db5f4b12cb20150168b04
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-on: https://review.gerrithub.io/381185
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-by: Pawel Kaminski <pawelx.kaminski@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Pawel Wodkowski 2017-10-03 20:31:32 +02:00 committed by Daniel Verkamp
parent 3c3281de97
commit c746de9baf

View File

@ -66,7 +66,7 @@ usage(char *executable_name)
printf(" -e mask tracepoint group mask for spdk trace buffers (default: 0x0)\n"); printf(" -e mask tracepoint group mask for spdk trace buffers (default: 0x0)\n");
printf(" -f pidfile save pid to file under given path\n"); printf(" -f pidfile save pid to file under given path\n");
printf(" -m mask reactor core mask (default: 0x1)\n"); printf(" -m mask reactor core mask (default: 0x1)\n");
printf(" -n channel number of memory channels used for DPDK\n"); printf(" -N pass --no-pci to DPDK\n");
printf(" -p core master (primary) core for DPDK\n"); printf(" -p core master (primary) core for DPDK\n");
printf(" -s size memory size in MB for DPDK (default: %dMB)\n", defaults.mem_size); printf(" -s size memory size in MB for DPDK (default: %dMB)\n", defaults.mem_size);
printf(" -S dir directory where to create vhost sockets (default: pwd)\n"); printf(" -S dir directory where to create vhost sockets (default: pwd)\n");
@ -103,7 +103,7 @@ main(int argc, char *argv[])
vhost_app_opts_init(&opts); vhost_app_opts_init(&opts);
while ((ch = getopt(argc, argv, "c:de:f:m:p:qs:S:t:h")) != -1) { while ((ch = getopt(argc, argv, "c:de:f:m:Np:qs:S:t:h")) != -1) {
switch (ch) { switch (ch) {
case 'c': case 'c':
opts.config_file = optarg; opts.config_file = optarg;
@ -123,6 +123,9 @@ main(int argc, char *argv[])
case 'm': case 'm':
opts.reactor_mask = optarg; opts.reactor_mask = optarg;
break; break;
case 'N':
opts.no_pci = true;
break;
case 'p': case 'p':
opts.master_core = strtoul(optarg, NULL, 10); opts.master_core = strtoul(optarg, NULL, 10);
break; break;