16 #ifndef __MPLS_LOOKUP_H__ 17 #define __MPLS_LOOKUP_H__ 50 u8 next_label_is_entropy;
56 next_label_is_entropy = 0;
64 if (1 == next_label_is_entropy)
77 next_label_is_entropy = 1;
94 switch (((
u8*)hdr)[0] >> 4)
u32 mpls_lookup_to_replicate_edge
The arc/edge from the MPLS lookup node to the MPLS replicate node.
static u32 ip4_compute_flow_hash(const ip4_header_t *ip, flow_hash_config_t flow_hash_config)
#define MPLS_IETF_ENTROPY_LABEL
u32 mpls_label_t
A label value only, i.e.
static u32 vnet_mpls_uc_get_s(mpls_label_t label_exp_s_ttl)
enum mpls_lookup_next_t_ mpls_lookup_next_t
Enum of statically configred MPLS lookup next nodes.
static u32 mpls_compute_flow_hash(const mpls_unicast_header_t *hdr, flow_hash_config_t flow_hash_config)
static_always_inline u32 bier_compute_flow_hash(const bier_hdr_t *hdr)
#define IP_FLOW_HASH_DEFAULT
Default: 5-tuple without the "reverse" bit.
static u32 vnet_mpls_uc_get_label(mpls_label_t label_exp_s_ttl)
mpls_lookup_next_t_
Enum of statically configred MPLS lookup next nodes.
static u32 ip6_compute_flow_hash(const ip6_header_t *ip, flow_hash_config_t flow_hash_config)
A BIER header of variable length The encoding follows: https://tools.ietf.org/html/draft-ietf-bier-mp...
u32 flow_hash_config_t
A flow hash configuration is a mask of the flow hash options.