X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fmpls%2Fmpls_lookup.h;h=95558e05a4eea818c36d1a0991a3e8ebf1b32551;hb=ef90ed08;hp=28c9124f9bfd160be04f18487bf1199e9481e509;hpb=6af1c04f925f0d74fc02789cf8227706ed6a8c2a;p=vpp.git diff --git a/src/vnet/mpls/mpls_lookup.h b/src/vnet/mpls/mpls_lookup.h index 28c9124f9bf..95558e05a4e 100644 --- a/src/vnet/mpls/mpls_lookup.h +++ b/src/vnet/mpls/mpls_lookup.h @@ -18,12 +18,21 @@ #include #include +#include /** * The arc/edge from the MPLS lookup node to the MPLS replicate node */ u32 mpls_lookup_to_replicate_edge; +/** + * Enum of statically configred MPLS lookup next nodes + */ +typedef enum mpls_lookup_next_t_ +{ + MPLS_LOOKUP_NEXT_DROP = 0, +} mpls_lookup_next_t; + /* * Compute flow hash. * We'll use it to select which adjacency to use for this flow. And other things. @@ -92,6 +101,10 @@ mpls_compute_flow_hash (const mpls_unicast_header_t * hdr, hash ^= ip6_compute_flow_hash ((const ip6_header_t *)hdr, IP_FLOW_HASH_DEFAULT); break; + case 5: + /* incorporate the bier flow-hash */ + hash ^= bier_compute_flow_hash ((const bier_hdr_t *)hdr); + break; default: break; }