5 #ifndef _RTE_FLOW_CLASSIFY_H_ 6 #define _RTE_FLOW_CLASSIFY_H_ 46 #include <rte_compat.h> 58 extern int librte_flow_classify_logtype;
60 #define RTE_FLOW_CLASSIFY_LOG(level, ...) \ 61 rte_log(RTE_LOG_ ## level, \ 62 librte_flow_classify_logtype, \ 63 RTE_FMT("%s(): " RTE_FMT_HEAD(__VA_ARGS__,), \ 65 RTE_FMT_TAIL(__VA_ARGS__,))) 67 #ifndef RTE_FLOW_CLASSIFY_TABLE_MAX 68 #define RTE_FLOW_CLASSIFY_TABLE_MAX 32 72 struct rte_flow_classifier;
75 struct rte_flow_classify_rule;
145 struct rte_flow_classify_ipv4_5tuple_stats {
160 struct rte_flow_classifier * __rte_experimental
171 int __rte_experimental
184 int __rte_experimental
205 int __rte_experimental
209 const struct rte_flow_action actions[],
231 struct rte_flow_classify_rule * __rte_experimental
235 const struct rte_flow_action actions[],
249 int __rte_experimental
251 struct rte_flow_classify_rule *rule);
270 int __rte_experimental
273 const uint16_t nb_pkts,
274 struct rte_flow_classify_rule *rule,
int __rte_experimental rte_flow_classifier_free(struct rte_flow_classifier *cls)
struct rte_flow_classify_rule *__rte_experimental rte_flow_classify_table_entry_add(struct rte_flow_classifier *cls, const struct rte_flow_attr *attr, const struct rte_flow_item pattern[], const struct rte_flow_action actions[], int *key_found, struct rte_flow_error *error)
rte_flow_classify_table_type
int __rte_experimental rte_flow_classifier_query(struct rte_flow_classifier *cls, struct rte_mbuf **pkts, const uint16_t nb_pkts, struct rte_flow_classify_rule *rule, struct rte_flow_classify_stats *stats)
struct rte_table_ops * ops
int __rte_experimental rte_flow_classify_table_entry_delete(struct rte_flow_classifier *cls, struct rte_flow_classify_rule *rule)
int __rte_experimental rte_flow_classify_validate(struct rte_flow_classifier *cls, const struct rte_flow_attr *attr, const struct rte_flow_item pattern[], const struct rte_flow_action actions[], struct rte_flow_error *error)
rte_flow_classify_rule_type
int __rte_experimental rte_flow_classify_table_create(struct rte_flow_classifier *cls, struct rte_flow_classify_table_params *params)
struct rte_flow_classifier *__rte_experimental rte_flow_classifier_create(struct rte_flow_classifier_params *params)