[dpdk-dev] [PATCH v8 13/14] ethdev: Use embedded rte_device to detach driver
Thomas Monjalon
thomas at monjalon.net
Tue Jul 4 01:17:49 CEST 2017
30/06/2017 20:19, Jan Blunck:
> --- a/lib/librte_ether/rte_ethdev.c
> +++ b/lib/librte_ether/rte_ethdev.c
> @@ -439,7 +439,8 @@ rte_eth_dev_detach(uint8_t port_id, char *name)
>
> snprintf(name, sizeof(rte_eth_devices[port_id].data->name),
> "%s", rte_eth_devices[port_id].data->name);
> - ret = rte_eal_dev_detach(name);
> +
> + ret = rte_eal_dev_detach(rte_eth_devices[0].device);
Obviously, I change rte_eth_devices[0] to rte_eth_devices[port_id].
More information about the dev
mailing list