Skip to content

Commit a9f9600

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

4 files changed

Lines changed: 582 additions & 575 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-
health.o
4+
resource.o health.o

net/devlink/devl_internal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ int devlink_nl_cmd_dpipe_headers_get(struct sk_buff *skb,
238238
struct genl_info *info);
239239
int devlink_nl_cmd_dpipe_table_counters_set(struct sk_buff *skb,
240240
struct genl_info *info);
241+
int devlink_nl_cmd_resource_set(struct sk_buff *skb, struct genl_info *info);
242+
int devlink_nl_cmd_resource_dump(struct sk_buff *skb, struct genl_info *info);
241243
int devlink_nl_cmd_health_reporter_set_doit(struct sk_buff *skb,
242244
struct genl_info *info);
243245
int devlink_nl_cmd_health_reporter_recover_doit(struct sk_buff *skb,

0 commit comments

Comments
 (0)