diff options
author | 2016-01-19 17:27:17 -0500 | |
---|---|---|
committer | 2016-01-19 17:27:17 -0500 | |
commit | 2d34374f7d2f624a4a66cf46d4d11e5b49808ada (patch) | |
tree | e32883ab9b8da5fa0c93d499694b7d025eb77ddd /vnet/vnet/ip/ip4_forward.c | |
parent | 52372b6c8e36401721a0533301e1ecdb30109424 (diff) |
Enhance and fix packet trace for IP forwarding as follows:
1. Add fib index to IP6 forwarding trace.
2. Display adjacency index in IP forwarding trace.
3. Fix adjacency display for L3 to L2 forwarding such as
BVI and VXLAN tunnel decap.
4. Setup VXLAN tunnel fib index properly for packet trace.
Change-Id: I261fea5abf51e2550d24cdcee53887be2fdd08de
Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'vnet/vnet/ip/ip4_forward.c')
-rw-r--r-- | vnet/vnet/ip/ip4_forward.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vnet/vnet/ip/ip4_forward.c b/vnet/vnet/ip/ip4_forward.c index fd304163a6b..010e7796735 100644 --- a/vnet/vnet/ip/ip4_forward.c +++ b/vnet/vnet/ip/ip4_forward.c @@ -1753,8 +1753,8 @@ static u8 * format_ip4_forward_next_trace (u8 * s, va_list * args) uword indent = format_get_indent (s); adj = ip_get_adjacency (&im->lookup_main, t->adj_index); - s = format (s, "fib: %d adjacency: %U flow hash: 0x%08x", - t->fib_index, format_ip_adjacency, + s = format (s, "fib %d adj-idx %d : %U flow hash: 0x%08x", + t->fib_index, t->adj_index, format_ip_adjacency, vnm, &im->lookup_main, t->adj_index, t->flow_hash); switch (adj->lookup_next_index) { |