examples/ip_pipeline: fix configuration parser
authorFan Zhang <roy.fan.zhang@intel.com>
Mon, 14 Mar 2016 12:22:02 +0000 (12:22 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 22 Mar 2016 18:22:06 +0000 (19:22 +0100)
Fixes: 377cd98e0ab6 ("examples/ip_pipeline: add link identification")

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
examples/ip_pipeline/config_parse.c

index e39c23e..152889d 100644 (file)
@@ -678,6 +678,8 @@ parse_eal(struct app_params *app,
                                p->pci_blacklist[i] =
                                        strdup(entry->value);
                                PARSE_ERROR_MALLOC(p->pci_blacklist[i]);
+
+                               break;
                        }
 
                        PARSE_ERROR_MESSAGE((i < APP_MAX_LINKS),
@@ -702,6 +704,8 @@ parse_eal(struct app_params *app,
 
                                p->pci_whitelist[i] = strdup(entry->value);
                                PARSE_ERROR_MALLOC(p->pci_whitelist[i]);
+
+                               break;
                        }
 
                        PARSE_ERROR_MESSAGE((i < APP_MAX_LINKS),
@@ -720,6 +724,8 @@ parse_eal(struct app_params *app,
 
                                p->vdev[i] = strdup(entry->value);
                                PARSE_ERROR_MALLOC(p->vdev[i]);
+
+                               break;
                        }
 
                        PARSE_ERROR_MESSAGE((i < APP_MAX_LINKS),