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.


This patch computes the CMOS checksum after initializing the rest of the NVRAM regist...
[palacios.releases.git] / palacios / src / devices / nic_bridge.c
index dffe6d2..60f606f 100644 (file)
@@ -42,19 +42,18 @@ static int bridge_send(uint8_t * buf, uint32_t len,
 #ifdef CONFIG_DEBUG_NIC_BRIDGE
     {
        PrintDebug("NIC Bridge: send pkt size: %d\n", len);
-       v3_hexdump(buf, len, NULL, 0);
+       //v3_hexdump(buf, len, NULL, 0);
     }
 #endif
 
     return V3_send_raw(buf, len);
 }
 
-
 static int packet_input(struct v3_vm_info * vm,
                        struct v3_packet_event * evt, 
                        void * private_data) {
     struct nic_bridge_state * bridge = (struct nic_bridge_state *)private_data;
-
     PrintDebug("NIC_BRIDGE: Incoming packet size: %d\n", evt->size);
 
     return bridge->net_ops.recv(evt->pkt, 
@@ -63,8 +62,7 @@ static int packet_input(struct v3_vm_info * vm,
 }
 
 
-static int vnet_nic_free(struct vm_device * dev) {
-    struct nic_bridge_state * bridge = dev->private_data;
+static int vnet_nic_free(struct nic_bridge_state * bridge) {
 
     /*detach from front device */
 
@@ -74,7 +72,7 @@ static int vnet_nic_free(struct vm_device * dev) {
 }
 
 static struct v3_device_ops dev_ops = {
-    .free = vnet_nic_free,
+    .free = (int (*)(void *))vnet_nic_free,
 
 };