From ee8ba6877efb916b88255821f94ef33437724f75 Mon Sep 17 00:00:00 2001 From: Steven Luong Date: Thu, 14 Mar 2019 09:57:09 -0700 Subject: vmxnet3: auto bind support For creating the vmxnet3 interface, add the bind option to automatically bind the pci to vfio-pci module which removes the need for manual bind. Manual bind still works, should people prefer to go that route. Change-Id: Ife75926f8755d754a08dd0ecff0f1de326ad5ba1 Signed-off-by: Steven Luong --- src/plugins/vmxnet3/cli.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/vmxnet3/cli.c') diff --git a/src/plugins/vmxnet3/cli.c b/src/plugins/vmxnet3/cli.c index 0f0cf60fa40..776901e8ac2 100644 --- a/src/plugins/vmxnet3/cli.c +++ b/src/plugins/vmxnet3/cli.c @@ -44,6 +44,8 @@ vmxnet3_create_command_fn (vlib_main_t * vm, unformat_input_t * input, ; else if (unformat (line_input, "elog")) args.enable_elog = 1; + else if (unformat (line_input, "bind")) + args.bind = 1; else if (unformat (line_input, "rx-queue-size %u", &args.rxq_size)) ; else if (unformat (line_input, "tx-queue-size %u", &args.txq_size)) @@ -69,7 +71,7 @@ VLIB_CLI_COMMAND (vmxnet3_create_command, static) = { .path = "create interface vmxnet3", .short_help = "create interface vmxnet3 " "[rx-queue-size ] [tx-queue-size ]" - "[num-tx-queues ] [num-rx-queues ]", + "[num-tx-queues ] [num-rx-queues ] [bind]", .function = vmxnet3_create_command_fn, }; /* *INDENT-ON* */ -- cgit 1.2.3-korg