summaryrefslogtreecommitdiff
path: root/lib/librte_acl
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2014-11-14 15:59:31 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-11-14 17:23:50 +0100
commit7eef9194ab6f3b743061ffa2597ad39f27880bf8 (patch)
tree2ee7c6aa0b09c6d22c086902f5609da766143de2 /lib/librte_acl
parentecb6c4559e1cd5b7cd0583cc01d2140a4c12e0c9 (diff)
downloaddpdk-7eef9194ab6f3b743061ffa2597ad39f27880bf8.zip
dpdk-7eef9194ab6f3b743061ffa2597ad39f27880bf8.tar.gz
dpdk-7eef9194ab6f3b743061ffa2597ad39f27880bf8.tar.xz
acl: fix comments typos
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'lib/librte_acl')
-rw-r--r--lib/librte_acl/acl_bld.c6
-rw-r--r--lib/librte_acl/rte_acl.c2
-rw-r--r--lib/librte_acl/rte_acl.h10
-rw-r--r--lib/librte_acl/rte_acl_osdep_alone.h2
-rw-r--r--lib/librte_acl/tb_mem.c2
-rw-r--r--lib/librte_acl/tb_mem.h2
6 files changed, 12 insertions, 12 deletions
diff --git a/lib/librte_acl/acl_bld.c b/lib/librte_acl/acl_bld.c
index 09d58ea..d6e0c45 100644
--- a/lib/librte_acl/acl_bld.c
+++ b/lib/librte_acl/acl_bld.c
@@ -1791,7 +1791,7 @@ acl_build_tries(struct acl_build_context *context,
new_config = acl_build_alloc(context, 1, sizeof(*new_config));
if (new_config == NULL) {
RTE_LOG(ERR, ACL,
- "Failed to geti space for new config\n");
+ "Failed to get space for new config\n");
return -ENOMEM;
}
@@ -1904,7 +1904,7 @@ acl_build_rules(struct acl_build_context *bcx)
br = tb_alloc(&bcx->pool, sz);
if (br == NULL) {
- RTE_LOG(ERR, ACL, "ACL conext %s: failed to create a copy "
+ RTE_LOG(ERR, ACL, "ACL context %s: failed to create a copy "
"of %u build rules (%zu bytes)\n",
bcx->acx->name, n, sz);
return -ENOMEM;
@@ -1973,7 +1973,7 @@ rte_acl_build(struct rte_acl_ctx *ctx, const struct rte_acl_config *cfg)
bcx.category_mask = LEN2MASK(bcx.cfg.num_categories);
- /* Create a buid rules copy. */
+ /* Create a build rules copy. */
rc = acl_build_rules(&bcx);
if (rc != 0)
return rc;
diff --git a/lib/librte_acl/rte_acl.c b/lib/librte_acl/rte_acl.c
index ea23220..4b21b8e 100644
--- a/lib/librte_acl/rte_acl.c
+++ b/lib/librte_acl/rte_acl.c
@@ -44,7 +44,7 @@ static const rte_acl_classify_t classify_fns[] = {
[RTE_ACL_CLASSIFY_SSE] = rte_acl_classify_sse,
};
-/* by default, use always avaialbe scalar code path. */
+/* by default, use always available scalar code path. */
static enum rte_acl_classify_alg rte_acl_default_classify =
RTE_ACL_CLASSIFY_SCALAR;
diff --git a/lib/librte_acl/rte_acl.h b/lib/librte_acl/rte_acl.h
index 0e82339..0d913ee 100644
--- a/lib/librte_acl/rte_acl.h
+++ b/lib/librte_acl/rte_acl.h
@@ -67,7 +67,7 @@ enum {
};
/**
- * ACL Field defintion.
+ * ACL Field definition.
* Each field in the ACL rule has an associate definition.
* It defines the type of field, its size, its offset in the input buffer,
* the field index, and the input index.
@@ -259,12 +259,12 @@ void
rte_acl_reset(struct rte_acl_ctx *ctx);
/**
- * Avaialble implementations of ACL classify.
+ * Available implementations of ACL classify.
*/
enum rte_acl_classify_alg {
RTE_ACL_CLASSIFY_DEFAULT = 0,
RTE_ACL_CLASSIFY_SCALAR = 1, /**< generic implementation. */
- RTE_ACL_CLASSIFY_SSE = 2, /**< requries SSE4.1 support. */
+ RTE_ACL_CLASSIFY_SSE = 2, /**< requires SSE4.1 support. */
};
/**
@@ -330,7 +330,7 @@ rte_acl_classify(const struct rte_acl_ctx *ctx,
* match per category.
* @param alg
* Algorithm to be used for the search.
- * It is the caller responibility to ensure that the value refers to the
+ * It is the caller responsibility to ensure that the value refers to the
* existing algorithm, and that it could be run on the given CPU.
* @return
* zero on successful completion.
@@ -349,7 +349,7 @@ rte_acl_classify_alg(const struct rte_acl_ctx *ctx,
* ACL context to change classify function for.
* @param alg
* New default classify algorithm for given ACL context.
- * It is the caller responibility to ensure that the value refers to the
+ * It is the caller responsibility to ensure that the value refers to the
* existing algorithm, and that it could be run on the given CPU.
* @return
* - -EINVAL if the parameters are invalid.
diff --git a/lib/librte_acl/rte_acl_osdep_alone.h b/lib/librte_acl/rte_acl_osdep_alone.h
index a7b7424..bdeba54 100644
--- a/lib/librte_acl/rte_acl_osdep_alone.h
+++ b/lib/librte_acl/rte_acl_osdep_alone.h
@@ -104,7 +104,7 @@ extern "C" {
* Searches the input parameter for the least significant set bit
* (starting from zero).
* If a least significant 1 bit is found, its bit index is returned.
- * If the content of the input paramer is zero, then the content of the return
+ * If the content of the input parameter is zero, then the content of the return
* value is undefined.
* @param v
* input parameter, should not be zero.
diff --git a/lib/librte_acl/tb_mem.c b/lib/librte_acl/tb_mem.c
index b303d15..fdf3080 100644
--- a/lib/librte_acl/tb_mem.c
+++ b/lib/librte_acl/tb_mem.c
@@ -34,7 +34,7 @@
#include "tb_mem.h"
/*
- * Memory managment routines for temporary memory.
+ * Memory management routines for temporary memory.
* That memory is used only during build phase and is released after
* build is finished.
*/
diff --git a/lib/librte_acl/tb_mem.h b/lib/librte_acl/tb_mem.h
index a3ed795..a8dae94 100644
--- a/lib/librte_acl/tb_mem.h
+++ b/lib/librte_acl/tb_mem.h
@@ -37,7 +37,7 @@
/**
* @file
*
- * RTE ACL temporary (build phase) memory managment.
+ * RTE ACL temporary (build phase) memory management.
* Contains structures and functions to manage temporary (used by build only)
* memory. Memory allocated in large blocks to speed 'free' when trie is
* destructed (finish of build phase).