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;
}
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;
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;
[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;
};
/**
- * 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.
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. */
};
/**
* 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.
* 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.
* 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.
#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.
*/
/**
* @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).