Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipv6: Don't pass net to ip6_route_info_append().

net is not used in ip6_route_info_append() after commit 36f19d5b4f99
("net/ipv6: Remove extra call to ip6_convert_metrics for multipath case").

Let's remove the argument.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Link: https://patch.msgid.link/20250418000443.43734-10-kuniyu@amazon.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Kuniyuki Iwashima and committed by
Paolo Abeni
87d5d921 d27b9c40

+2 -4
+2 -4
net/ipv6/route.c
··· 5318 5318 struct list_head next; 5319 5319 }; 5320 5320 5321 - static int ip6_route_info_append(struct net *net, 5322 - struct list_head *rt6_nh_list, 5321 + static int ip6_route_info_append(struct list_head *rt6_nh_list, 5323 5322 struct fib6_info *rt, 5324 5323 struct fib6_config *r_cfg) 5325 5324 { ··· 5458 5459 5459 5460 rt->fib6_nh->fib_nh_weight = rtnh->rtnh_hops + 1; 5460 5461 5461 - err = ip6_route_info_append(info->nl_net, &rt6_nh_list, 5462 - rt, &r_cfg); 5462 + err = ip6_route_info_append(&rt6_nh_list, rt, &r_cfg); 5463 5463 if (err) { 5464 5464 fib6_info_release(rt); 5465 5465 goto cleanup;