From: Alejandro Lucero Date: Fri, 16 Sep 2016 11:11:04 +0000 (+0100) Subject: net/nfp: fix copying MAC address X-Git-Tag: spdx-start~5847 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=84e5752ea5dc222eb2ebbdf9b717c4c3a5f68a9c;p=dpdk.git net/nfp: fix copying MAC address Fixes: defb9a5dd156 ("nfp: introduce driver initialization") Signed-off-by: Alejandro Lucero --- diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index 8e963ecdfc..9b05bacee6 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -2421,8 +2421,8 @@ nfp_net_init(struct rte_eth_dev *eth_dev) eth_random_addr(&hw->mac_addr[0]); /* Copying mac address to DPDK eth_dev struct */ - ether_addr_copy(ð_dev->data->mac_addrs[0], - (struct ether_addr *)hw->mac_addr); + ether_addr_copy((struct ether_addr *)hw->mac_addr, + ð_dev->data->mac_addrs[0]); PMD_INIT_LOG(INFO, "port %d VendorID=0x%x DeviceID=0x%x " "mac=%02x:%02x:%02x:%02x:%02x:%02x",