]> git.droids-corp.org - dpdk.git/commit
examples/ethtool: close port before exit
authorHuisong Li <lihuisong@huawei.com>
Thu, 6 May 2021 03:46:08 +0000 (11:46 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 17 Nov 2021 17:43:21 +0000 (18:43 +0100)
commit497025dac0aff87693557687e0a37f7342aa2ce4
treeeab1d88d7bae0f4c0bfac803c467a461cf278fca
parent4199ce15789fdad0a3b835d1c93abc6b63227914
examples/ethtool: close port before exit

Currently, ethtool directly ends the process after 'quit' cmd. In this
case, software resources are not released and hardware resources of the
device are not uninstalled.

This patch adds closing port operation to release resources.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
examples/ethtool/ethtool-app/main.c