From: Tomasz Duszynski Date: Thu, 18 Jan 2018 10:57:37 +0000 (+0100) Subject: net/mrvl: allow adding MAC address before port init X-Git-Tag: spdx-start~61 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9f7d41e6a703f1f88fe54593e185d6e4ca5aad38;p=dpdk.git net/mrvl: allow adding MAC address before port init 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 --- diff --git a/drivers/net/mrvl/mrvl_ethdev.c b/drivers/net/mrvl/mrvl_ethdev.c index a0116752eb..16a964b1fd 100644 --- 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