[dpdk-dev] [PATCH 17/20] drivers/net: accept removing device without any port

Ferruh Yigit ferruh.yigit at intel.com
Wed Sep 23 18:45:00 CEST 2020


On 9/13/2020 11:07 PM, Thomas Monjalon wrote:
> The ports can be closed (i.e. completely released)
> before removing the whole device.
> Such case was wrongly considered an error by some drivers.
> 
> If the device supports only one port, there is nothing much
> to free after the port is closed.
> 
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> ---
>   drivers/net/ipn3ke/ipn3ke_ethdev.c      |  6 ++----
>   drivers/net/kni/rte_eth_kni.c           | 16 +++++++---------
>   drivers/net/netvsc/hn_ethdev.c          |  2 +-
>   drivers/net/nfp/nfp_net.c               |  2 ++
>   drivers/net/pfe/pfe_ethdev.c            |  6 ++----
>   drivers/net/szedata2/rte_eth_szedata2.c |  6 ++----
>   6 files changed, 16 insertions(+), 22 deletions(-)

For net/kni,
Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>



More information about the dev mailing list