git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mk: fix message when test application is not built
[dpdk.git]
/
examples
/
ip_pipeline
/
pipeline
/
pipeline_flow_actions.c
diff --git
a/examples/ip_pipeline/pipeline/pipeline_flow_actions.c
b/examples/ip_pipeline/pipeline/pipeline_flow_actions.c
index
7560051
..
349db6b
100644
(file)
--- a/
examples/ip_pipeline/pipeline/pipeline_flow_actions.c
+++ b/
examples/ip_pipeline/pipeline/pipeline_flow_actions.c
@@
-290,6
+290,7
@@
app_pipeline_fa_flow_config_bulk(struct app_params *app,
void **req_entry_ptr;
uint32_t *req_flow_id;
uint32_t i;
void **req_entry_ptr;
uint32_t *req_flow_id;
uint32_t i;
+ int status;
/* Check input arguments */
if ((app == NULL) ||
/* Check input arguments */
if ((app == NULL) ||
@@
-368,6
+369,7
@@
app_pipeline_fa_flow_config_bulk(struct app_params *app,
}
/* Read response */
}
/* Read response */
+ status = (rsp->n_flows == n_flows) ? 0 : -1;
/* Commit flows */
for (i = 0; i < rsp->n_flows; i++) {
/* Commit flows */
for (i = 0; i < rsp->n_flows; i++) {
@@
-408,7
+410,7
@@
app_pipeline_fa_flow_config_bulk(struct app_params *app,
rte_free(req_flow_id);
rte_free(req_entry_ptr);
rte_free(req_flow_id);
rte_free(req_entry_ptr);
- return
(rsp->n_flows == n_flows) ? 0 : -1
;
+ return
status
;
}
int
}
int
@@
-1300,7
+1302,9
@@
static cmdline_parse_ctx_t pipeline_cmds[] = {
static struct pipeline_fe_ops pipeline_flow_actions_fe_ops = {
.f_init = app_pipeline_fa_init,
static struct pipeline_fe_ops pipeline_flow_actions_fe_ops = {
.f_init = app_pipeline_fa_init,
+ .f_post_init = NULL,
.f_free = app_pipeline_fa_free,
.f_free = app_pipeline_fa_free,
+ .f_track = app_pipeline_track_default,
.cmds = pipeline_cmds,
};
.cmds = pipeline_cmds,
};