diff options
author | Benoît Ganne <bganne@cisco.com> | 2022-10-13 17:22:26 +0200 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2023-01-11 15:23:44 +0000 |
commit | 6a07348f4a5312310c01fdd5af937ce26580eb2d (patch) | |
tree | 9ed9307f1529a556231977e7c7ab661b7dbf434a /src/plugins/vmxnet3/cli.c | |
parent | eea6edcda896ccf8d5befed14eb95432a235644c (diff) |
pci: add option to force uio binding
Type: improvement
Change-Id: Ifea4badd58f7e2b5e792d7506f6747851a08587f
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/vmxnet3/cli.c')
-rw-r--r-- | src/plugins/vmxnet3/cli.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/plugins/vmxnet3/cli.c b/src/plugins/vmxnet3/cli.c index 039e9f3a75b..f751358262b 100644 --- a/src/plugins/vmxnet3/cli.c +++ b/src/plugins/vmxnet3/cli.c @@ -47,8 +47,10 @@ vmxnet3_create_command_fn (vlib_main_t * vm, unformat_input_t * input, args.enable_gso = 1; else if (unformat (line_input, "elog")) args.enable_elog = 1; + else if (unformat (line_input, "bind force")) + args.bind = VMXNET3_BIND_FORCE; else if (unformat (line_input, "bind")) - args.bind = 1; + args.bind = VMXNET3_BIND_DEFAULT; else if (unformat (line_input, "rx-queue-size %u", &size)) args.rxq_size = size; else if (unformat (line_input, "tx-queue-size %u", &size)) @@ -77,10 +79,11 @@ vmxnet3_create_command_fn (vlib_main_t * vm, unformat_input_t * input, /* *INDENT-OFF* */ VLIB_CLI_COMMAND (vmxnet3_create_command, static) = { .path = "create interface vmxnet3", - .short_help = "create interface vmxnet3 <pci-address>" - " [rx-queue-size <size>] [tx-queue-size <size>]" - " [num-tx-queues <number>] [num-rx-queues <number>] [bind]" - " [gso]", + .short_help = + "create interface vmxnet3 <pci-address>" + " [rx-queue-size <size>] [tx-queue-size <size>]" + " [num-tx-queues <number>] [num-rx-queues <number>] [bind [force]]" + " [gso]", .function = vmxnet3_create_command_fn, }; /* *INDENT-ON* */ |