X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Funittest%2Fbier_test.c;h=9b4ba67e7cd31f481f093759841998983f5cb8cc;hb=542088597886df774e63f841166721deeffef1c1;hp=e6799eb4f4288ac415f5edf516293132df1179d5;hpb=8feeaff56fa9a4fbdfc06131f28a1060ffd9645d;p=vpp.git diff --git a/src/plugins/unittest/bier_test.c b/src/plugins/unittest/bier_test.c index e6799eb4f42..9b4ba67e7cd 100644 --- a/src/plugins/unittest/bier_test.c +++ b/src/plugins/unittest/bier_test.c @@ -82,7 +82,7 @@ static u8 * format_test_interface_name (u8 * s, va_list * args) return format (s, "test-eth%d", dev_instance); } -static uword dummy_interface_tx (vlib_main_t * vm, +static uword placeholder_interface_tx (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame) { @@ -93,7 +93,7 @@ static uword dummy_interface_tx (vlib_main_t * vm, VNET_DEVICE_CLASS (test_interface_device_class,static) = { .name = "Test interface", .format_device_name = format_test_interface_name, - .tx_function = dummy_interface_tx, + .tx_function = placeholder_interface_tx, }; static u8 *hw_address; @@ -322,7 +322,6 @@ bier_test_mpls_spf (void) fib_route_path_t *paths_1_1_1_1 = NULL, *input_paths_1_1_1_1; fib_route_path_t path_1_1_1_1 = { .frp_addr = nh_1_1_1_1, - .frp_bier_fib_index = bti, .frp_sw_if_index = ~0, }; fib_mpls_label_t fml_500 = { @@ -518,7 +517,6 @@ bier_test_mpls_spf (void) }; fib_route_path_t *paths_1_1_1_2 = NULL, *input_paths_1_1_1_2, path_1_1_1_2 = { .frp_addr = nh_1_1_1_2, - .frp_bier_fib_index = bti, .frp_sw_if_index = ~0, }; fib_mpls_label_t fml_501 = { @@ -770,12 +768,12 @@ bier_test_mpls_imp (void) .frp_bier_imp = bii, .frp_weight = 0, .frp_flags = FIB_ROUTE_PATH_BIER_IMP, + .frp_mitf_flags = MFIB_ITF_FLAG_FORWARD, }; mfib_table_entry_path_update(0, // default table &pfx_1_1_1_1_c_239_1_1_1 , MFIB_SOURCE_API, - &path_via_bier_imp_1, - MFIB_ITF_FLAG_FORWARD); + &path_via_bier_imp_1); mfib_table_entry_delete(0, &pfx_1_1_1_1_c_239_1_1_1 , MFIB_SOURCE_API); @@ -825,7 +823,6 @@ bier_test_mpls_disp (void) fib_route_path_t *paths_via_disp = NULL, path_via_disp = { // .frp_addr = all-zeros .frp_proto = DPO_PROTO_BIER, - .frp_bier_fib_index = bdti1, .frp_sw_if_index = ~0, }; vec_add1(paths_via_disp, path_via_disp);