diff options
author | Damjan Marion <damarion@cisco.com> | 2016-05-25 20:11:33 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-06-05 13:46:05 +0000 |
commit | c68b4cbf3aa1ea9f7e0f09ff4725feb92170c10f (patch) | |
tree | a4147eb4c403327dee2076117a358e0324fe2c90 /vlib | |
parent | 96e10b554f4561d343cb1eb588dfa9789e74a6f0 (diff) |
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 <damarion@cisco.com>
Diffstat (limited to 'vlib')
-rw-r--r-- | vlib/vlib/cli.c | 2 | ||||
-rw-r--r-- | vlib/vlib/cli.h | 2 |
2 files changed, 3 insertions, 1 deletions
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 */ |