git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples/ioat: print statistics
[dpdk.git]
/
examples
/
qos_meter
/
rte_policer.c
diff --git
a/examples/qos_meter/rte_policer.c
b/examples/qos_meter/rte_policer.c
index
58c13ec
..
10d5fe8
100644
(file)
--- a/
examples/qos_meter/rte_policer.c
+++ b/
examples/qos_meter/rte_policer.c
@@
-7,7
+7,7
@@
int
rte_phb_config(struct rte_phb *phb_table, uint32_t phb_table_index,
int
rte_phb_config(struct rte_phb *phb_table, uint32_t phb_table_index,
- enum rte_
meter_color pre_meter, enum rte_meter
_color post_meter, enum rte_phb_action action)
+ enum rte_
color pre_meter, enum rte
_color post_meter, enum rte_phb_action action)
{
struct rte_phb *phb = NULL;
{
struct rte_phb *phb = NULL;
@@
-16,7
+16,7
@@
rte_phb_config(struct rte_phb *phb_table, uint32_t phb_table_index,
return -1;
}
return -1;
}
- if ((pre_meter >
e_RTE_METER_RED) || (post_meter > e_RTE_METE
R_RED) || (pre_meter > post_meter)) {
+ if ((pre_meter >
RTE_COLOR_RED) || (post_meter > RTE_COLO
R_RED) || (pre_meter > post_meter)) {
return -2;
}
return -2;
}