examples/kni: close port before exit
authorHuisong Li <lihuisong@huawei.com>
Tue, 14 Sep 2021 06:02:19 +0000 (14:02 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 6 Oct 2021 14:51:58 +0000 (16:51 +0200)
commit44fe9bd8e467201e3924b4330eaec27734676f6e
tree2282fbcdcb8b06ed81cb5c0d8687c02e23c2b061
parent829c5946b55f569e56df399b94ab51c473f6696e
examples/kni: close port before exit

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