Skip to content

Commit 7cc7194

Browse files
Jiri Pirkokuba-moo
authored andcommitted
devlink: push rate related code into separate file
Cut out another chunk from leftover.c and put rate related code into a separate file. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-12-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 4bbdec8 commit 7cc7194

4 files changed

Lines changed: 728 additions & 719 deletions

File tree

net/devlink/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
22

33
obj-y := leftover.o core.o netlink.o netlink_gen.o dev.o port.o sb.o dpipe.o \
4-
resource.o param.o region.o health.o trap.o
4+
resource.o param.o region.o health.o trap.o rate.o

net/devlink/devl_internal.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ void devlink_trap_groups_notify_register(struct devlink *devlink);
166166
void devlink_trap_groups_notify_unregister(struct devlink *devlink);
167167
void devlink_traps_notify_register(struct devlink *devlink);
168168
void devlink_traps_notify_unregister(struct devlink *devlink);
169+
void devlink_rates_notify_register(struct devlink *devlink);
170+
void devlink_rates_notify_unregister(struct devlink *devlink);
169171

170172
/* Ports */
171173
#define ASSERT_DEVLINK_PORT_INITIALIZED(devlink_port) \
@@ -278,3 +280,6 @@ int devlink_nl_cmd_trap_group_set_doit(struct sk_buff *skb,
278280
struct genl_info *info);
279281
int devlink_nl_cmd_trap_policer_set_doit(struct sk_buff *skb,
280282
struct genl_info *info);
283+
int devlink_nl_cmd_rate_set_doit(struct sk_buff *skb, struct genl_info *info);
284+
int devlink_nl_cmd_rate_new_doit(struct sk_buff *skb, struct genl_info *info);
285+
int devlink_nl_cmd_rate_del_doit(struct sk_buff *skb, struct genl_info *info);

0 commit comments

Comments
 (0)