Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Minor fix to NE2000 and RTL8139 virtual NIC
[palacios-OLD.git] / palacios / src / devices / ne2k.c
index 8eda4a4..484355d 100644 (file)
@@ -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;
 }