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

Message ID 1457958122-20136-2-git-send-email-roy.fan.zhang@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers

Commit Message

Fan Zhang March 14, 2016, 12:22 p.m. UTC
  Fixes: 377cd98e ("example/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 | 6 ++++++
 1 file changed, 6 insertions(+)
  

Comments

Thomas Monjalon March 22, 2016, 6:16 p.m. UTC | #1
2016-03-14 12:22, Fan Zhang:
> Fixes: 377cd98e ("example/ip_pipeline: add link identification")
> 
> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>

Applied, thanks
  

Patch

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),