diff options
Diffstat (limited to 'vnet/vnet/devices/dpdk/format.c')
-rw-r--r-- | vnet/vnet/devices/dpdk/format.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vnet/vnet/devices/dpdk/format.c b/vnet/vnet/devices/dpdk/format.c index ef7ee0e7853..1b3fb5ef37d 100644 --- a/vnet/vnet/devices/dpdk/format.c +++ b/vnet/vnet/devices/dpdk/format.c @@ -864,6 +864,26 @@ unformat_rss_fn (unformat_input_t * input, uword * rss_fn) return 0; } +clib_error_t * +unformat_hqos (unformat_input_t * input, dpdk_device_config_hqos_t * hqos) +{ + clib_error_t *error = 0; + + while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) + { + if (unformat (input, "hqos-thread %u", &hqos->hqos_thread)) + hqos->hqos_thread_valid = 1; + else + { + error = clib_error_return (0, "unknown input `%U'", + format_unformat_error, input); + break; + } + } + + return error; +} + /* * fd.io coding-style-patch-verification: ON * |