diff options
author | Neale Ranns <nranns@cisco.com> | 2017-03-16 07:34:55 -0400 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-03-17 16:08:56 +0000 |
commit | 696e88da9799056036f329676213f3c0c0a1db9c (patch) | |
tree | 750943198b82e1c57e8a0b00fafd91848a8b3e91 /src/vnet/mpls/mpls.c | |
parent | 4b919a56642ccd0a44920feace872aeb5b7a62cf (diff) |
MPLS performance improvments.
1 - Quad loop lookup and label imposition.
2 - optimise imposition for the 1 label case
3 - input gets TTL from header directly (no byte swap)
Change-Id: I59204c9e5d134b0df75d7afa43e360f946d1ffe7
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/mpls/mpls.c')
-rw-r--r-- | src/vnet/mpls/mpls.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vnet/mpls/mpls.c b/src/vnet/mpls/mpls.c index 7ae4aa00264..482577b17ef 100644 --- a/src/vnet/mpls/mpls.c +++ b/src/vnet/mpls/mpls.c @@ -161,6 +161,14 @@ u8 * format_mpls_unicast_header_net_byte_order (u8 * s, va_list * args) &h_host); } +typedef struct { + u32 fib_index; + u32 entry_index; + u32 dest; + u32 s_bit; + u32 label; +} show_mpls_fib_t; + int mpls_dest_cmp(void * a1, void * a2) { |