16 #ifndef __MPLS_LOOKUP_H__ 17 #define __MPLS_LOOKUP_H__ 39 u8 next_label_is_entropy;
45 next_label_is_entropy = 0;
53 if (1 == next_label_is_entropy)
66 next_label_is_entropy = 1;
83 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)
u32 mpls_label_t
A label value only, i.e.
#define MPLS_IETF_ENTROPY_LABEL
static u32 mpls_compute_flow_hash(const mpls_unicast_header_t *hdr, flow_hash_config_t flow_hash_config)
static u32 ip6_compute_flow_hash(const ip6_header_t *ip, flow_hash_config_t flow_hash_config)
static u32 vnet_mpls_uc_get_label(mpls_label_t label_exp_s_ttl)
#define IP_FLOW_HASH_DEFAULT
Default: 5-tuple without the "reverse" bit.
u32 flow_hash_config_t
A flow hash configuration is a mask of the flow hash options.
static u32 vnet_mpls_uc_get_s(mpls_label_t label_exp_s_ttl)