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
4a28710
..
aab19ba
100644
(file)
--- a/
examples/vm_power_manager/channel_monitor.c
+++ b/
examples/vm_power_manager/channel_monitor.c
@@
-56,16
+56,16
@@
static struct policy policies[MAX_CLIENTS];
#ifdef USE_JANSSON
union PFID {
#ifdef USE_JANSSON
union PFID {
- struct ether_addr addr;
+ struct
rte_
ether_addr addr;
uint64_t pfid;
};
static int
uint64_t pfid;
};
static int
-str_to_ether_addr(const char *a, struct ether_addr *ether_addr)
+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 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;
@@
-404,7
+404,7
@@
get_pfid(struct policy *pol)
RTE_ETH_FOREACH_DEV(x) {
ret = rte_pmd_i40e_query_vfid_by_mac(x,
RTE_ETH_FOREACH_DEV(x) {
ret = rte_pmd_i40e_query_vfid_by_mac(x,
- (struct ether_addr *)&(pol->pkt.vfid[i]));
+ (struct
rte_
ether_addr *)&(pol->pkt.vfid[i]));
if (ret != -EINVAL) {
pol->port[i] = x;
break;
if (ret != -EINVAL) {
pol->port[i] = x;
break;