MPLS_N_ERROR,
} mpls_gre_error_t;
-/*
- * No protocol info, MPLS labels don't have a next-header field
+/*
+ * No protocol info, MPLS labels don't have a next-header field
* presumably the label field tells all...
*/
* A hash table of entries. 21 bit key
* Hash table for reduced memory footprint
*/
- uword * mf_entries;
+ uword * mf_entries;
/**
* The load-balance indeices keyed by 21 bit label+eos bit.
/* rx/tx interface/feature configuration. */
ip_config_main_t feature_config_mains[VNET_N_IP_FEAT];
- /* Built-in unicast feature path indices, see ip_feature_init_cast(...) */
+ /* Built-in unicast feature path indices, see vnet_feature_arc_init(...) */
u32 mpls_rx_feature_lookup;
u32 mpls_rx_feature_not_enabled;
u32 mpls_tx_feature_interface_output;
tx_##x.next = mm->next_feature[VNET_IP_TX_FEAT]; \
mm->next_feature[VNET_IP_TX_FEAT] = &tx_##x; \
} \
-__VA_ARGS__ vnet_ip_feature_registration_t tx_##x
+__VA_ARGS__ vnet_ip_feature_registration_t tx_##x
extern clib_error_t * mpls_feature_init(vlib_main_t * vm);
u8 mpls_sw_interface_is_enabled (u32 sw_if_index);
-mpls_encap_t *
+mpls_encap_t *
mpls_encap_by_fib_and_dest (mpls_main_t * mm, u32 rx_fib, u32 dst_address);
int mpls_label_from_fib_id_and_dest (mpls_main_t *gm, u32 fib_id,
int vnet_mpls_ethernet_add_del_tunnel (u8 *dst,
ip4_address_t *intfc,
u32 mask_width,
- u32 inner_fib_id,
+ u32 inner_fib_id,
u32 tx_sw_if_index,
u32 * tunnel_sw_if_index,
u8 l2_only,
int mpls_fib_reset_labels (u32 fib_id);
-int vnet_mpls_add_del_decap (u32 rx_fib_id,
+int vnet_mpls_add_del_decap (u32 rx_fib_id,
u32 tx_fib_id,
- u32 label_host_byte_order,
+ u32 label_host_byte_order,
int s_bit, int next_index, int is_add);
-int vnet_mpls_add_del_encap (ip4_address_t *dest, u32 fib_id,
+int vnet_mpls_add_del_encap (ip4_address_t *dest, u32 fib_id,
u32 *labels_host_byte_order,
u32 policy_tunnel_index,
int no_dst_hash, u32 * indexp, int is_add);
-int vnet_mpls_policy_tunnel_add_rewrite (mpls_main_t * mm,
- mpls_encap_t * e,
+int vnet_mpls_policy_tunnel_add_rewrite (mpls_main_t * mm,
+ mpls_encap_t * e,
u32 policy_tunnel_index);
typedef struct {
} mpls_lookup_next_t;
#define foreach_mpls_output_next \
-_(DROP, "error-drop")
+_(DROP, "error-drop")
typedef enum {
#define _(s,n) MPLS_OUTPUT_NEXT_##s,