16 #ifndef __MPLS_LOOKUP_H__ 17 #define __MPLS_LOOKUP_H__ 47 u8 next_label_is_entropy;
53 next_label_is_entropy = 0;
61 if (1 == next_label_is_entropy)
74 next_label_is_entropy = 1;
91 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
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 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)
mpls_lookup_next_t_
Enum of statically configred MPLS lookup next nodes.
#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)