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
mlx4: avoid init errors when kernel modules are not loaded
[dpdk.git]
/
lib
/
librte_pmd_xenvirt
/
rte_eth_xenvirt.c
diff --git
a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c
b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c
index
6555ec5
..
bc403d6
100644
(file)
--- a/
lib/librte_pmd_xenvirt/rte_eth_xenvirt.c
+++ b/
lib/librte_pmd_xenvirt/rte_eth_xenvirt.c
@@
-586,8
+586,9
@@
rte_eth_xenvirt_parse_args(struct xenvirt_dict *dict,
if (!strncmp(pair[0], RTE_ETH_XENVIRT_MAC_PARAM,
sizeof(RTE_ETH_XENVIRT_MAC_PARAM))) {
if (cmdline_parse_etheraddr(NULL,
if (!strncmp(pair[0], RTE_ETH_XENVIRT_MAC_PARAM,
sizeof(RTE_ETH_XENVIRT_MAC_PARAM))) {
if (cmdline_parse_etheraddr(NULL,
- pair[1],
- &dict->addr) < 0) {
+ pair[1],
+ &dict->addr,
+ sizeof(dict->addr)) < 0) {
RTE_LOG(ERR, PMD,
"Invalid %s device ether address\n",
name);
RTE_LOG(ERR, PMD,
"Invalid %s device ether address\n",
name);
@@
-647,7
+648,7
@@
eth_dev_xenvirt_create(const char *name, const char *params,
goto err;
/* reserve an ethdev entry */
goto err;
/* reserve an ethdev entry */
- eth_dev = rte_eth_dev_allocate(name);
+ eth_dev = rte_eth_dev_allocate(name
, RTE_ETH_DEV_VIRTUAL
);
if (eth_dev == NULL)
goto err;
if (eth_dev == NULL)
goto err;