| rte_acl.h(3) | Library Functions Manual | rte_acl.h(3) |
rte_acl.h
#include <rte_acl_osdep.h>
struct rte_acl_field_def
struct rte_acl_config
struct rte_acl_field
struct rte_acl_rule_data
struct rte_acl_param
#define RTE_ACL_RULE_DEF(name, fld_num)
#define RTE_ACL_NAMESIZE 32
enum rte_acl_classify_alg { }
struct rte_acl_ctx * rte_acl_create (const struct
rte_acl_param *param)
struct rte_acl_ctx * rte_acl_find_existing (const char *name)
void rte_acl_free (struct rte_acl_ctx *ctx)
int rte_acl_add_rules (struct rte_acl_ctx *ctx, const struct
rte_acl_rule *rules, uint32_t num)
void rte_acl_reset_rules (struct rte_acl_ctx *ctx)
int rte_acl_build (struct rte_acl_ctx *ctx, const struct
rte_acl_config *cfg)
void rte_acl_reset (struct rte_acl_ctx *ctx)
int rte_acl_classify (const struct rte_acl_ctx *ctx, const uint8_t
**data, uint32_t *results, uint32_t num, uint32_t categories)
int rte_acl_classify_alg (const struct rte_acl_ctx *ctx, const uint8_t
**data, uint32_t *results, uint32_t num, uint32_t categories, enum
rte_acl_classify_alg alg)
void rte_acl_dump (const struct rte_acl_ctx *ctx)
void rte_acl_list_dump (void)
RTE Classifier.
Definition in file rte_acl.h.
Value:.PP
struct name {\
struct rte_acl_rule_data data; \
struct rte_acl_field field[fld_num]; \ }
Defines single ACL rule. data - miscellaneous data for the rule. field[] - value and mask or range for each field.
Definition at line 111 of file rte_acl.h.
Max number of characters in name.
Definition at line 123 of file rte_acl.h.
Available implementations of ACL classify.
Enumerator
Definition at line 238 of file rte_acl.h.
Create a new ACL context.
Parameters
Returns
Find an existing ACL context object and return a pointer to it.
Parameters
Returns
De-allocate all memory used by ACL context.
Parameters
Add rules to an existing ACL context. This function is not multi-thread safe.
Parameters
Returns
Delete all rules from the ACL context. This function is not multi-thread safe. Note that internal run-time structures are not affected.
Parameters
Analyze set of rules and build required internal run-time structures. This function is not multi-thread safe.
Parameters
Returns
Delete all rules from the ACL context and destroy all internal run-time structures. This function is not multi-thread safe.
Parameters
Perform search for a matching ACL rule for each input data buffer. Each input data buffer can have up to categories matches. That implies that results array should be big enough to hold (categories * num) elements. Also categories parameter should be either one or multiple of RTE_ACL_RESULTS_MULTIPLIER and can't be bigger than RTE_ACL_MAX_CATEGORIES. If more than one rule is applicable for given input buffer and given category, then rule with highest priority will be returned as a match. Note, that it is a caller's responsibility to ensure that input parameters are valid and point to correct memory locations.
Parameters
Returns
Perform search using specified algorithm for a matching ACL rule for each input data buffer. Each input data buffer can have up to categories matches. That implies that results array should be big enough to hold (categories * num) elements. Also categories parameter should be either one or multiple of RTE_ACL_RESULTS_MULTIPLIER and can't be bigger than RTE_ACL_MAX_CATEGORIES. If more than one rule is applicable for given input buffer and given category, then rule with highest priority will be returned as a match. Note, that it is a caller's responsibility to ensure that input parameters are valid and point to correct memory locations.
Parameters
Returns
Dump an ACL context structure to the console.
Parameters
Dump all ACL context structures to the console.
Generated automatically by Doxygen for DPDK from the source code.
| Version 24.11.3 | DPDK |