git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2d8110
)
app/procinfo: close devices before exit
author
Ferruh Yigit
<ferruh.yigit@intel.com>
Wed, 30 Sep 2020 12:06:37 +0000
(13:06 +0100)
committer
Thomas Monjalon
<thomas@monjalon.net>
Tue, 6 Oct 2020 20:00:35 +0000
(22:00 +0200)
As well as this is correct thing to close devices before exit, it is
also useful to test the closing devices from secondary process.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/proc-info/main.c
patch
|
blob
|
history
diff --git
a/app/proc-info/main.c
b/app/proc-info/main.c
index
64fb83b
..
b0de394
100644
(file)
--- a/
app/proc-info/main.c
+++ b/
app/proc-info/main.c
@@
-1349,6
+1349,9
@@
main(int argc, char **argv)
if (enable_iter_mempool)
iter_mempool(mempool_iter_name);
+ RTE_ETH_FOREACH_DEV(i)
+ rte_eth_dev_close(i);
+
ret = rte_eal_cleanup();
if (ret)
printf("Error from rte_eal_cleanup(), %d\n", ret);