genetlink: add struct genl_info to struct genl_dumpit_info
authorJakub Kicinski <kuba@kernel.org>
Mon, 14 Aug 2023 21:47:17 +0000 (14:47 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Aug 2023 21:54:44 +0000 (14:54 -0700)
commit9272af109fe65d1a13f28c5c13777b62d3e97e8c
treeedb1bbfc92c4f5314ca2fff9faa4e7a24ee3390d
parentbffcc6882a1bb2be8c9420184966f4c2c822078e
genetlink: add struct genl_info to struct genl_dumpit_info

Netlink GET implementations must currently juggle struct genl_info
and struct netlink_callback, depending on whether they were called
from doit or dumpit.

Add genl_info to the dump state and populate the fields.
This way implementations can simply pass struct genl_info around.

Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20230814214723.2924989-5-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/genetlink.h
net/netlink/genetlink.c