diff options
Diffstat (limited to 'src/vnet/policer')
-rw-r--r-- | src/vnet/policer/node_funcs.c | 2 | ||||
-rw-r--r-- | src/vnet/policer/police.h | 2 | ||||
-rw-r--r-- | src/vnet/policer/policer_api.c | 2 | ||||
-rw-r--r-- | src/vnet/policer/xlate.c | 8 | ||||
-rw-r--r-- | src/vnet/policer/xlate.h | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/src/vnet/policer/node_funcs.c b/src/vnet/policer/node_funcs.c index 5c185991e8b..594afca2b1b 100644 --- a/src/vnet/policer/node_funcs.c +++ b/src/vnet/policer/node_funcs.c @@ -492,7 +492,7 @@ format_policer_classify_trace (u8 * s, va_list * args) #define foreach_policer_classify_error \ _(MISS, "Policer classify misses") \ _(HIT, "Policer classify hits") \ -_(CHAIN_HIT, "Polcier classify hits after chain walk") \ +_(CHAIN_HIT, "Policer classify hits after chain walk") \ _(DROP, "Policer classify action drop") typedef enum diff --git a/src/vnet/policer/police.h b/src/vnet/policer/police.h index 34bcf9ca5a8..7065adb6e30 100644 --- a/src/vnet/policer/police.h +++ b/src/vnet/policer/police.h @@ -39,7 +39,7 @@ typedef enum // The token_per_period computation takes into account the clock speed. // // The 32-bit bucket/limit supports about 850ms of burst on a 40GE port, -// or 340ms on a 100GE port. If a larger burst is configued, then the +// or 340ms on a 100GE port. If a larger burst is configured, then the // programmed value is simply capped at 2^32-1. If we needed to support // more than that, the bucket and limit fields could be expanded. // diff --git a/src/vnet/policer/policer_api.c b/src/vnet/policer/policer_api.c index 77efe852e59..d6d6b07ac34 100644 --- a/src/vnet/policer/policer_api.c +++ b/src/vnet/policer/policer_api.c @@ -185,7 +185,7 @@ vl_api_policer_dump_t_handler (vl_api_policer_dump_t * mp) /* * policer_api_hookup * Add vpe's API message handlers to the table. - * vlib has alread mapped shared memory and + * vlib has already mapped shared memory and * added the client registration handlers. * See .../vlib-api/vlibmemory/memclnt_vlib.c:memclnt_process() */ diff --git a/src/vnet/policer/xlate.c b/src/vnet/policer/xlate.c index af8bc5a9900..5905aa53351 100644 --- a/src/vnet/policer/xlate.c +++ b/src/vnet/policer/xlate.c @@ -128,7 +128,7 @@ #define SSE2_QOS_POL_DEF_BURST_BYTE 100 /* - * Minimum burst needs to be such that the largest packet size is accomodated + * Minimum burst needs to be such that the largest packet size is accommodated */ // Do we need to get it from some lib? #define SSE2_QOS_POL_MIN_BURST_BYTE 9*1024 @@ -566,7 +566,7 @@ sse2_pol_convert_cfg_rates_to_hw (sse2_qos_pol_cfg_params_st * cfg, * sse2_pol_get_bkt_max * * PARAMETERS - * rate_hw - either the averate rate or peak rate + * rate_hw - either the average rate or peak rate * bkt_max - bit width in the current bucket or extended bucket * * RETURNS @@ -605,7 +605,7 @@ sse2_pol_get_bkt_max (u64 rate_hw, u64 bkt_max) * sse2_pol_get_bkt_value * * PARAMETERS - * rate_hw - either the averate rate or peak rate + * rate_hw - either the average rate or peak rate * byte_value - bytes for this token bucket * * RETURNS @@ -973,7 +973,7 @@ compute_policer_params (u64 hz, // CPU speed in clocks per second internal_cir_bytes_per_period = (double) cir_rate / period; internal_pir_bytes_per_period = (double) pir_rate / period; - // Scale if possible. Scaling helps rate accuracy, but is contrained + // Scale if possible. Scaling helps rate accuracy, but is constrained // by the scaled rates and limits fitting in 32-bits. // In addition, we need to insure the scaled rate is no larger than // 2^22 tokens per period. This allows the dataplane to ignore overflow diff --git a/src/vnet/policer/xlate.h b/src/vnet/policer/xlate.h index 16742f80a47..d03930b8813 100644 --- a/src/vnet/policer/xlate.h +++ b/src/vnet/policer/xlate.h @@ -82,7 +82,7 @@ typedef enum * * element: action_type * Action type (see sse2_qos_action_type_en). - * elemtnt: dscp + * element: dscp * DSCP value to set when action is SSE2_QOS_ACTION_MARK_AND_TRANSMIT. */ typedef struct sse2_qos_pol_action_params_st_ |