|
@@ -978,10 +978,6 @@ static void rt6_set_from(struct rt6_info *rt, struct fib6_info *from)
|
|
rt->rt6i_flags &= ~RTF_EXPIRES;
|
|
rt->rt6i_flags &= ~RTF_EXPIRES;
|
|
rcu_assign_pointer(rt->from, from);
|
|
rcu_assign_pointer(rt->from, from);
|
|
dst_init_metrics(&rt->dst, from->fib6_metrics->metrics, true);
|
|
dst_init_metrics(&rt->dst, from->fib6_metrics->metrics, true);
|
|
- if (from->fib6_metrics != &dst_default_metrics) {
|
|
|
|
- rt->dst._metrics |= DST_METRICS_REFCOUNTED;
|
|
|
|
- refcount_inc(&from->fib6_metrics->refcnt);
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/* Caller must already hold reference to @ort */
|
|
/* Caller must already hold reference to @ort */
|