Allow empty DPDK device init config

This patch allows for empty dpdk device configuration
such as: dpdk { dev 0000:0a:00.0 { } }

Instead of exiting.

Change-Id: If9488eecc7fb1e0b5c6626f9c074649b39b727d3
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
This commit is contained in:
Pierre Pfister
2016-11-02 10:06:49 +00:00
committed by Damjan Marion
parent 77766a12e3
commit 446e1f577b

View File

@ -906,6 +906,7 @@ dpdk_device_config (dpdk_config_main_t * conf, vlib_pci_addr_t pci_addr,
if (!input)
return 0;
unformat_skip_white_space (input);
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "num-rx-queues %u", &devconf->num_rx_queues))