|
@@ -62,6 +62,7 @@
|
|
|
#include <net/lwtunnel.h>
|
|
#include <net/lwtunnel.h>
|
|
|
#include <net/ip_tunnels.h>
|
|
#include <net/ip_tunnels.h>
|
|
|
#include <net/l3mdev.h>
|
|
#include <net/l3mdev.h>
|
|
|
|
|
+#include <trace/events/fib6.h>
|
|
|
|
|
|
|
|
#include <asm/uaccess.h>
|
|
#include <asm/uaccess.h>
|
|
|
|
|
|
|
@@ -865,6 +866,9 @@ static struct rt6_info *ip6_pol_route_lookup(struct net *net,
|
|
|
}
|
|
}
|
|
|
dst_use(&rt->dst, jiffies);
|
|
dst_use(&rt->dst, jiffies);
|
|
|
read_unlock_bh(&table->tb6_lock);
|
|
read_unlock_bh(&table->tb6_lock);
|
|
|
|
|
+
|
|
|
|
|
+ trace_fib6_table_lookup(net, rt, table->tb6_id, fl6);
|
|
|
|
|
+
|
|
|
return rt;
|
|
return rt;
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -1078,6 +1082,8 @@ static struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,
|
|
|
read_unlock_bh(&table->tb6_lock);
|
|
read_unlock_bh(&table->tb6_lock);
|
|
|
|
|
|
|
|
rt6_dst_from_metrics_check(rt);
|
|
rt6_dst_from_metrics_check(rt);
|
|
|
|
|
+
|
|
|
|
|
+ trace_fib6_table_lookup(net, rt, table->tb6_id, fl6);
|
|
|
return rt;
|
|
return rt;
|
|
|
} else if (unlikely((fl6->flowi6_flags & FLOWI_FLAG_KNOWN_NH) &&
|
|
} else if (unlikely((fl6->flowi6_flags & FLOWI_FLAG_KNOWN_NH) &&
|
|
|
!(rt->rt6i_flags & RTF_GATEWAY))) {
|
|
!(rt->rt6i_flags & RTF_GATEWAY))) {
|
|
@@ -1101,6 +1107,8 @@ static struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,
|
|
|
uncached_rt = net->ipv6.ip6_null_entry;
|
|
uncached_rt = net->ipv6.ip6_null_entry;
|
|
|
|
|
|
|
|
dst_hold(&uncached_rt->dst);
|
|
dst_hold(&uncached_rt->dst);
|
|
|
|
|
+
|
|
|
|
|
+ trace_fib6_table_lookup(net, uncached_rt, table->tb6_id, fl6);
|
|
|
return uncached_rt;
|
|
return uncached_rt;
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
@@ -1125,6 +1133,7 @@ static struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,
|
|
|
dst_release(&rt->dst);
|
|
dst_release(&rt->dst);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ trace_fib6_table_lookup(net, pcpu_rt, table->tb6_id, fl6);
|
|
|
return pcpu_rt;
|
|
return pcpu_rt;
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -1474,6 +1483,7 @@ static struct rt6_info *__ip6_route_redirect(struct net *net,
|
|
|
|
|
|
|
|
read_unlock_bh(&table->tb6_lock);
|
|
read_unlock_bh(&table->tb6_lock);
|
|
|
|
|
|
|
|
|
|
+ trace_fib6_table_lookup(net, rt, table->tb6_id, fl6);
|
|
|
return rt;
|
|
return rt;
|
|
|
};
|
|
};
|
|
|
|
|
|