git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59c796c
)
net/mrvl: allow adding MAC address before port init
author
Tomasz Duszynski
<tdu@semihalf.com>
Thu, 18 Jan 2018 10:57:37 +0000
(11:57 +0100)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Sun, 21 Jan 2018 14:51:52 +0000
(15:51 +0100)
Since DPDK restores ether address configuration after device
is started it is safe to add ether address to uninitialized port (ppio).
Fixes:
c0511a8f741f
("net/mrvl: check if ppio is initialized")
Cc: stable@dpdk.org
Signed-off-by: Tomasz Duszynski <tdu@semihalf.com>
drivers/net/mrvl/mrvl_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/mrvl/mrvl_ethdev.c
b/drivers/net/mrvl/mrvl_ethdev.c
index
a011675
..
16a964b
100644
(file)
--- a/
drivers/net/mrvl/mrvl_ethdev.c
+++ b/
drivers/net/mrvl/mrvl_ethdev.c
@@
-909,7
+909,7
@@
mrvl_mac_addr_add(struct rte_eth_dev *dev, struct ether_addr *mac_addr,
return -1;
if (!priv->ppio)
- return
-EPERM
;
+ return
0
;
/*
* Maximum number of uc addresses can be tuned via kernel module mvpp2x