From: Lei Xia Date: Mon, 22 Feb 2010 21:10:09 +0000 (-0600) Subject: Minor update to vnet X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=a3b94e316c5aca87f1ea9bb824c2e10833db6da7;p=palacios.git Minor update to vnet --- diff --git a/palacios/include/palacios/vmm_vnet.h b/palacios/include/palacios/vmm_vnet.h index 10ed889..c30c769 100644 --- a/palacios/include/palacios/vmm_vnet.h +++ b/palacios/include/palacios/vmm_vnet.h @@ -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) diff --git a/palacios/src/devices/lnx_virtio_vnet.c b/palacios/src/devices/lnx_virtio_vnet.c index ccd2620..8282477 100644 --- a/palacios/src/devices/lnx_virtio_vnet.c +++ b/palacios/src/devices/lnx_virtio_vnet.c @@ -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) { - - - } + }