acl: fix comments typos

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
This commit is contained in:
Thomas Monjalon 2014-11-14 15:59:31 +01:00
parent ecb6c4559e
commit 7eef9194ab
6 changed files with 12 additions and 12 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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.

View File

@ -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.

View File

@ -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.
*/

View File

@ -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).