aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/avf/cli.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-12-23 11:19:30 +0100
committerDamjan Marion <damarion@cisco.com>2018-12-23 11:45:49 +0100
commitc811663491262fdc01e8309b1f9ecde2a110a84d (patch)
tree2c9b343c9cc7765b6c67999ef4a8dfccc391e905 /src/plugins/avf/cli.c
parentc227e4950d3bc791d2ec4a2131916f9b5c40f008 (diff)
avf: add option to specify interface name
Change-Id: I94591d5b103280f8df157819d423fef7ee89d4c8 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/avf/cli.c')
-rw-r--r--src/plugins/avf/cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/avf/cli.c b/src/plugins/avf/cli.c
index 492494dcc79..f8fc05a9812 100644
--- a/src/plugins/avf/cli.c
+++ b/src/plugins/avf/cli.c
@@ -52,6 +52,8 @@ avf_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
args.txq_size = tmp;
else if (unformat (line_input, "num-rx-queues %u", &tmp))
args.rxq_num = tmp;
+ else if (unformat (line_input, "name %s", &args.name))
+ ;
else
return clib_error_return (0, "unknown input `%U'",
format_unformat_error, input);
@@ -60,6 +62,8 @@ avf_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
avf_create_if (vm, &args);
+ vec_free (args.name);
+
return args.error;
}