Re: [dpdk-dev] [PATCH 07/20] net/failsafe: release port upon close

2020-09-23 Thread Thomas Monjalon
> +int > +failsafe_eth_dev_close(struct rte_eth_dev *dev) > +{ > + struct sub_device *sdev; > + uint8_t i; > + int ret; > + > + fs_lock(dev, 0); > + failsafe_hotplug_alarm_cancel(dev); > + if (PRIV(dev)->state == DEV_STARTED) > + dev->dev_ops->dev_s

[dpdk-dev] [PATCH 07/20] net/failsafe: release port upon close

2020-09-13 Thread Thomas Monjalon
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 --- drivers/net/failsafe/failsafe.c | 25 ++--