From: Olivier Matz Date: Wed, 3 Jan 2018 13:32:20 +0000 (+0100) Subject: net/vmxnet3: remove useless copy when setting MAC address X-Git-Tag: spdx-start~336 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4fd70e6faa2f7292cbfc2fcc568c92c0fce8bd60;p=dpdk.git net/vmxnet3: remove useless copy when setting MAC address This operation is already done by the ethdev layer, it should not be done by the driver. Signed-off-by: Olivier Matz Reviewed-by: Ferruh Yigit --- diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index a34a6f9248..d3b704b401 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c @@ -1123,7 +1123,6 @@ vmxnet3_mac_addr_set(struct rte_eth_dev *dev, struct ether_addr *mac_addr) struct vmxnet3_hw *hw = dev->data->dev_private; ether_addr_copy(mac_addr, (struct ether_addr *)(hw->perm_addr)); - ether_addr_copy(mac_addr, &dev->data->mac_addrs[0]); vmxnet3_write_mac(hw, mac_addr->addr_bytes); }