5#ifndef _RTE_FLOW_CLASSIFY_H_
6#define _RTE_FLOW_CLASSIFY_H_
46#include <rte_compat.h>
54extern int librte_flow_classify_logtype;
56#define RTE_FLOW_CLASSIFY_LOG(level, ...) \
57 rte_log(RTE_LOG_ ## level, \
58 librte_flow_classify_logtype, \
59 RTE_FMT("%s(): " RTE_FMT_HEAD(__VA_ARGS__,), \
61 RTE_FMT_TAIL(__VA_ARGS__,)))
63#ifndef RTE_FLOW_CLASSIFY_TABLE_MAX
64#define RTE_FLOW_CLASSIFY_TABLE_MAX 32
68struct rte_flow_classifier;
71struct rte_flow_classify_rule;
141struct rte_flow_classify_ipv4_5tuple_stats {
157struct rte_flow_classifier *
232struct rte_flow_classify_rule *
253 struct rte_flow_classify_rule *rule);
276 const uint16_t nb_pkts,
277 struct rte_flow_classify_rule *rule,
__rte_experimental struct rte_flow_classify_rule * 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_experimental int rte_flow_classifier_free(struct rte_flow_classifier *cls)
rte_flow_classify_table_type
@ RTE_FLOW_CLASSIFY_TABLE_TYPE_NONE
@ RTE_FLOW_CLASSIFY_TABLE_ACL_VLAN_IP4_5TUPLE
@ RTE_FLOW_CLASSIFY_TABLE_ACL_QINQ_IP4_5TUPLE
@ RTE_FLOW_CLASSIFY_TABLE_ACL_IP4_5TUPLE
__rte_experimental int 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)
__rte_experimental int rte_flow_classify_table_create(struct rte_flow_classifier *cls, struct rte_flow_classify_table_params *params)
__rte_experimental int 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
@ RTE_FLOW_CLASSIFY_RULE_TYPE_IPV4_5TUPLE
@ RTE_FLOW_CLASSIFY_RULE_TYPE_NONE
__rte_experimental struct rte_flow_classifier * rte_flow_classifier_create(struct rte_flow_classifier_params *params)
__rte_experimental int rte_flow_classify_table_entry_delete(struct rte_flow_classifier *cls, struct rte_flow_classify_rule *rule)
struct rte_table_ops * ops
enum rte_flow_classify_table_type type