VPP-117: Add trace to ip4 and ip6 lookup nodes 50/1450/3
authorPierre Pfister <ppfister@cisco.com>
Wed, 8 Jun 2016 11:23:21 +0000 (12:23 +0100)
committerDave Barach <openvpp@barachs.net>
Thu, 9 Jun 2016 13:38:05 +0000 (13:38 +0000)
commit363db8809514dad0dc657c55aaf79139a45830f8
tree3b33a69eb3b749f84a87794a62c066cbcc2b2321
parent419e65629c83552bcc3142a09f0856d7fe3f6584
VPP-117: Add trace to ip4 and ip6 lookup nodes

The absence of trace in ip lookup nodes is misleading to many people.
This patch adds ip lookup tracing and therefore contribute to
worldwide happiness.

In addition, this patch makes sure sw_if_index[VLIB_TX] is
considered when tracing the fib_index value. In ip4/6-rewrite,
the value corresponds to the tx interface index. The formatting
function is therefore modified to take that case into account.

Change-Id: I5915f0446a15c45e391eedfdfcedd9057aa6a237
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
vnet/vnet/ip/ip4.h
vnet/vnet/ip/ip4_forward.c
vnet/vnet/ip/ip6.h
vnet/vnet/ip/ip6_forward.c