> -----Original Message----- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Tuesday, September 1, 2015 4:59 AM > To: Dumitrescu, Cristian > Cc: dev at dpdk.org; Stephen Hemminger > Subject: [PATCH 1/5] examples_ip_pipeline: fix typo's > > Coverity found these as dead-code and/or copy-paste bugs. > > Signed-off-by: Stephen Hemminger <stephen at networkplumber.org> > --- > examples/ip_pipeline/config_parse.c | 2 +- > examples/ip_pipeline/config_parse_tm.c | 2 +- > examples/ip_pipeline/pipeline/pipeline_flow_classification.c | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/examples/ip_pipeline/config_parse.c > b/examples/ip_pipeline/config_parse.c > index c9b78f9..6b651a8 100644 > --- a/examples/ip_pipeline/config_parse.c > +++ b/examples/ip_pipeline/config_parse.c > @@ -2238,7 +2238,7 @@ save_pipeline_params(struct app_params *app, > FILE *f) > } > > /* msgq_out */ > - if (p->n_msgq_in) { > + if (p->n_msgq_out) { > uint32_t j; > > fprintf(f, "msgq_out ="); > diff --git a/examples/ip_pipeline/config_parse_tm.c > b/examples/ip_pipeline/config_parse_tm.c > index cdebbdc..84702b0 100644 > --- a/examples/ip_pipeline/config_parse_tm.c > +++ b/examples/ip_pipeline/config_parse_tm.c > @@ -399,7 +399,7 @@ tm_cfgfile_load(struct app_pktq_tm_params *tm) > > memset(tm->sched_subport_params, 0, sizeof(tm- > >sched_subport_params)); > memset(tm->sched_pipe_profiles, 0, sizeof(tm- > >sched_pipe_profiles)); > - memset(&tm->sched_port_params, 0, sizeof(tm- > >sched_pipe_profiles)); > + memset(&tm->sched_port_params, 0, sizeof(tm- > >sched_port_params)); > for (i = 0; i < APP_MAX_SCHED_SUBPORTS * > APP_MAX_SCHED_PIPES; i++) > tm->sched_pipe_to_profile[i] = -1; > > diff --git a/examples/ip_pipeline/pipeline/pipeline_flow_classification.c > b/examples/ip_pipeline/pipeline/pipeline_flow_classification.c > index 4b82180..24cf7dc 100644 > --- a/examples/ip_pipeline/pipeline/pipeline_flow_classification.c > +++ b/examples/ip_pipeline/pipeline/pipeline_flow_classification.c > @@ -442,7 +442,7 @@ app_pipeline_fc_add_bulk(struct app_params *app, > flow_rsp = rte_malloc(NULL, > n_keys * sizeof(struct pipeline_fc_add_bulk_flow_rsp), > RTE_CACHE_LINE_SIZE); > - if (flow_req == NULL) { > + if (flow_rsq == NULL) { > rte_free(flow_req); > rte_free(new_flow); > rte_free(signature); > -- > 2.1.4
Acked-by: Cristian Dumitrescu <cristian.dumitrescu at intel.com>