[dpdk-dev] [PATCH v4 5/6] ethdev: remove deprecated attach/detach functions

Ferruh Yigit ferruh.yigit at intel.com
Tue Oct 16 13:03:23 CEST 2018


On 10/9/2018 11:33 PM, Thomas Monjalon wrote:
> The hotplug attach/detach features are implemented in EAL layer.
> There is a new ethdev iterator to retrieve ports from ethdev layer.
> 
> As announced earlier, the (buggy) ethdev functions are now removed.
> 
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> Reviewed-by: Andrew Rybchenko <arybchenko at solarflare.com>

<...>

> @@ -53,7 +53,6 @@ Programmer's Guide
>      packet_framework
>      vhost_lib
>      metrics_lib
> -    port_hotplug_framework

Any replacement documentation for hotplug?

<...>

> @@ -130,6 +130,12 @@ API Changes
>    functions were deprecated since 17.05 and are replaced by
>    ``rte_mbuf_raw_free()`` and ``rte_pktmbuf_prefree_seg()``.
>  
> +* ethdev: The deprecated functions attach/detach were removed in 18.11.
> +  ``rte_eth_dev_attach`` can be replaced by ``RTE_ETH_FOREACH_MATCHING_DEV``
> +  and ``rte_dev_probe`` or ``rte_eal_hotplug_add``.
> +  ``rte_eth_dev_detach`` can be replaced by
> +  ``rte_dev_remove`` or ``rte_eal_hotplug_remove``.

What is the difference between ``rte_dev_remove`` or ``rte_eal_hotplug_remove``,
which one is good for which usage, is there any documentation explaining this?


More information about the dev mailing list