diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2015-08-28 08:42:09 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-29 13:05:16 -0700 |
commit | f6d3c19274c74ff17174df8078e0a14df003667f (patch) | |
tree | 63a2bd2de1e1ad99c5f2598feb4b69beaccf83b3 /net/ipv4/fib_frontend.c | |
parent | 0d5cdef8d5dd0a6819fd85305adb448f5ba56f24 (diff) |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index 7fa277176c33..4036c94dfbe1 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; |