]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: let trace_fib6_table_lookup() dereference the fib table
authorPaolo Abeni <pabeni@redhat.com>
Thu, 19 Oct 2017 07:31:43 +0000 (09:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Oct 2017 01:23:38 +0000 (02:23 +0100)
commitff1b08870444b4658578ae5630cfb1ec2239781d
tree906a4344f82a0e351af5d783bee4f60f02febe8b
parent50a5fedd3d5f614a8cbfaf87ef8553edae056bdc
ipv6: let trace_fib6_table_lookup() dereference the fib table

The perf traces for ipv6 routing code show a relevant cost around
trace_fib6_table_lookup(), even if no trace is enabled. This is
due to the fib6_table de-referencing currently performed by the
caller.

Let's the tracing code pay this overhead, passing to the trace
helper the table pointer. This gives small but measurable
performance improvement under UDP flood.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/fib6.h
net/ipv6/route.c