From c68b4cbf3aa1ea9f7e0f09ff4725feb92170c10f Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Wed, 25 May 2016 20:11:33 +0200 Subject: Add per-device startup config support This change adds support for providing per-interface parameters in the startup config. Sample configuration: dpdk { dev default { num-rx-queues 3 num-tx-queues 3 } dev 0000:02:00.0 { num-rx-queues 2 num-tx-queues 2 } dev 0000:02:00.1 } Change-Id: Ia7d9ae2ac9c4fd9baaa480d061a395f8a421a722 Signed-off-by: Damjan Marion --- vlib/vlib/cli.c | 2 +- vlib/vlib/cli.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'vlib') diff --git a/vlib/vlib/cli.c b/vlib/vlib/cli.c index 5a0867bd0f8..60f41db1794 100644 --- a/vlib/vlib/cli.c +++ b/vlib/vlib/cli.c @@ -133,7 +133,7 @@ vlib_cli_sub_command_match (vlib_cli_command_t * c, unformat_input_t * input) } /* Looks for string based sub-input formatted { SUB-INPUT }. */ -static uword unformat_vlib_cli_sub_input (unformat_input_t * i, va_list * args) +uword unformat_vlib_cli_sub_input (unformat_input_t * i, va_list * args) { unformat_input_t * sub_input = va_arg (*args, unformat_input_t *); u8 * s; diff --git a/vlib/vlib/cli.h b/vlib/vlib/cli.h index 22aa22e6342..a9e08ba1f6e 100644 --- a/vlib/vlib/cli.h +++ b/vlib/vlib/cli.h @@ -178,4 +178,6 @@ clib_error_t * vlib_cli_register (struct vlib_main_t * vm, clib_error_t * vlib_cli_register_parse_rule (struct vlib_main_t * vm, vlib_cli_parse_rule_t * c); +uword unformat_vlib_cli_sub_input (unformat_input_t * i, va_list * args); + #endif /* included_vlib_cli_h */ -- cgit 1.2.3-korg