> +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
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 ++--
2 matches
Mail list logo