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
net: add rte prefix to ether defines
[dpdk.git]
/
examples
/
vm_power_manager
/
channel_monitor.c
diff --git
a/examples/vm_power_manager/channel_monitor.c
b/examples/vm_power_manager/channel_monitor.c
index
1194f62
..
aab19ba
100644
(file)
--- a/
examples/vm_power_manager/channel_monitor.c
+++ b/
examples/vm_power_manager/channel_monitor.c
@@
-65,7
+65,7
@@
str_to_ether_addr(const char *a, struct rte_ether_addr *ether_addr)
{
int i;
char *end;
{
int i;
char *end;
- unsigned long o[ETHER_ADDR_LEN];
+ unsigned long o[
RTE_
ETHER_ADDR_LEN];
i = 0;
do {
i = 0;
do {
@@
-81,14
+81,14
@@
str_to_ether_addr(const char *a, struct rte_ether_addr *ether_addr)
return -1;
/* Support the format XX:XX:XX:XX:XX:XX */
return -1;
/* Support the format XX:XX:XX:XX:XX:XX */
- if (i == ETHER_ADDR_LEN) {
+ if (i ==
RTE_
ETHER_ADDR_LEN) {
while (i-- != 0) {
if (o[i] > UINT8_MAX)
return -1;
ether_addr->addr_bytes[i] = (uint8_t)o[i];
}
/* Support the format XXXX:XXXX:XXXX */
while (i-- != 0) {
if (o[i] > UINT8_MAX)
return -1;
ether_addr->addr_bytes[i] = (uint8_t)o[i];
}
/* Support the format XXXX:XXXX:XXXX */
- } else if (i == ETHER_ADDR_LEN / 2) {
+ } else if (i ==
RTE_
ETHER_ADDR_LEN / 2) {
while (i-- != 0) {
if (o[i] > UINT16_MAX)
return -1;
while (i-- != 0) {
if (o[i] > UINT16_MAX)
return -1;