mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
devlink: push trap related code into separate file
Cut out another chunk from leftover.c and put trap related code into a separate file. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-11-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
85facf94fd
commit
4bbdec80ff
@ -1,4 +1,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
obj-y := leftover.o core.o netlink.o netlink_gen.o dev.o port.o sb.o dpipe.o \
|
||||
resource.o param.o region.o health.o
|
||||
resource.o param.o region.o health.o trap.o
|
||||
|
@ -160,6 +160,12 @@ void devlink_params_notify_register(struct devlink *devlink);
|
||||
void devlink_params_notify_unregister(struct devlink *devlink);
|
||||
void devlink_regions_notify_register(struct devlink *devlink);
|
||||
void devlink_regions_notify_unregister(struct devlink *devlink);
|
||||
void devlink_trap_policers_notify_register(struct devlink *devlink);
|
||||
void devlink_trap_policers_notify_unregister(struct devlink *devlink);
|
||||
void devlink_trap_groups_notify_register(struct devlink *devlink);
|
||||
void devlink_trap_groups_notify_unregister(struct devlink *devlink);
|
||||
void devlink_traps_notify_register(struct devlink *devlink);
|
||||
void devlink_traps_notify_unregister(struct devlink *devlink);
|
||||
|
||||
/* Ports */
|
||||
#define ASSERT_DEVLINK_PORT_INITIALIZED(devlink_port) \
|
||||
@ -267,3 +273,8 @@ int devlink_nl_cmd_health_reporter_dump_clear_doit(struct sk_buff *skb,
|
||||
struct genl_info *info);
|
||||
int devlink_nl_cmd_health_reporter_test_doit(struct sk_buff *skb,
|
||||
struct genl_info *info);
|
||||
int devlink_nl_cmd_trap_set_doit(struct sk_buff *skb, struct genl_info *info);
|
||||
int devlink_nl_cmd_trap_group_set_doit(struct sk_buff *skb,
|
||||
struct genl_info *info);
|
||||
int devlink_nl_cmd_trap_policer_set_doit(struct sk_buff *skb,
|
||||
struct genl_info *info);
|
||||
|
File diff suppressed because it is too large
Load Diff
1861
net/devlink/trap.c
Normal file
1861
net/devlink/trap.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user