linux/net/devlink
Ido Schimmel d32c38256d devlink: Allow taking device lock in pre_doit operations
Introduce a new private flag ('DEVLINK_NL_FLAG_NEED_DEV_LOCK') to allow
netlink commands to specify that they need to acquire the device lock in
their pre_doit operation and release it in their post_doit operation.

The reload command will use this flag in the subsequent patch.

No functional changes intended.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-11-18 17:38:50 +00:00
..
core.c devlink: Acquire device lock during netns dismantle 2023-11-18 17:38:50 +00:00
dev.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
devl_internal.h devlink: Allow taking device lock in pre_doit operations 2023-11-18 17:38:50 +00:00
dpipe.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
health.c devlink: Allow taking device lock in pre_doit operations 2023-11-18 17:38:50 +00:00
linecard.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
Makefile devlink: move devlink_notify_register/unregister() to dev.c 2023-08-28 08:02:24 -07:00
netlink_gen.c netlink: specs: devlink: add forgotten port function caps enum values 2023-11-01 22:13:43 -07:00
netlink_gen.h netlink: specs: devlink: add the remaining command to generate complete split_ops 2023-10-23 16:16:32 -07:00
netlink.c devlink: Allow taking device lock in pre_doit operations 2023-11-18 17:38:50 +00:00
param.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
port.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
rate.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
region.c devlink: Allow taking device lock in pre_doit operations 2023-11-18 17:38:50 +00:00
resource.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
sb.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
trap.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00