commit | 9128637ee8f7b0d903551f165a1447d427e8dd19 | [log] [tgz] |
---|---|---|
author | Neale Ranns <nranns@cisco.com> | Tue Dec 05 13:24:04 2017 -0800 |
committer | Florin Coras <florin.coras@gmail.com> | Sat Dec 09 20:55:08 2017 +0000 |
tree | 244014dd1064643946d64066e352ee1627bf622c | |
parent | cef87f1a5eb4d69cf11ce1cd3c5506edcfba74c4 [diff] [blame] |
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 <nranns@cisco.com>
diff --git a/src/vnet/dpo/load_balance.c b/src/vnet/dpo/load_balance.c index 8074555..db0ebcd 100644 --- a/src/vnet/dpo/load_balance.c +++ b/src/vnet/dpo/load_balance.c
@@ -198,6 +198,16 @@ return (load_balance_get_index(load_balance_create_i(n_buckets, lb_proto, fhc))); } +u16 +load_balance_n_buckets (index_t lbi) +{ + load_balance_t *lb; + + lb = load_balance_get(lbi); + + return (lb->lb_n_buckets); +} + static inline void load_balance_set_bucket_i (load_balance_t *lb, u32 bucket,