]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita209741be5b157c2789a347ca65aa4899d074aea
tree5ece953a4ef809870dd5ec83abcbe4e1896b6ea6
parent4e89e2b38abc0d6a958b7efc6eca6d68e83093e5
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