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
app: use common macro RTE_DIM
[dpdk.git]
/
app
/
test-pmd
/
icmpecho.c
diff --git
a/app/test-pmd/icmpecho.c
b/app/test-pmd/icmpecho.c
index
2d359c9
..
65aece1
100644
(file)
--- a/
app/test-pmd/icmpecho.c
+++ b/
app/test-pmd/icmpecho.c
@@
-188,7
+188,7
@@
ip_proto_name(uint16_t ip_proto)
"PIM", /**< Protocol Independent Mcast */
};
- if (ip_proto <
sizeof(ip_proto_names) / sizeof(ip_proto_names[0]
))
+ if (ip_proto <
RTE_DIM(ip_proto_names
))
return ip_proto_names[ip_proto];
switch (ip_proto) {
#ifdef IPPROTO_PGM