[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YjIu8rf/1hFHuhHE@unreal>
Date: Wed, 16 Mar 2022 20:39:46 +0200
From: Leon Romanovsky <leon@...nel.org>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, jiri@...dia.com,
idosch@...dia.com, petrm@...dia.com, simon.horman@...igine.com,
louis.peens@...igine.com
Subject: Re: [PATCH net-next 1/6] devlink: expose instance locking and add
locked port registering
On Mon, Mar 14, 2022 at 11:00:04PM -0700, Jakub Kicinski wrote:
> It should be familiar and beneficial to expose devlink instance
> lock to the drivers. This way drivers can block devlink from
> calling them during critical sections without breakneck locking.
>
> Add port helpers, port splitting callbacks will be the first
> target.
>
> Use 'devl_' prefix for "explicitly locked" API. Initial RFC used
> '__devlink' but that's too much typing.
>
> devl_lock_is_held() is not defined without lockdep, which is
> the same behavior as lockdep_is_held() itself.
>
> Signed-off-by: Jakub Kicinski <kuba@...nel.org>
> ---
> v1: - add a small section to the docs
> - redo the lockdep ifdef
> ---
> Documentation/networking/devlink/index.rst | 16 ++++
> include/net/devlink.h | 11 +++
> net/core/devlink.c | 95 ++++++++++++++++------
> 3 files changed, 98 insertions(+), 24 deletions(-)
>
Thanks,
Reviewed-by: Leon Romanovsky <leonro@...dia.com>
Powered by blists - more mailing lists