aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/fib
diff options
context:
space:
mode:
authorJim Thompson <jim@netgate.com>2019-04-08 03:22:21 -0500
committerDamjan Marion <dmarion@me.com>2019-04-08 21:54:17 +0000
commitf324dec0a371431f9326f67e920630579741da3c (patch)
tree8fed403c84c02cc275e9cc629d2052d1edb281ed /src/vnet/fib
parent46f877ebba5187336be01a5692903b5ecafc4345 (diff)
fixing typos
Change-Id: I215e1e0208a073db80ec6f87695d734cf40fabe3 Signed-off-by: Jim Thompson <jim@netgate.com>
Diffstat (limited to 'src/vnet/fib')
-rw-r--r--src/vnet/fib/fib_bfd.c2
-rw-r--r--src/vnet/fib/fib_path_list.c2
-rw-r--r--src/vnet/fib/fib_walk.c16
-rw-r--r--src/vnet/fib/ip4_fib.c2
4 files changed, 11 insertions, 11 deletions
diff --git a/src/vnet/fib/fib_bfd.c b/src/vnet/fib/fib_bfd.c
index 734ee8cc91c..ae7ceec1a6b 100644
--- a/src/vnet/fib/fib_bfd.c
+++ b/src/vnet/fib/fib_bfd.c
@@ -161,7 +161,7 @@ fib_bfd_notify (bfd_listen_event_e event,
{
/*
* has an associated BFD tracking delegate
- * usource the entry and remove the BFD tracking deletgate
+ * usource the entry and remove the BFD tracking delegate
*/
fib_entry_delegate_remove(fib_entry_get(fei),
FIB_ENTRY_DELEGATE_BFD);
diff --git a/src/vnet/fib/fib_path_list.c b/src/vnet/fib/fib_path_list.c
index 4e110fba9f0..f1d54430d66 100644
--- a/src/vnet/fib/fib_path_list.c
+++ b/src/vnet/fib/fib_path_list.c
@@ -29,7 +29,7 @@
/**
* The magic number of child entries that make a path-list popular.
* There's a trade-off here between convergnece and forwarding speed.
- * Popular path-lists generate load-balance maps for the entires that
+ * Popular path-lists generate load-balance maps for the entries that
* use them. If the map is present there is a switch path cost to indirect
* through the map - this indirection provides the fast convergence - so
* without the map convergence is slower.
diff --git a/src/vnet/fib/fib_walk.c b/src/vnet/fib/fib_walk.c
index a2674562b3b..fca1bfe13d8 100644
--- a/src/vnet/fib/fib_walk.c
+++ b/src/vnet/fib/fib_walk.c
@@ -87,7 +87,7 @@ typedef struct fib_walk_t_
/**
* The reasons this walk is occuring.
* This is a vector ordered in time. The reasons and the front were started
- * first, and so should be acted first when a node is visisted.
+ * first, and so should be acted first when a node is visited.
*/
fib_node_back_walk_ctx_t *fw_ctx;
} fib_walk_t;
@@ -161,7 +161,7 @@ static fib_walk_queues_t fib_walk_queues;
static const char * const fib_walk_priority_names[] = FIB_WALK_PRIORITIES;
/**
- * @brief Histogram stats on the lenths of each walk in elemenets visisted.
+ * @brief Histogram stats on the lenths of each walk in elemenets visited.
* Store upto 1<<23 elements in increments of 1<<10
*/
#define HISTOGRAM_VISITS_PER_WALK_MAX (1<<23)
@@ -445,7 +445,7 @@ static u64 fib_walk_work_time_taken[N_TIME_BUCKETS];
* Histogram on the number of nodes visted in each quota
*/
#define N_ELTS_BUCKETS 128
-static u32 fib_walk_work_nodes_visisted_incr = 2;
+static u32 fib_walk_work_nodes_visited_incr = 2;
static u64 fib_walk_work_nodes_visited[N_ELTS_BUCKETS];
/**
@@ -524,12 +524,12 @@ that_will_do_for_now:
/*
* collect the stats:
- * - for the number of nodes visisted we store 128 increments
+ * - for the number of nodes visited we store 128 increments
* - for the time consumed we store quota/TIME_INCREMENTS increments.
*/
- bucket = ((n_elts/fib_walk_work_nodes_visisted_incr) > N_ELTS_BUCKETS ?
+ bucket = ((n_elts/fib_walk_work_nodes_visited_incr) > N_ELTS_BUCKETS ?
N_ELTS_BUCKETS-1 :
- n_elts/fib_walk_work_nodes_visisted_incr);
+ n_elts/fib_walk_work_nodes_visited_incr);
++fib_walk_work_nodes_visited[bucket];
bucket = (consumed_time - quota) / (quota / TIME_INCREMENTS);
@@ -1041,7 +1041,7 @@ fib_walk_show (vlib_main_t * vm,
{
if (0 != fib_walk_work_nodes_visited[ii])
s = format(s, "%d:%d ",
- (ii * fib_walk_work_nodes_visisted_incr),
+ (ii * fib_walk_work_nodes_visited_incr),
fib_walk_work_nodes_visited[ii]);
}
vlib_cli_output(vm, " %v", s);
@@ -1162,7 +1162,7 @@ fib_walk_set_histogram_elements_size (vlib_main_t * vm,
if (unformat (input, "%d", &new))
{
- fib_walk_work_nodes_visisted_incr = new;
+ fib_walk_work_nodes_visited_incr = new;
}
else
{
diff --git a/src/vnet/fib/ip4_fib.c b/src/vnet/fib/ip4_fib.c
index 45ccb4f273d..57fc23b6b19 100644
--- a/src/vnet/fib/ip4_fib.c
+++ b/src/vnet/fib/ip4_fib.c
@@ -360,7 +360,7 @@ ip4_fib_table_entry_remove (ip4_fib_t *fib,
if (NULL == result)
{
/*
- * removing a non-existant entry. i'll allow it.
+ * removing a non-existent entry. i'll allow it.
*/
}
else