ipv4: Update fib_table_lookup tracepoint to take common nexthop
authorDavid Ahern <dsahern@gmail.com>
Tue, 2 Apr 2019 21:11:54 +0000 (14:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Apr 2019 04:50:20 +0000 (21:50 -0700)
commit0af7e7c128eb33f2dc16ed088ced00675785d628
tree5ece953a4ef809870dd5ec83abcbe4e1896b6ea6
parent4950c2ba49cc6f2b38dbedcfa0ff67acf761419a
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>
include/trace/events/fib.h
net/ipv4/fib_trie.c