X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fspdk%2Fdpdk%2Flib%2Flibrte_flow_classify%2Frte_flow_classify.c;fp=ceph%2Fsrc%2Fspdk%2Fdpdk%2Flib%2Flibrte_flow_classify%2Frte_flow_classify.c;h=6022064d840d9b316e2f6e476b82f5a6b6c63df0;hb=f67539c23b11f3b8a2ecaeeddf7a403ae1c442a8;hp=24f7f7aa0d31cdda147d22f19b2237777274e4ec;hpb=64a4c04e6850c6d9086e4c37f57c4eada541b05e;p=ceph.git diff --git a/ceph/src/spdk/dpdk/lib/librte_flow_classify/rte_flow_classify.c b/ceph/src/spdk/dpdk/lib/librte_flow_classify/rte_flow_classify.c index 24f7f7aa0..6022064d8 100644 --- a/ceph/src/spdk/dpdk/lib/librte_flow_classify/rte_flow_classify.c +++ b/ceph/src/spdk/dpdk/lib/librte_flow_classify/rte_flow_classify.c @@ -89,7 +89,7 @@ struct rte_flow_classify_rule { void *entry_ptr; /* handle to the table entry for rule meta data */ }; -int __rte_experimental +int rte_flow_classify_validate( struct rte_flow_classifier *cls, const struct rte_flow_attr *attr, @@ -258,7 +258,7 @@ rte_flow_classifier_check_params(struct rte_flow_classifier_params *params) return 0; } -struct rte_flow_classifier * __rte_experimental +struct rte_flow_classifier * rte_flow_classifier_create(struct rte_flow_classifier_params *params) { struct rte_flow_classifier *cls; @@ -300,7 +300,7 @@ rte_flow_classify_table_free(struct rte_cls_table *table) table->ops.f_free(table->h_table); } -int __rte_experimental +int rte_flow_classifier_free(struct rte_flow_classifier *cls) { uint32_t i; @@ -372,7 +372,7 @@ rte_table_check_params(struct rte_flow_classifier *cls, return 0; } -int __rte_experimental +int rte_flow_classify_table_create(struct rte_flow_classifier *cls, struct rte_flow_classify_table_params *params) { @@ -417,7 +417,6 @@ static struct rte_flow_classify_rule * allocate_acl_ipv4_5tuple_rule(struct rte_flow_classifier *cls) { struct rte_flow_classify_rule *rule; - int log_level; rule = malloc(sizeof(struct rte_flow_classify_rule)); if (!rule) @@ -466,9 +465,7 @@ allocate_acl_ipv4_5tuple_rule(struct rte_flow_classifier *cls) cls->ntuple_filter.dst_port_mask; rule->rules.u.ipv4_5tuple.dst_port = cls->ntuple_filter.dst_port; - log_level = rte_log_get_level(librte_flow_classify_logtype); - - if (log_level == RTE_LOG_DEBUG) + if (rte_log_can_log(librte_flow_classify_logtype, RTE_LOG_DEBUG)) print_acl_ipv4_key_add(&rule->u.key.key_add); /* key delete values */ @@ -476,13 +473,13 @@ allocate_acl_ipv4_5tuple_rule(struct rte_flow_classifier *cls) &rule->u.key.key_add.field_value[PROTO_FIELD_IPV4], NUM_FIELDS_IPV4 * sizeof(struct rte_acl_field)); - if (log_level == RTE_LOG_DEBUG) + if (rte_log_can_log(librte_flow_classify_logtype, RTE_LOG_DEBUG)) print_acl_ipv4_key_delete(&rule->u.key.key_del); return rule; } -struct rte_flow_classify_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[], @@ -564,7 +561,7 @@ rte_flow_classify_table_entry_add(struct rte_flow_classifier *cls, return NULL; } -int __rte_experimental +int rte_flow_classify_table_entry_delete(struct rte_flow_classifier *cls, struct rte_flow_classify_rule *rule) { @@ -642,7 +639,7 @@ action_apply(struct rte_flow_classifier *cls, return ret; } -int __rte_experimental +int rte_flow_classifier_query(struct rte_flow_classifier *cls, struct rte_mbuf **pkts, const uint16_t nb_pkts,