examples/ip_pipeline: fix IPv6 flow classification
authorSankar Chokkalingam <sankarx.chokkalingam@intel.com>
Mon, 18 Jul 2016 18:15:43 +0000 (11:15 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 22 Jul 2016 10:40:26 +0000 (12:40 +0200)
commit6fe8ecc10cb3824bd73d34f92af02d03d9fd0b8b
tree30f3fbb73a8d67a293341376dc4d24ce62c03f4f
parent399b2d4758009868a578c618015bf2aa47e222a5
examples/ip_pipeline: fix IPv6 flow classification

IP Pipeline application with the configuration for Flow Classification
IPV6 did not instantiate.
Parse error in section "PIPELINE1": entry "dma_src_mask" too long

The dma_src_mask check in pipeline_passthrough_parse_args() is wrong.

This fix increases the length of dma_src_mask by 1 for NULL termination
and corrected the validation of dma_src_mask length.
This fix is also propagated to pipeline_fc_parse_args() for key_mask_str
validation.

Signed-off-by: Sankar Chokkalingam <sankarx.chokkalingam@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
examples/ip_pipeline/pipeline/pipeline_flow_classification_be.c
examples/ip_pipeline/pipeline/pipeline_passthrough_be.c