summaryrefslogtreecommitdiff
path: root/drivers/net/vmxnet3
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2018-01-03 14:32:20 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2018-01-16 18:47:49 +0100
commit4fd70e6faa2f7292cbfc2fcc568c92c0fce8bd60 (patch)
tree9834afb292ca032bb48a9c9653ab00c08b9d7dc7 /drivers/net/vmxnet3
parentd732ec19dcad45070c85e5b43aca95b2d49ec8a6 (diff)
downloaddpdk-next-eventdev-4fd70e6faa2f7292cbfc2fcc568c92c0fce8bd60.zip
dpdk-next-eventdev-4fd70e6faa2f7292cbfc2fcc568c92c0fce8bd60.tar.gz
dpdk-next-eventdev-4fd70e6faa2f7292cbfc2fcc568c92c0fce8bd60.tar.xz
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 <olivier.matz@6wind.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'drivers/net/vmxnet3')
-rw-r--r--drivers/net/vmxnet3/vmxnet3_ethdev.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c
index a34a6f9..d3b704b 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);
}