mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
net: IPv6 fib lookup tracepoint
Add tracepoint to show fib6 table lookups and result. Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e2f9dc3bd2
commit
b811580d91
3 changed files with 90 additions and 0 deletions
|
@ -62,6 +62,7 @@
|
|||
#include <net/lwtunnel.h>
|
||||
#include <net/ip_tunnels.h>
|
||||
#include <net/l3mdev.h>
|
||||
#include <trace/events/fib6.h>
|
||||
|
||||
#include <asm/uaccess.h>
|
||||
|
||||
|
@ -865,6 +866,9 @@ restart:
|
|||
}
|
||||
dst_use(&rt->dst, jiffies);
|
||||
read_unlock_bh(&table->tb6_lock);
|
||||
|
||||
trace_fib6_table_lookup(net, rt, table->tb6_id, fl6);
|
||||
|
||||
return rt;
|
||||
|
||||
}
|
||||
|
@ -1078,6 +1082,8 @@ redo_rt6_select:
|
|||
read_unlock_bh(&table->tb6_lock);
|
||||
|
||||
rt6_dst_from_metrics_check(rt);
|
||||
|
||||
trace_fib6_table_lookup(net, rt, table->tb6_id, fl6);
|
||||
return rt;
|
||||
} else if (unlikely((fl6->flowi6_flags & FLOWI_FLAG_KNOWN_NH) &&
|
||||
!(rt->rt6i_flags & RTF_GATEWAY))) {
|
||||
|
@ -1101,6 +1107,8 @@ redo_rt6_select:
|
|||
uncached_rt = net->ipv6.ip6_null_entry;
|
||||
|
||||
dst_hold(&uncached_rt->dst);
|
||||
|
||||
trace_fib6_table_lookup(net, uncached_rt, table->tb6_id, fl6);
|
||||
return uncached_rt;
|
||||
|
||||
} else {
|
||||
|
@ -1125,6 +1133,7 @@ redo_rt6_select:
|
|||
dst_release(&rt->dst);
|
||||
}
|
||||
|
||||
trace_fib6_table_lookup(net, pcpu_rt, table->tb6_id, fl6);
|
||||
return pcpu_rt;
|
||||
|
||||
}
|
||||
|
@ -1474,6 +1483,7 @@ out:
|
|||
|
||||
read_unlock_bh(&table->tb6_lock);
|
||||
|
||||
trace_fib6_table_lookup(net, rt, table->tb6_id, fl6);
|
||||
return rt;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue