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/ice: enable flow redirect on switch
[dpdk.git]
/
drivers
/
net
/
softnic
/
parser.c
diff --git
a/drivers/net/softnic/parser.c
b/drivers/net/softnic/parser.c
index
a8688a2
..
dc15ec8
100644
(file)
--- a/
drivers/net/softnic/parser.c
+++ b/
drivers/net/softnic/parser.c
@@
-528,13
+528,13
@@
inet_pton6(const char *src, unsigned char *dst)
return 1;
}
return 1;
}
-static struct ether_addr *
+static struct
rte_
ether_addr *
my_ether_aton(const char *a)
{
int i;
char *end;
my_ether_aton(const char *a)
{
int i;
char *end;
- unsigned long o[ETHER_ADDR_LEN];
- static struct ether_addr ether_addr;
+ unsigned long o[
RTE_
ETHER_ADDR_LEN];
+ static struct
rte_
ether_addr ether_addr;
i = 0;
do {
i = 0;
do {
@@
-550,14
+550,14
@@
my_ether_aton(const char *a)
return NULL;
/* Support the format XX:XX:XX:XX:XX:XX */
return NULL;
/* 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 NULL;
ether_addr.addr_bytes[i] = (uint8_t)o[i];
}
/* Support the format XXXX:XXXX:XXXX */
while (i-- != 0) {
if (o[i] > UINT8_MAX)
return NULL;
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 NULL;
while (i-- != 0) {
if (o[i] > UINT16_MAX)
return NULL;
@@
-568,7
+568,7
@@
my_ether_aton(const char *a)
} else
return NULL;
} else
return NULL;
- return (struct ether_addr *)ðer_addr;
+ return (struct
rte_
ether_addr *)ðer_addr;
}
int
}
int
@@
-596,15
+596,15
@@
softnic_parse_ipv6_addr(const char *token, struct in6_addr *ipv6)
}
int
}
int
-softnic_parse_mac_addr(const char *token, struct ether_addr *addr)
+softnic_parse_mac_addr(const char *token, struct
rte_
ether_addr *addr)
{
{
- struct ether_addr *tmp;
+ struct
rte_
ether_addr *tmp;
tmp = my_ether_aton(token);
if (tmp == NULL)
return -1;
tmp = my_ether_aton(token);
if (tmp == NULL)
return -1;
- memcpy(addr, tmp, sizeof(struct ether_addr));
+ memcpy(addr, tmp, sizeof(struct
rte_
ether_addr));
return 0;
}
return 0;
}