genetlink: remove userhdr from struct genl_info
authorJakub Kicinski <kuba@kernel.org>
Mon, 14 Aug 2023 21:47:16 +0000 (14:47 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Aug 2023 21:54:44 +0000 (14:54 -0700)
commitbffcc6882a1bb2be8c9420184966f4c2c822078e
tree50c31c2c1ddd30eb23cac61206c50d7aa3c347a8
parentfde9bd4a4d41b65a936d65eb416c1de27cb562f1
genetlink: remove userhdr from struct genl_info

Only three families use info->userhdr today and going forward
we discourage using fixed headers in new families.
So having the pointer to user header in struct genl_info
is an overkill. Compute the header pointer at runtime.

Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Aaron Conole <aconole@redhat.com>
Link: https://lore.kernel.org/r/20230814214723.2924989-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/block/drbd/drbd_nl.c
include/net/genetlink.h
net/netlink/genetlink.c
net/openvswitch/conntrack.c
net/openvswitch/datapath.c
net/openvswitch/meter.c
net/tipc/netlink_compat.c