From 9128637ee8f7b0d903551f165a1447d427e8dd19 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 5 Dec 2017 13:24:04 -0800 Subject: BIER in non-MPLS netowrks as decsribed in section 2.2 ihttps://tools.ietf.org/html/draft-ietf-bier-mpls-encapsulation-10 with BIFT encoding from: https://tools.ietf.org/html/draft-wijnandsxu-bier-non-mpls-bift-encoding-00 changes: 1 - introduce the new BIFT lookup table. BIER tables that have an associated MPLS label are added to the MPLS-FIB. Those that don't are added to the BIER table 2 - BIER routes that have no associated output MPLS label will add a BIFT label. 3 - The BIER FMask has a path-list as a member to resolve via any possible path. Change-Id: I1fd4d9dbd074f0e855c16e9329b81460ebe1efce Signed-off-by: Neale Ranns --- src/vnet/udp/udp_encap.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/vnet/udp/udp_encap.c') diff --git a/src/vnet/udp/udp_encap.c b/src/vnet/udp/udp_encap.c index 2999d4a73ce..91d730c0ade 100644 --- a/src/vnet/udp/udp_encap.c +++ b/src/vnet/udp/udp_encap.c @@ -392,6 +392,11 @@ const static char *const udp4_encap_mpls_nodes[] = { NULL, }; +const static char *const udp4_encap_bier_nodes[] = { + "udp4-encap", + NULL, +}; + const static char *const udp6_encap_ip4_nodes[] = { "udp6-encap", NULL, @@ -407,16 +412,23 @@ const static char *const udp6_encap_mpls_nodes[] = { NULL, }; +const static char *const udp6_encap_bier_nodes[] = { + "udp6-encap", + NULL, +}; + const static char *const *const udp4_encap_nodes[DPO_PROTO_NUM] = { [DPO_PROTO_IP4] = udp4_encap_ip4_nodes, [DPO_PROTO_IP6] = udp4_encap_ip6_nodes, [DPO_PROTO_MPLS] = udp4_encap_mpls_nodes, + [DPO_PROTO_BIER] = udp4_encap_bier_nodes, }; const static char *const *const udp6_encap_nodes[DPO_PROTO_NUM] = { [DPO_PROTO_IP4] = udp6_encap_ip4_nodes, [DPO_PROTO_IP6] = udp6_encap_ip6_nodes, [DPO_PROTO_MPLS] = udp6_encap_mpls_nodes, + [DPO_PROTO_BIER] = udp6_encap_bier_nodes, }; /* @@ -433,7 +445,6 @@ const static dpo_vft_t udp_encap_dpo_vft = { .dv_lock = udp_encap_dpo_lock, .dv_unlock = udp_encap_dpo_unlock, .dv_format = format_udp_encap_dpo, - //.dv_mem_show = replicate_mem_show, }; clib_error_t * -- cgit 1.2.3-korg