From: Lei Xia Date: Thu, 3 Nov 2011 19:27:34 +0000 (-0500) Subject: Minor fix to NE2000 and RTL8139 virtual NIC X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=e1b1cab690cfc9754e028b594e2824eb33545ca4;p=palacios-OLD.git Minor fix to NE2000 and RTL8139 virtual NIC --- diff --git a/palacios/src/devices/ne2k.c b/palacios/src/devices/ne2k.c index 8eda4a4..484355d 100644 --- a/palacios/src/devices/ne2k.c +++ b/palacios/src/devices/ne2k.c @@ -323,7 +323,7 @@ struct ne2k_state { struct nic_statistics statistics; - struct v3_dev_net_ops *net_ops; + struct v3_dev_net_ops * net_ops; void * backend_data; }; @@ -1092,7 +1092,6 @@ static int pci_config_update(uint_t reg_num, void * private_data) { PrintDebug("PCI Config Update\n"); - /* Do we need this? */ return 0; } @@ -1175,7 +1174,7 @@ static int connect_fn(struct v3_vm_info * info, ops->recv = ne2k_rx; ops->poll = NULL; ops->config.frontend_data = nic_state; - memcpy(ops->config.fnt_mac, nic_state->mac, ETH_ALEN); + ops->config.fnt_mac = nic_state->mac; return 0; } diff --git a/palacios/src/devices/rtl8139.c b/palacios/src/devices/rtl8139.c index 069f79d..47abbde 100644 --- a/palacios/src/devices/rtl8139.c +++ b/palacios/src/devices/rtl8139.c @@ -1774,7 +1774,7 @@ static int connect_fn(struct v3_vm_info * info, ops->recv = rtl8139_rx; ops->poll = NULL; ops->config.frontend_data = nic_state; - memcpy(ops->config.fnt_mac, nic_state->mac, ETH_ALEN); + ops->config.fnt_mac = nic_state->mac; return 0; }