summaryrefslogtreecommitdiffstats
path: root/src/plugins/avf/cli.c
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2018-06-26 12:58:22 +0200
committerDamjan Marion <dmarion@me.com>2018-06-27 16:16:28 +0000
commit6c9b9644450b5ee5672b1e0f66257b0e09fb0734 (patch)
tree4073aeed75b0f022ec6a174e6ed40a7d58a9cff0 /src/plugins/avf/cli.c
parent99d7a72cbcad959e805e8e8b5efb112e9def69c2 (diff)
avf: binary API and configurable RX/TX queue size
Change-Id: Ibd3a8d28d8f1df2bc14c42e48498f6ac26081192 Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'src/plugins/avf/cli.c')
-rw-r--r--src/plugins/avf/cli.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/avf/cli.c b/src/plugins/avf/cli.c
index ba9f5600f99..3ccf45aaf7e 100644
--- a/src/plugins/avf/cli.c
+++ b/src/plugins/avf/cli.c
@@ -32,6 +32,7 @@ avf_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
{
unformat_input_t _line_input, *line_input = &_line_input;
avf_create_if_args_t args;
+ u32 tmp;
memset (&args, 0, sizeof (avf_create_if_args_t));
@@ -45,13 +46,16 @@ avf_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, "rx-queue-size %u", &tmp))
+ args.rxq_size = tmp;
+ else if (unformat (line_input, "tx-queue-size %u", &tmp))
+ args.txq_size = tmp;
else
return clib_error_return (0, "unknown input `%U'",
format_unformat_error, input);
}
unformat_free (line_input);
-
avf_create_if (vm, &args);
return args.error;
@@ -60,7 +64,8 @@ avf_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
/* *INDENT-OFF* */
VLIB_CLI_COMMAND (avf_create_command, static) = {
.path = "create interface avf",
- .short_help = "create interface avf <pci-address>",
+ .short_help = "create interface avf <pci-address> "
+ "[rx-queue-size <size>] [tx-queue-size <size>]",
.function = avf_create_command_fn,
};
/* *INDENT-ON* */