diff options
author | David Ahern <dsahern@gmail.com> | 2019-04-03 00:11:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-04 07:50:20 +0300 |
commit | 0af7e7c128eb33f2dc16ed088ced00675785d628 (patch) | |
tree | 5ece953a4ef809870dd5ec83abcbe4e1896b6ea6 /net | |
parent | 4950c2ba49cc6f2b38dbedcfa0ff67acf761419a (diff) | |
download | linux-0af7e7c128eb33f2dc16ed088ced00675785d628.tar.xz |
ipv4: Update fib_table_lookup tracepoint to take common nexthop
Update fib_table_lookup tracepoint to take a fib_nh_common struct and
dump the v6 gateway address if the nexthop uses it.
Over the years saddr has not proven useful and the output of the
tracepoint produces very long lines. Since saddr is not part of
fib_nh_common, drop it. If it needs to be added later, fib_nh which
contains saddr can be obtained from a fib_nh_common via container_of.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/fib_trie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 1e3b492690f9..13b3327206f9 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c @@ -1498,7 +1498,7 @@ found: #ifdef CONFIG_IP_FIB_TRIE_STATS this_cpu_inc(stats->semantic_match_passed); #endif - trace_fib_table_lookup(tb->tb_id, flp, nh, err); + trace_fib_table_lookup(tb->tb_id, flp, &nh->nh_common, err); return err; } |