projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d27b9c4
)
ipv6: Don't pass net to ip6_route_info_append().
author
Kuniyuki Iwashima
<kuniyu@amazon.com>
Fri, 18 Apr 2025 00:03:50 +0000
(17:03 -0700)
committer
Paolo Abeni
<pabeni@redhat.com>
Thu, 24 Apr 2025 07:29:56 +0000
(09:29 +0200)
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>
net/ipv6/route.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/route.c
b/net/ipv6/route.c
index 3037d13043882aefe0251bd81c58976ee6f6d2cd..a687eec1eab006a4c161a22fb0a4f48f4eb95dee 100644
(file)
--- a/
net/ipv6/route.c
+++ b/
net/ipv6/route.c
@@
-5318,8
+5318,7
@@
struct rt6_nh {
struct list_head next;
};
-static int ip6_route_info_append(struct net *net,
- struct list_head *rt6_nh_list,
+static int ip6_route_info_append(struct list_head *rt6_nh_list,
struct fib6_info *rt,
struct fib6_config *r_cfg)
{
@@
-5459,8
+5458,7
@@
static int ip6_route_multipath_add(struct fib6_config *cfg,
rt->fib6_nh->fib_nh_weight = rtnh->rtnh_hops + 1;
- err = ip6_route_info_append(info->nl_net, &rt6_nh_list,
- rt, &r_cfg);
+ err = ip6_route_info_append(&rt6_nh_list, rt, &r_cfg);
if (err) {
fib6_info_release(rt);
goto cleanup;