net/failsafe: release port upon close
authorThomas Monjalon <thomas@monjalon.net>
Mon, 28 Sep 2020 23:14:19 +0000 (01:14 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:14 +0000 (19:19 +0200)
commit1a7fa562fb5216386616b18b626fb9f21593bc05
treebee01ec279ebf224db023f8d7c2a1dfedfdb843c
parent71a2b9561cdf290f459cf04434ef2c816a54d5a2
net/failsafe: release port upon close

The flag RTE_ETH_DEV_CLOSE_REMOVE is set so all port resources
can be freed by rte_eth_dev_close().

Freeing of private port resources is moved
from the ".remove(device)" to the ".dev_close(port)" operation.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/failsafe/failsafe.c
drivers/net/failsafe/failsafe_ops.c
drivers/net/failsafe/failsafe_private.h