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 update to vnet
Lei Xia [Mon, 22 Feb 2010 21:10:09 +0000 (15:10 -0600)]
palacios/include/palacios/vmm_vnet.h
palacios/src/devices/lnx_virtio_vnet.c

index 10ed889..c30c769 100644 (file)
@@ -30,7 +30,7 @@ typedef enum {MAC_ANY, MAC_NOT, MAC_NONE} mac_type_t; //for 'src_mac_qual' and '
 typedef enum {LINK_INTERFACE, LINK_EDGE, LINK_ANY} link_type_t; //for 'type' and 'src_type' in struct routing
 
 
-#define VNET_HASH_SIZE 16
+#define VNET_HASH_SIZE 17
 #define ETHERNET_HEADER_LEN 14
 #define ETHERNET_DATA_MAX   1500
 #define ETHERNET_PACKET_LEN (ETHERNET_HEADER_LEN + ETHERNET_DATA_MAX)
index ccd2620..8282477 100644 (file)
@@ -29,7 +29,7 @@
 #define NUM_QUEUES 3
 
 struct vnet_config {
-    uint32_t num_links;
+    uint32_t num_devs;
     uint32_t num_routes;
 } __attribute__((packed));
 
@@ -168,10 +168,7 @@ static int handle_cmd_kick(struct guest_info * core, struct virtio_vnet_state *
                desc_idx = buf_desc->next;
            }
 
-       } else if (hdr->cmd_type == VNET_ADD_LINK) {
-
-
-       }
+       }