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>
This commit is contained in:
parent
d732ec19dc
commit
4fd70e6faa
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user