]> 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)
commit6e3545ec752866fe5a6d9d5b6f896943dbc21f50
tree5ece953a4ef809870dd5ec83abcbe4e1896b6ea6
parentc8b6ce4bbf4f2375267575872e440c2969e1ef14
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