mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
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>
This commit is contained in:
committed by
Jakub Kicinski
parent
24c8e56d4f
commit
7d3c6fec61
@@ -115,7 +115,8 @@ struct devlink_nl_dump_state {
|
||||
|
||||
typedef int devlink_nl_dump_one_func_t(struct sk_buff *msg,
|
||||
struct devlink *devlink,
|
||||
struct netlink_callback *cb);
|
||||
struct netlink_callback *cb,
|
||||
int flags);
|
||||
|
||||
extern const struct genl_small_ops devlink_nl_small_ops[54];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user