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/sfc: add dedicated header file with MCDI interface
[dpdk.git]
/
drivers
/
net
/
softnic
/
parser.c
diff --git
a/drivers/net/softnic/parser.c
b/drivers/net/softnic/parser.c
index
7ea6eb4
..
dc15ec8
100644
(file)
--- a/
drivers/net/softnic/parser.c
+++ b/
drivers/net/softnic/parser.c
@@
-533,7
+533,7
@@
my_ether_aton(const char *a)
{
int i;
char *end;
{
int i;
char *end;
- unsigned long o[ETHER_ADDR_LEN];
+ unsigned long o[
RTE_
ETHER_ADDR_LEN];
static struct rte_ether_addr ether_addr;
i = 0;
static struct rte_ether_addr ether_addr;
i = 0;
@@
-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;