From: Jasvinder Singh Date: Mon, 21 Nov 2016 13:37:37 +0000 (+0000) Subject: examples/ip_pipeline: fix parsing of pass-through pipeline X-Git-Tag: spdx-start~5134 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d30185b7bf1cd6924bee7e7abe5d00ae31203ccb;p=dpdk.git examples/ip_pipeline: fix parsing of pass-through pipeline This patch fixes the configuration file parsing error when load balancing function is enabled in pass-through pipeline. error log: pipeline> [APP] Initializing PIPELINE1 ... [PIPELINE1] Pass-through Parse error in section "PIPELINE1": entry "lb" has invalid value ("hash") Fixes: cbe82f6cfb0a ("examples/ip_pipeline: add swap action in pass-through") Cc: stable@dpdk.org Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- diff --git a/examples/ip_pipeline/pipeline/pipeline_passthrough_be.c b/examples/ip_pipeline/pipeline/pipeline_passthrough_be.c index 8b71a7d493..7ab0afedbe 100644 --- a/examples/ip_pipeline/pipeline/pipeline_passthrough_be.c +++ b/examples/ip_pipeline/pipeline/pipeline_passthrough_be.c @@ -589,7 +589,7 @@ pipeline_passthrough_parse_args(struct pipeline_passthrough_params *p, params->name, arg_name); dma_hash_lb_present = 1; - if (strcmp(arg_value, "hash") || + if (strcmp(arg_value, "hash") && strcmp(arg_value, "HASH")) PIPELINE_PARSE_ERR_INV_VAL(0,