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
examples/ptpclient: fix delay request message
[dpdk.git]
/
examples
/
ip_pipeline
/
thread.c
diff --git
a/examples/ip_pipeline/thread.c
b/examples/ip_pipeline/thread.c
index
e1b6fb6
..
272fbbe
100644
(file)
--- a/
examples/ip_pipeline/thread.c
+++ b/
examples/ip_pipeline/thread.c
@@
-820,7
+820,7
@@
pipeline_port_in_stats_read(const char *pipeline_name,
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
- if (status)
+ if (status
== 0
)
memcpy(stats, &rsp->port_in_stats_read.stats, sizeof(*stats));
/* Free response */
memcpy(stats, &rsp->port_in_stats_read.stats, sizeof(*stats));
/* Free response */
@@
-968,7
+968,7
@@
pipeline_port_out_stats_read(const char *pipeline_name,
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
- if (status)
+ if (status
== 0
)
memcpy(stats, &rsp->port_out_stats_read.stats, sizeof(*stats));
/* Free response */
memcpy(stats, &rsp->port_out_stats_read.stats, sizeof(*stats));
/* Free response */
@@
-1024,7
+1024,7
@@
pipeline_table_stats_read(const char *pipeline_name,
/* Read response */
status = rsp->status;
/* Read response */
status = rsp->status;
- if (status)
+ if (status
== 0
)
memcpy(stats, &rsp->table_stats_read.stats, sizeof(*stats));
/* Free response */
memcpy(stats, &rsp->table_stats_read.stats, sizeof(*stats));
/* Free response */