VPP-117: Add trace to ip4 and ip6 lookup nodes 76/1476/2
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 16:27:59 +0000 (16:27 +0000)
commit0febaf15dac4f3edce64a997dcd04f99a51fa759
tree3f7ab04d9ba7c5e3a4cfce73bfbb2b9401ab2720
parent3f3b085c8e1ca12f3325a06d4378e74c120ff038
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