Skip to content

Commit 87d5d92

Browse files
q2venPaolo Abeni
authored andcommitted
ipv6: Don't pass net to ip6_route_info_append().
net is not used in ip6_route_info_append() after commit 36f19d5 ("net/ipv6: Remove extra call to ip6_convert_metrics for multipath case"). Let's remove the argument. Signed-off-by: Kuniyuki Iwashima <[email protected]> Acked-by: Paolo Abeni <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent d27b9c4 commit 87d5d92

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

net/ipv6/route.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5318,8 +5318,7 @@ struct rt6_nh {
53185318
struct list_head next;
53195319
};
53205320

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,
53235322
struct fib6_info *rt,
53245323
struct fib6_config *r_cfg)
53255324
{
@@ -5459,8 +5458,7 @@ static int ip6_route_multipath_add(struct fib6_config *cfg,
54595458

54605459
rt->fib6_nh->fib_nh_weight = rtnh->rtnh_hops + 1;
54615460

5462-
err = ip6_route_info_append(info->nl_net, &rt6_nh_list,
5463-
rt, &r_cfg);
5461+
err = ip6_route_info_append(&rt6_nh_list, rt, &r_cfg);
54645462
if (err) {
54655463
fib6_info_release(rt);
54665464
goto cleanup;

0 commit comments

Comments
 (0)