aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Pfister <ppfister@cisco.com>2016-11-02 10:06:49 +0000
committerDamjan Marion <dmarion.lists@gmail.com>2016-11-02 12:00:11 +0000
commit446e1f577b75f99aced8abb035a9d1bba917e89a (patch)
treec6810928dff4dda53d0d01e55af4cd7beefe3b49
parent77766a12e335042f297f07ab4b184af1b742f1d7 (diff)
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>
-rw-r--r--vnet/vnet/devices/dpdk/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vnet/vnet/devices/dpdk/init.c b/vnet/vnet/devices/dpdk/init.c
index 01bd27db35d..e06d6bf2834 100644
--- a/vnet/vnet/devices/dpdk/init.c
+++ b/vnet/vnet/devices/dpdk/init.c
@@ -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))