From c746de9bafcba5ce46a09f461ea8a8627c530c16 Mon Sep 17 00:00:00 2001 From: Pawel Wodkowski Date: Tue, 3 Oct 2017 20:31:32 +0200 Subject: [PATCH] vhost: add --no-pci support. Change-Id: Id7cfb7ea3bbecf9ebe5db5f4b12cb20150168b04 Signed-off-by: Pawel Wodkowski Reviewed-on: https://review.gerrithub.io/381185 Tested-by: SPDK Automated Test System Reviewed-by: Dariusz Stojaczyk Reviewed-by: Pawel Kaminski Reviewed-by: Daniel Verkamp Reviewed-by: Jim Harris --- app/vhost/vhost.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/vhost/vhost.c b/app/vhost/vhost.c index 4d90a8113..8be8d5698 100644 --- a/app/vhost/vhost.c +++ b/app/vhost/vhost.c @@ -66,7 +66,7 @@ usage(char *executable_name) 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(" -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(" -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"); @@ -103,7 +103,7 @@ main(int argc, char *argv[]) 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) { case 'c': opts.config_file = optarg; @@ -123,6 +123,9 @@ main(int argc, char *argv[]) case 'm': opts.reactor_mask = optarg; break; + case 'N': + opts.no_pci = true; + break; case 'p': opts.master_core = strtoul(optarg, NULL, 10); break;