Skip to content

Commit d80bc0f

Browse files
committed
ipv6: Always clone offlink routes.
Do not handle PMTU vs. route lookup creation any differently wrt. offlink routes, always clone them. Reported-by: PK <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3dce38a commit d80bc0f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

net/ipv6/route.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@
7272
#define RT6_TRACE(x...) do { ; } while (0)
7373
#endif
7474

75-
#define CLONE_OFFLINK_ROUTE 0
76-
7775
static struct rt6_info * ip6_rt_copy(struct rt6_info *ort);
7876
static struct dst_entry *ip6_dst_check(struct dst_entry *dst, u32 cookie);
7977
static unsigned int ip6_default_advmss(const struct dst_entry *dst);
@@ -738,13 +736,8 @@ static struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,
738736

739737
if (!rt->rt6i_nexthop && !(rt->rt6i_flags & RTF_NONEXTHOP))
740738
nrt = rt6_alloc_cow(rt, &fl->fl6_dst, &fl->fl6_src);
741-
else {
742-
#if CLONE_OFFLINK_ROUTE
739+
else
743740
nrt = rt6_alloc_clone(rt, &fl->fl6_dst);
744-
#else
745-
goto out2;
746-
#endif
747-
}
748741

749742
dst_release(&rt->dst);
750743
rt = nrt ? : net->ipv6.ip6_null_entry;

0 commit comments

Comments
 (0)