diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-08-11 17:57:07 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-08-14 11:47:25 -0700 |
commit | 7d3c6fec6135e10842587f38a15d7d06fd02c21f (patch) | |
tree | 01727bea474d21a089592c14dc7a3218e13a6c1b /net/devlink/netlink.c | |
parent | 24c8e56d4f983527cc5e1f6d771fef8ec7ce352e (diff) | |
download | lwn-7d3c6fec6135e10842587f38a15d7d06fd02c21f.tar.gz lwn-7d3c6fec6135e10842587f38a15d7d06fd02c21f.zip |
devlink: pass flags as an arg of dump_one() callback
In order to easily set NLM_F_DUMP_FILTERED for partial dumps, pass the
flags as an arg of dump_one() callback. Currently, it is always
NLM_F_MULTI.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230811155714.1736405-7-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/devlink/netlink.c')
-rw-r--r-- | net/devlink/netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/devlink/netlink.c b/net/devlink/netlink.c index 13388665f319..47e44fb45815 100644 --- a/net/devlink/netlink.c +++ b/net/devlink/netlink.c @@ -182,7 +182,7 @@ int devlink_nl_dumpit(struct sk_buff *msg, struct netlink_callback *cb, devl_lock(devlink); if (devl_is_registered(devlink)) - err = dump_one(msg, devlink, cb); + err = dump_one(msg, devlink, cb, NLM_F_MULTI); else err = 0; |