[dpdk-dev] [PATCH] net/dpaa2: fix mac address initialization
Shreyansh Jain
shreyansh.jain at nxp.com
Wed Oct 17 08:04:25 CEST 2018
Fixes: c3e0a706fd75 ("net/dpaa2: read hardware provided MAC for DPNI devices")
Signed-off-by: Shreyansh Jain <shreyansh.jain at nxp.com>
---
- In response to the sys_stv at intel.com reported issue
"Fwd: | ERROR | daily Intel builds (38/49)"
drivers/net/dpaa2/dpaa2_ethdev.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c
index 27ae4740e..3987d13df 100644
--- a/drivers/net/dpaa2/dpaa2_ethdev.c
+++ b/drivers/net/dpaa2/dpaa2_ethdev.c
@@ -1846,7 +1846,10 @@ populate_mac_addr(struct fsl_mc_io *dpni_dev, struct dpaa2_dev_priv *priv,
struct ether_addr *mac_entry)
{
int ret;
- struct ether_addr phy_mac = {}, prime_mac = {};
+ struct ether_addr phy_mac, prime_mac;
+
+ memset(&phy_mac, 0, sizeof(struct ether_addr));
+ memset(&prime_mac, 0, sizeof(struct ether_addr));
/* Get the physical device MAC address */
ret = dpni_get_port_mac_addr(dpni_dev, CMD_PRI_LOW, priv->token,
--
2.17.1
More information about the dev
mailing list