linux/net/devlink
Jiri Pirko ee6d78ac28 devlink: introduce devlink_nl_pre_doit_port*() helper functions
Define port handling helpers what don't rely on internal_flags.
Have __devlink_nl_pre_doit() to accept the flags as a function arg and
make devlink_nl_pre_doit() a wrapper helper function calling it.
Introduce new helpers devlink_nl_pre_doit_port() and
devlink_nl_pre_doit_port_optional() to be used by split ops in follow-up
patch.

Note that the function prototypes are temporary until the generated ones
will replace them in a follow-up patch.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230811155714.1736405-4-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-08-14 11:47:24 -07:00
..
core.c devlink: Fix crash with CONFIG_NET_NS=n 2023-05-16 19:57:52 -07:00
dev.c devlink: introduce couple of dumpit callbacks for split ops 2023-08-04 14:03:01 -07:00
devl_internal.h devlink: introduce devlink_nl_pre_doit_port*() helper functions 2023-08-14 11:47:24 -07:00
health.c devlink: make health report on unregistered instance warn just once 2023-05-31 22:34:22 -07:00
leftover.c devlink: parse rate attrs in doit() callbacks 2023-08-14 11:47:24 -07:00
Makefile devlink: add split ops generated according to spec 2023-08-04 14:03:01 -07:00
netlink_gen.c devlink: add split ops generated according to spec 2023-08-04 14:03:01 -07:00
netlink_gen.h devlink: add split ops generated according to spec 2023-08-04 14:03:01 -07:00
netlink.c devlink: introduce devlink_nl_pre_doit_port*() helper functions 2023-08-14 11:47:24 -07:00