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: add flush after stats printing
[dpdk.git]
/
examples
/
ip_pipeline
/
link.c
diff --git
a/examples/ip_pipeline/link.c
b/examples/ip_pipeline/link.c
index
744abf3
..
16bcffe
100644
(file)
--- a/
examples/ip_pipeline/link.c
+++ b/
examples/ip_pipeline/link.c
@@
-264,7
+264,8
@@
link_is_up(const char *name)
return 0;
/* Resource */
- rte_eth_link_get(link->port_id, &link_params);
+ if (rte_eth_link_get(link->port_id, &link_params) < 0)
+ return 0;
return (link_params.link_status == ETH_LINK_DOWN) ? 0 : 1;
}