@@ -1078,6 +1078,8 @@ static struct rt6_info *ip6_pol_route_lookup(struct net *net,
1078
1078
goto restart ;
1079
1079
}
1080
1080
1081
+ trace_fib6_table_lookup (net , f6i , table , fl6 );
1082
+
1081
1083
/* Search through exception table */
1082
1084
rt = rt6_find_cached_rt (f6i , & fl6 -> daddr , & fl6 -> saddr );
1083
1085
if (rt ) {
@@ -1096,8 +1098,6 @@ static struct rt6_info *ip6_pol_route_lookup(struct net *net,
1096
1098
1097
1099
rcu_read_unlock ();
1098
1100
1099
- trace_fib6_table_lookup (net , rt , table , fl6 );
1100
-
1101
1101
return rt ;
1102
1102
}
1103
1103
@@ -1827,6 +1827,8 @@ struct fib6_info *fib6_table_lookup(struct net *net, struct fib6_table *table,
1827
1827
}
1828
1828
}
1829
1829
1830
+ trace_fib6_table_lookup (net , f6i , table , fl6 );
1831
+
1830
1832
return f6i ;
1831
1833
}
1832
1834
@@ -1853,7 +1855,6 @@ struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,
1853
1855
rt = net -> ipv6 .ip6_null_entry ;
1854
1856
rcu_read_unlock ();
1855
1857
dst_hold (& rt -> dst );
1856
- trace_fib6_table_lookup (net , rt , table , fl6 );
1857
1858
return rt ;
1858
1859
}
1859
1860
@@ -1864,7 +1865,6 @@ struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,
1864
1865
dst_use_noref (& rt -> dst , jiffies );
1865
1866
1866
1867
rcu_read_unlock ();
1867
- trace_fib6_table_lookup (net , rt , table , fl6 );
1868
1868
return rt ;
1869
1869
} else if (unlikely ((fl6 -> flowi6_flags & FLOWI_FLAG_KNOWN_NH ) &&
1870
1870
!(f6i -> fib6_flags & RTF_GATEWAY ))) {
@@ -1890,9 +1890,7 @@ struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,
1890
1890
dst_hold (& uncached_rt -> dst );
1891
1891
}
1892
1892
1893
- trace_fib6_table_lookup (net , uncached_rt , table , fl6 );
1894
1893
return uncached_rt ;
1895
-
1896
1894
} else {
1897
1895
/* Get a percpu copy */
1898
1896
@@ -1906,7 +1904,7 @@ struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,
1906
1904
1907
1905
local_bh_enable ();
1908
1906
rcu_read_unlock ();
1909
- trace_fib6_table_lookup ( net , pcpu_rt , table , fl6 );
1907
+
1910
1908
return pcpu_rt ;
1911
1909
}
1912
1910
}
@@ -2491,7 +2489,7 @@ static struct rt6_info *__ip6_route_redirect(struct net *net,
2491
2489
2492
2490
rcu_read_unlock ();
2493
2491
2494
- trace_fib6_table_lookup (net , ret , table , fl6 );
2492
+ trace_fib6_table_lookup (net , rt , table , fl6 );
2495
2493
return ret ;
2496
2494
};
2497
2495
0 commit comments