summaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_frontend.c
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2015-08-28 08:42:09 -0700
committerDavid S. Miller <davem@davemloft.net>2015-08-29 13:05:16 -0700
commitf6d3c19274c74ff17174df8078e0a14df003667f (patch)
tree63a2bd2de1e1ad99c5f2598feb4b69beaccf83b3 /net/ipv4/fib_frontend.c
parent0d5cdef8d5dd0a6819fd85305adb448f5ba56f24 (diff)
downloadop-kernel-dev-f6d3c19274c74ff17174df8078e0a14df003667f.zip
op-kernel-dev-f6d3c19274c74ff17174df8078e0a14df003667f.tar.gz
net: FIB tracepoints
A few useful tracepoints developing VRF driver. Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r--net/ipv4/fib_frontend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
index 7fa2771..4036c94 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
@@ -46,6 +46,7 @@
#include <net/rtnetlink.h>
#include <net/xfrm.h>
#include <net/vrf.h>
+#include <trace/events/fib.h>
#ifndef CONFIG_IP_MULTIPLE_TABLES
@@ -344,6 +345,8 @@ static int __fib_validate_source(struct sk_buff *skb, __be32 src, __be32 dst,
fl4.flowi4_mark = IN_DEV_SRC_VMARK(idev) ? skb->mark : 0;
+ trace_fib_validate_source(dev, &fl4);
+
net = dev_net(dev);
if (fib_lookup(net, &fl4, &res, 0))
goto last_resort;
OpenPOWER on IntegriCloud