[dpdk-dev] [PATCH] examples/ip_pipeline: fix configuration parser

Fan Zhang roy.fan.zhang at intel.com
Mon Mar 14 13:22:02 CET 2016


Fixes: 377cd98e ("example/ip_pipeline: add link identification")

Signed-off-by: Fan Zhang <roy.fan.zhang at intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu at intel.com>
---
 examples/ip_pipeline/config_parse.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/examples/ip_pipeline/config_parse.c b/examples/ip_pipeline/config_parse.c
index e39c23e..152889d 100644
--- a/examples/ip_pipeline/config_parse.c
+++ b/examples/ip_pipeline/config_parse.c
@@ -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),
-- 
2.5.0



More information about the dev mailing list