[PATCH v1] net/ipn3ke: fix representor name

Xu, Rosen rosen.xu at intel.com
Mon Mar 20 07:53:27 CET 2023


Hi,

> -----Original Message-----
> From: Huang, Wei <wei.huang at intel.com>
> Sent: Friday, March 17, 2023 4:45 AM
> To: dev at dpdk.org; thomas at monjalon.net; david.marchand at redhat.com
> Cc: stable at dpdk.org; Xu, Rosen <rosen.xu at intel.com>; Zhang, Tianfei
> <tianfei.zhang at intel.com>; Zhang, Qi Z <qi.z.zhang at intel.com>; Huang, Wei
> <wei.huang at intel.com>
> Subject: [PATCH v1] net/ipn3ke: fix representor name
> 
> The device name used in rte_eth_dev_allocated() function is afu device
> name instead of representor name, this patch correct it.
> 
> Fixes: c01c748e4ae6 ("net/ipn3ke: add new driver")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Wei Huang <wei.huang at intel.com>
> ---
>  drivers/net/ipn3ke/ipn3ke_ethdev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ipn3ke/ipn3ke_ethdev.c
> b/drivers/net/ipn3ke/ipn3ke_ethdev.c
> index 70a06a3..2c15611 100644
> --- a/drivers/net/ipn3ke/ipn3ke_ethdev.c
> +++ b/drivers/net/ipn3ke/ipn3ke_ethdev.c
> @@ -558,7 +558,7 @@ static int ipn3ke_vswitch_remove(struct
> rte_afu_device *afu_dev)
>  		snprintf(name, sizeof(name), "net_%s_representor_%d",
>  			afu_dev->device.name, i);
> 
> -		ethdev = rte_eth_dev_allocated(afu_dev->device.name);
> +		ethdev = rte_eth_dev_allocated(name);
>  		if (ethdev != NULL)
>  			rte_eth_dev_destroy(ethdev, ipn3ke_rpst_uninit);
>  	}
> --
> 1.8.3.1

Acked-by: Rosen Xu <rosen.xu at intel.com>


More information about the stable mailing list