Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
rdma: add option to specify inteface name
[vpp.git]
/
src
/
plugins
/
rdma
/
cli.c
diff --git
a/src/plugins/rdma/cli.c
b/src/plugins/rdma/cli.c
index
8919603
..
e1ccbb6
100644
(file)
--- a/
src/plugins/rdma/cli.c
+++ b/
src/plugins/rdma/cli.c
@@
-41,7
+41,9
@@
rdma_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
{
while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
{
- if (unformat (line_input, "name %s", &args.ifname))
+ if (unformat (line_input, "host-if %s", &args.ifname))
+ ;
+ else if (unformat (line_input, "name %s", &args.name))
;
else
return clib_error_return (0, "unknown input `%U'",
;
else
return clib_error_return (0, "unknown input `%U'",
@@
-52,6
+54,7
@@
rdma_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
rdma_create_if (vm, &args);
vec_free (args.ifname);
rdma_create_if (vm, &args);
vec_free (args.ifname);
+ vec_free (args.name);
return args.error;
}
return args.error;
}
@@
-59,7
+62,7
@@
rdma_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
/* *INDENT-OFF* */
VLIB_CLI_COMMAND (rdma_create_command, static) = {
.path = "create interface rdma",
/* *INDENT-OFF* */
VLIB_CLI_COMMAND (rdma_create_command, static) = {
.path = "create interface rdma",
- .short_help = "create interface rdma <
name ifname>
",
+ .short_help = "create interface rdma <
host-if ifname> [name <name>]
",
.function = rdma_create_command_fn,
};
/* *INDENT-ON* */
.function = rdma_create_command_fn,
};
/* *INDENT-ON* */