Thread (12 messages) 12 messages, 3 authors, 2021-11-01

Re: [PATCH net-next v2 3/4] devlink: expose get/put functions

From: Jakub Kicinski <kuba@kernel.org>
Date: 2021-11-01 13:44:44

On Sun, 31 Oct 2021 08:29:20 +0200 Leon Romanovsky wrote:
I really like this series, but your latest netdevsim RFC made me worry.

It is important to make sure that these devlink_put() and devlink_get()
calls will be out-of-reach from the drivers. Only core code should use
them.
get/put symbols are not exported so I think we should be safe
from driver misuse at this point. If we ever export them we 
should add a 

  WARN_ON(!(devlink->lock_flags & DEVLINK_LOCK_USE_REF));
Can you please add it as a comment above these functions?
Will do if the RFC sinks.
At least for now, till we discuss your RFC.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help