diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-08-14 23:47:16 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-08-15 23:54:44 +0200 |
commit | bffcc6882a1bb2be8c9420184966f4c2c822078e (patch) | |
tree | 50c31c2c1ddd30eb23cac61206c50d7aa3c347a8 /net/openvswitch/conntrack.c | |
parent | genetlink: make genl_info->nlhdr const (diff) | |
download | linux-bffcc6882a1bb2be8c9420184966f4c2c822078e.tar.xz linux-bffcc6882a1bb2be8c9420184966f4c2c822078e.zip |
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>
Diffstat (limited to 'net/openvswitch/conntrack.c')
-rw-r--r-- | net/openvswitch/conntrack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/conntrack.c b/net/openvswitch/conntrack.c index 0cfa1e9482e6..0b9a785dea45 100644 --- a/net/openvswitch/conntrack.c +++ b/net/openvswitch/conntrack.c @@ -1605,7 +1605,7 @@ static struct sk_buff * ovs_ct_limit_cmd_reply_start(struct genl_info *info, u8 cmd, struct ovs_header **ovs_reply_header) { - struct ovs_header *ovs_header = info->userhdr; + struct ovs_header *ovs_header = genl_info_userhdr(info); struct sk_buff *skb; skb = genlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); |