Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
avf: add option to specify interface name
[vpp.git]
/
src
/
plugins
/
avf
/
cli.c
diff --git
a/src/plugins/avf/cli.c
b/src/plugins/avf/cli.c
index
492494d
..
f8fc05a
100644
(file)
--- 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;
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);
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);
avf_create_if (vm, &args);
+ vec_free (args.name);
+
return args.error;
}
return args.error;
}