All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/dpaa2: fix mac address initialization
@ 2018-10-17  6:04 Shreyansh Jain
  2018-10-17  7:39 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Shreyansh Jain @ 2018-10-17  6:04 UTC (permalink / raw)
  To: dev, thomas; +Cc: Shreyansh Jain

Fixes: c3e0a706fd75 ("net/dpaa2: read hardware provided MAC for DPNI devices")

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
---

- In response to the sys_stv@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net/dpaa2: fix mac address initialization
  2018-10-17  6:04 [PATCH] net/dpaa2: fix mac address initialization Shreyansh Jain
@ 2018-10-17  7:39 ` Ferruh Yigit
  0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2018-10-17  7:39 UTC (permalink / raw)
  To: Shreyansh Jain, dev, thomas

On 10/17/2018 7:04 AM, Shreyansh Jain wrote:
> Fixes: c3e0a706fd75 ("net/dpaa2: read hardware provided MAC for DPNI devices")
> 
> Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>

Build error:
https://mails.dpdk.org/archives/test-report/2018-October/066840.html

Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-17  7:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-17  6:04 [PATCH] net/dpaa2: fix mac address initialization Shreyansh Jain
2018-10-17  7:39 ` Ferruh Yigit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.