From a705f7171b0248a828a8871e56d72af7a1ac8221 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Thu, 10 Dec 2020 08:51:24 +0000 Subject: fib: Remove unused BIER variables Type: refactor Signed-off-by: Neale Ranns Change-Id: Idf17c3c02fb77fcadf69a9164abd4da35289aaed --- src/vnet/fib/fib_path.c | 16 +++++----------- src/vnet/fib/fib_types.h | 16 +++++----------- 2 files changed, 10 insertions(+), 22 deletions(-) (limited to 'src/vnet/fib') diff --git a/src/vnet/fib/fib_path.c b/src/vnet/fib/fib_path.c index 2a4e6ab551f..8fd2b40a94b 100644 --- a/src/vnet/fib/fib_path.c +++ b/src/vnet/fib/fib_path.c @@ -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. */ diff --git a/src/vnet/fib/fib_types.h b/src/vnet/fib/fib_types.h index b5a58e7b674..18362e0965d 100644 --- a/src/vnet/fib/fib_types.h +++ b/src/vnet/fib/fib_types.h @@ -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. */ -- cgit 1.2.3-korg