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
/
bbdev_app
/
main.c
diff --git
a/examples/bbdev_app/main.c
b/examples/bbdev_app/main.c
index
3498765
..
68a4605
100644
(file)
--- a/
examples/bbdev_app/main.c
+++ b/
examples/bbdev_app/main.c
@@
-490,7
+490,13
@@
initialize_ports(struct app_config_params *app_params,
return ret;
}
return ret;
}
- rte_eth_macaddr_get(port_id, &bbdev_port_eth_addr);
+ ret = rte_eth_macaddr_get(port_id, &bbdev_port_eth_addr);
+ if (ret < 0) {
+ printf("rte_eth_macaddr_get: err=%d, queue=%u\n",
+ ret, q);
+ return -1;
+ }
+
print_mac(port_id, &bbdev_port_eth_addr);
return 0;
print_mac(port_id, &bbdev_port_eth_addr);
return 0;
@@
-653,6
+659,8
@@
print_stats(struct stats_lcore_params *stats_lcore)
print_lcore_stats(stats_lcore->lconf[l_id].lcore_stats, l_id);
}
print_lcore_stats(stats_lcore->lconf[l_id].lcore_stats, l_id);
}
+ fflush(stdout);
+
free(xstats);
free(xstats_names);
}
free(xstats);
free(xstats_names);
}