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:
829c594
)
examples/kni: close port before exit
author
Huisong Li
<lihuisong@huawei.com>
Tue, 14 Sep 2021 06:02:19 +0000
(14:02 +0800)
committer
Thomas Monjalon
<thomas@monjalon.net>
Wed, 6 Oct 2021 14:51:58 +0000
(16:51 +0200)
This patch adds dev_close() step to release network adapter resources
when kni free.
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
examples/kni/main.c
patch
|
blob
|
history
diff --git
a/examples/kni/main.c
b/examples/kni/main.c
index
beabb3c
..
2a993a0
100644
(file)
--- a/
examples/kni/main.c
+++ b/
examples/kni/main.c
@@
-1031,6
+1031,7
@@
kni_free_kni(uint16_t port_id)
if (ret != 0)
RTE_LOG(ERR, APP, "Failed to stop port %d: %s\n",
port_id, rte_strerror(-ret));
+ rte_eth_dev_close(port_id);
return 0;
}