From: Thomas Monjalon Date: Fri, 14 Nov 2014 14:59:31 +0000 (+0100) Subject: acl: fix comments typos X-Git-Tag: spdx-start~10153 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7eef9194ab6f3b743061ffa2597ad39f27880bf8;p=dpdk.git acl: fix comments typos Signed-off-by: Thomas Monjalon --- diff --git a/lib/librte_acl/acl_bld.c b/lib/librte_acl/acl_bld.c index 09d58ea04f..d6e0c45108 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 ea23220c94..4b21b8e6c2 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 0e82339048..0d913eedca 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 a7b7424d68..bdeba54fa4 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 b303d155e6..fdf3080b43 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 a3ed795fac..a8dae94d0b 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).