diff options
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 40b225f87d5e..964491cf3672 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -4251,17 +4251,6 @@ struct rt6_nh { | |||
4251 | struct list_head next; | 4251 | struct list_head next; |
4252 | }; | 4252 | }; |
4253 | 4253 | ||
4254 | static void ip6_print_replace_route_err(struct list_head *rt6_nh_list) | ||
4255 | { | ||
4256 | struct rt6_nh *nh; | ||
4257 | |||
4258 | list_for_each_entry(nh, rt6_nh_list, next) { | ||
4259 | pr_warn("IPV6: multipath route replace failed (check consistency of installed routes): %pI6c nexthop %pI6c ifi %d\n", | ||
4260 | &nh->r_cfg.fc_dst, &nh->r_cfg.fc_gateway, | ||
4261 | nh->r_cfg.fc_ifindex); | ||
4262 | } | ||
4263 | } | ||
4264 | |||
4265 | static int ip6_route_info_append(struct net *net, | 4254 | static int ip6_route_info_append(struct net *net, |
4266 | struct list_head *rt6_nh_list, | 4255 | struct list_head *rt6_nh_list, |
4267 | struct fib6_info *rt, | 4256 | struct fib6_info *rt, |
@@ -4407,7 +4396,8 @@ static int ip6_route_multipath_add(struct fib6_config *cfg, | |||
4407 | nh->fib6_info = NULL; | 4396 | nh->fib6_info = NULL; |
4408 | if (err) { | 4397 | if (err) { |
4409 | if (replace && nhn) | 4398 | if (replace && nhn) |
4410 | ip6_print_replace_route_err(&rt6_nh_list); | 4399 | NL_SET_ERR_MSG_MOD(extack, |
4400 | "multipath route replace failed (check consistency of installed routes)"); | ||
4411 | err_nh = nh; | 4401 | err_nh = nh; |
4412 | goto add_errout; | 4402 | goto add_errout; |
4413 | } | 4403 | } |