option version = "1.1.0";
import "vnet/fib/fib_types.api";
-/** \brief BIER Table Indentifier
+/** \brief BIER Table Identifier
@param bt_set - The BIER set
@param bt_sub_domain - the sud-domain
@param bt_bit_header_length - the number of bits in the header length
@param br_bp - The Bit-position value
@param br_tbl_id - The BIER table-id the route is added in
@param br_is_add - Is this a route add or delete
- @param br_is_replace - Are the paths specfied replacing those already
+ @param br_is_replace - Are the paths specified replacing those already
present or are they to be combined.
is_replace = 1 and n_paths=0 implies delete the
route and all paths;
@param context - sender context, to match reply w/ request
@param bde_bp - The Bit-position value for the entry, i.e. the sender's
Use 0 for the default (match any source) entry.
- @param bde_tbl_id - The BIER dispositiontable-id the route is added in
- @param bde_next_hop_sw_if_index - the nextop interface
+ @param bde_tbl_id - The BIER disposition table-id the route is added in
+ @param bde_next_hop_sw_if_index - the next hop interface
@param bde_is_add - Is this a route add or delete
@param bde_payload_proto - The payload protocol for which the next-hop
is added
VLIB_CLI_COMMAND (show_bier_bift_command, static) = {
.path = "show bier bift",
- .short_help = "show bier bift [set <value> sd <value> bsl <value>]",
+ .short_help = "show bier bift [set <value>] [sd <value>] [bsl <value>]",
.function = show_bier_bift_cmd,
};
#include <vnet/mpls/packet.h>
/*
- * the lookup table used to get from a BFIT_ID to a load-balance.
- * As per-draft draft-ietf-bier-mpls-encapsulation-10 this isthe
+ * the lookup table used to get from a BIFT_ID to a load-balance.
+ * As per-draft draft-ietf-bier-mpls-encapsulation-10 this is the
* use case for non-MPLS networks
*/
#define BIER_BIFT_N_ENTRIES (1 << 20)
extern u8 *format_bier_bit_string(u8 * s, va_list * args);
-#define BIER_BBS_NUM_INT_BUKCETS(_bbs) \
+#define BIER_BBS_NUM_INT_BUCKETS(_bbs) \
(BIER_BBS_LEN_TO_BUCKETS(_bbs->bbs_len) / sizeof(int))
always_inline int
u16 index;
for (index = 0;
- index < BIER_BBS_NUM_INT_BUKCETS(src);
+ index < BIER_BBS_NUM_INT_BUCKETS(src);
index++) {
if (((int*)src->bbs_buckets)[index] != 0) {
return (0);
ASSERT(src->bbs_len == dest->bbs_len);
for (index = 0;
- index < BIER_BBS_NUM_INT_BUKCETS(src);
+ index < BIER_BBS_NUM_INT_BUCKETS(src);
index++) {
((int*)dest->bbs_buckets)[index] &= ~(((int*)src->bbs_buckets)[index]);
}
ASSERT(src->bbs_len == dest->bbs_len);
for (index = 0;
- index < BIER_BBS_NUM_INT_BUKCETS(src);
+ index < BIER_BBS_NUM_INT_BUCKETS(src);
index++) {
((int*)dest->bbs_buckets)[index] &= ((int*)src->bbs_buckets)[index];
}
old_pli = *pli;
/*
- * create a new or update the exisitng path-list for this
+ * create a new or update the existing path-list for this
* payload protocol
*/
if (FIB_NODE_INDEX_INVALID == *pli)
old_pli = *pli;
/*
- * update the exisitng path-list for this payload protocol
+ * update the existing path-list for this payload protocol
*/
if (FIB_NODE_INDEX_INVALID != *pli)
{
CLIB_CACHE_LINE_ALIGN_MARK(cacheline0);
/**
- * The DPO contirubted from the per-payload protocol parents
- * on cachline 1.
+ * The DPO contributed from the per-payload protocol parents
+ * on cacheline 1.
*/
struct
{
}
/*
- * update the ECNP tables with the new choice
+ * update the ECMP tables with the new choice
*/
bier_table_ecmp_walk(be->be_bti,
bier_entry_table_ecmp_walk_add_fmask,
}
/*
- * update the ECNP tables with the new choice
+ * update the ECMP tables with the new choice
*/
bier_table_ecmp_walk(be->be_bti,
bier_entry_table_ecmp_walk_add_fmask,
fib_path_list_unlock(old_pl_index);
/*
- * update the ECNP tables with the new choice
+ * update the ECMP tables with the new choice
*/
bier_table_ecmp_walk(be->be_bti,
bier_entry_table_ecmp_walk_add_fmask,
* bier_entry : The BIER entry
*
* The interface to the BIER entry is through a bier_entry_t* rather
- * than an index. This is becuase the BIER table allocates the entries
+ * than an index. This is because the BIER table allocates the entries
* in a contiguous array once and only once when the table is created.
* this is done for forwarding performance. The entry is thus not subject
* to realloc, and does not need to be malloc'd when a route to that
* egress towards the next-hop. As such the fmask is part of the rewrite
* (adj) for that next-hop. It it thus an extension of the next-hop and in
* no way associated with the bit-position(s) that are reachable through it.
- * Fmasks are thus shared by bit-positions that egress throught the same
+ * Fmasks are thus shared by bit-positions that egress through the same
* nh (BFR-NBR).
- * Deag fmasks are also shread in the event that a router has local
- * bit-positions. This is necessary to prevent the router recieving two copies
+ * Deag fmasks are also shared in the event that a router has local
+ * bit-positions. This is necessary to prevent the router receiving two copies
* of each packet. Consequently it also means that they share the same
* disposition data for the global data.
*/
#define BIER_HDR_1ST_NIBBLE_VALUE 0x5
/**
- * Mask and shift values for fields in the headers trainling word
+ * Mask and shift values for fields in the headers training word
*/
#define BIER_HDR_PROTO_FIELD_MASK 0x003f
#define BIER_HDR_OAM_FIELD_MASK 0xc000
CLIB_CACHE_LINE_ALIGN_MARK(cacheline0);
/**
- * The DPO contirubted from the resolving BIER table.
+ * The DPO contributed from the resolving BIER table.
* One per-IP protocol. This allows us to share a BIER imposition
* object for a IPv4 and IPv6 mfib path.
*/
BIER_HDR_ENTROPY_FIELD_SHIFT);
/*
- * use TTL 64 for the post enacp MPLS label/BIFT-ID
+ * use TTL 64 for the post encap MPLS label/BIFT-ID
* this we be decremented in bier_output node.
*/
vnet_buffer(b0)->mpls.ttl = 65;
};
/*
- * Keep these values sematically the same as BIER lookup
+ * Keep these values semantically the same as BIER lookup
*/
#define foreach_bier_lookup_next \
_(DROP, "bier-drop") \
* Each entry (bit-position) represents one destination, and its reachability
*
* The number of entries in a table is thus the maximum supported
- * bit-position. Since this is smal <4096, the table is a flat arry
+ * bit-position. Since this is small <4096, the table is a flat array
*/
typedef struct bier_table_t_ {
/**