summaryrefslogtreecommitdiff
path: root/lib/librte_sched
diff options
context:
space:
mode:
authorPavel Shirshov <pavel.shirshov@gmail.com>2017-11-10 00:24:23 -0800
committerThomas Monjalon <thomas@monjalon.net>2017-11-13 06:26:17 +0100
commite32cb57973fc311b4b5f60ae5dac37d99e48c94d (patch)
tree97950891bf5529eadb4b3dc0932e654afc7a9b4f /lib/librte_sched
parent82bf1caf5f93cd04c43b24a0bd9805b4fac1074a (diff)
downloaddpdk-e32cb57973fc311b4b5f60ae5dac37d99e48c94d.zip
dpdk-e32cb57973fc311b4b5f60ae5dac37d99e48c94d.tar.gz
dpdk-e32cb57973fc311b4b5f60ae5dac37d99e48c94d.tar.xz
lib: fix typos
Signed-off-by: Pavel Shirshov <pavel.shirshov@gmail.com>
Diffstat (limited to 'lib/librte_sched')
-rw-r--r--lib/librte_sched/rte_red.h4
-rw-r--r--lib/librte_sched/rte_sched.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/librte_sched/rte_red.h b/lib/librte_sched/rte_red.h
index ca12227..6edf914 100644
--- a/lib/librte_sched/rte_red.h
+++ b/lib/librte_sched/rte_red.h
@@ -139,7 +139,7 @@ rte_red_config_init(struct rte_red_config *red_cfg,
/**
* @brief Generate random number for RED
*
- * Implemenetation based on:
+ * Implementation based on:
* http://software.intel.com/en-us/articles/fast-random-number-generator-on-the-intel-pentiumr-4-processor/
*
* 10 bit shift has been found through empirical tests (was 16).
@@ -200,7 +200,7 @@ __rte_red_calc_qempty_factor(uint8_t wq_log2, uint16_t m)
* Now using basic math we compute 2^n:
* 2^(f+n) = 2^f * 2^n
* 2^f - we use lookup table
- * 2^n - can be replaced with bit shift right oeprations
+ * 2^n - can be replaced with bit shift right operations
*/
f = (n >> 6) & 0xf;
diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c
index a2d0d68..7252f85 100644
--- a/lib/librte_sched/rte_sched.c
+++ b/lib/librte_sched/rte_sched.c
@@ -1020,7 +1020,7 @@ rte_sched_subport_read_stats(struct rte_sched_port *port,
memcpy(stats, &s->stats, sizeof(struct rte_sched_subport_stats));
memset(&s->stats, 0, sizeof(struct rte_sched_subport_stats));
- /* Subport TC ovesubscription status */
+ /* Subport TC oversubscription status */
*tc_ov = s->tc_ov;
return 0;