fib: Remove unused BIER variables 67/30367/2
authorNeale Ranns <neale.ranns@cisco.com>
Thu, 10 Dec 2020 08:51:24 +0000 (08:51 +0000)
committerNeale Ranns <nranns@cisco.com>
Fri, 11 Dec 2020 08:11:45 +0000 (08:11 +0000)
Type: refactor

Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Change-Id: Idf17c3c02fb77fcadf69a9164abd4da35289aaed

src/plugins/unittest/bier_test.c
src/vnet/fib/fib_path.c
src/vnet/fib/fib_types.h

index d77e312..9b4ba67 100644 (file)
@@ -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 = {
@@ -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);
index 2a4e6ab..8fd2b40 100644 (file)
@@ -272,16 +272,10 @@ typedef struct fib_path_t_ {
                     mpls_eos_bit_t fp_eos;
                 };
            } fp_nh;
-            union {
-                /**
-                 * The FIB table index in which to find the next-hop.
-                 */
-                fib_node_index_t fp_tbl_id;
-                /**
-                 * The BIER FIB the fmask is in
-                 */
-                index_t fp_bier_fib;
-            };
+            /**
+             * The FIB table index in which to find the next-hop.
+             */
+            fib_node_index_t fp_tbl_id;
        } recursive;
        struct {
             /**
@@ -359,7 +353,7 @@ typedef struct fib_path_t_ {
     STRUCT_MARK(path_hash_end);
 
     /**
-     * Memebers in this last section represent information that is
+     * Members in this last section represent information that is
      * dervied during resolution. It should not be copied to new paths
      * nor compared.
      */
index b5a58e7..18362e0 100644 (file)
@@ -549,17 +549,11 @@ typedef struct fib_route_path_t_ {
              */
             fib_rpf_id_t frp_rpf_id;
 
-            union {
-                /**
-                 * The FIB index to lookup the nexthop
-                 * Only valid for recursive paths.
-                 */
-                u32 frp_fib_index;
-                /**
-                 * The BIER table to resolve the fmask in
-                 */
-                u32 frp_bier_fib_index;
-            };
+            /**
+             * The FIB index to lookup the nexthop
+             * Only valid for recursive paths.
+             */
+            u32 frp_fib_index;
             /**
              * The outgoing MPLS label Stack. NULL implies no label.
              */