> -----Original Message-----
> From: Kitszel, Przemyslaw <[email protected]>
> Sent: Wednesday, March 25, 2026 7:27 AM
> To: Jiri Pirko <[email protected]>; [email protected]; Jakub
> Kicinski <[email protected]>
> Cc: Nguyen, Anthony L <[email protected]>; intel-wired-
> [email protected]; Loktionov, Aleksandr
> <[email protected]>; [email protected];
> [email protected]; [email protected]; [email protected]; Schmidt,
> Michal <[email protected]>; Kitszel, Przemyslaw
> <[email protected]>
> Subject: [PATCH net-next 2/2] devlink: unregister shared devlink
> resources on destroy
> 
> Since shared devlink acts as a normal devlink instance, capable of all
> usual devlink operations, it must unregister its resources.
> 
> I plan to make use of devlink resources on a shared instance for ice
> driver by separate series, coming soon.
> 
> Signed-off-by: Przemek Kitszel <[email protected]>
> ---
>  net/devlink/sh_dev.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/net/devlink/sh_dev.c b/net/devlink/sh_dev.c index
> b85e5cb1edbe..5de138bf3630 100644
> --- a/net/devlink/sh_dev.c
> +++ b/net/devlink/sh_dev.c
> @@ -71,6 +71,7 @@ static void devlink_shd_destroy(struct devlink_shd
> *shd)
> 
>       list_del(&shd->list);
>       devl_lock(devlink);
> +     devl_resources_unregister(devlink);
>       devl_unregister(devlink);
>       devl_unlock(devlink);
>       kfree(shd->id);
> --
> 2.51.1

Reviewed-by: Aleksandr Loktionov <[email protected]>

Reply via email to