Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New upstream version 18.08
[deb_dpdk.git]
/
lib
/
librte_flow_classify
/
rte_flow_classify.c
diff --git
a/lib/librte_flow_classify/rte_flow_classify.c
b/lib/librte_flow_classify/rte_flow_classify.c
index
7edb2f1
..
4c3469d
100644
(file)
--- a/
lib/librte_flow_classify/rte_flow_classify.c
+++ b/
lib/librte_flow_classify/rte_flow_classify.c
@@
-635,9
+635,7
@@
action_apply(struct rte_flow_classifier *cls,
}
if (count) {
ret = 0;
}
if (count) {
ret = 0;
- ntuple_stats =
- (struct rte_flow_classify_ipv4_5tuple_stats *)
- stats->stats;
+ ntuple_stats = stats->stats;
ntuple_stats->counter1 = count;
ntuple_stats->ipv4_5tuple = rule->rules.u.ipv4_5tuple;
}
ntuple_stats->counter1 = count;
ntuple_stats->ipv4_5tuple = rule->rules.u.ipv4_5tuple;
}
@@
-675,10
+673,7
@@
rte_flow_classifier_query(struct rte_flow_classifier *cls,
return ret;
}
return ret;
}
-RTE_INIT(librte_flow_classify_init_log);
-
-static void
-librte_flow_classify_init_log(void)
+RTE_INIT(librte_flow_classify_init_log)
{
librte_flow_classify_logtype =
rte_log_register("lib.flow_classify");
{
librte_flow_classify_logtype =
rte_log_register("lib.flow_classify");