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.


Merge branch 'devel' of palacios@newskysaw.cs.northwestern.edu:/home/palacios/palacio...
Lei Xia [Thu, 30 Jun 2011 15:33:56 +0000 (10:33 -0500)]
palacios/include/palacios/vmm_ethernet.h
palacios/src/devices/lnx_virtio_nic.c

index 1fd00ac..dadb775 100644 (file)
 #define ETH_ALEN 6
 
 #define MIN_MTU 68
-//#define MAX_MTU 65535
-#define MAX_MTU 9000
+#define MAX_MTU 65535
 
-#define MAX_PACKET_LEN (ETHERNET_HEADER_LEN + MAX_MTU)
+#define MAX_PACKET_LEN (MAX_MTU)
 
 #ifdef V3_CONFIG_VNET
 extern int net_debug;
index 7a4eb4a..952cc52 100644 (file)
@@ -595,7 +595,7 @@ static int virtio_rx(uint8_t * buf, uint32_t size, void * private_data) {
        uint16_t buf_idx;
        struct vring_desc * buf_desc;
        uint32_t hdr_len, len;
-       uint32_t offset = 0;
+       uint32_t offset = 0;
 
        hdr_len = (virtio->mergeable_rx_bufs)?
            sizeof(struct virtio_net_hdr_mrg_rxbuf):
@@ -935,8 +935,6 @@ static int connect_fn(struct v3_vm_info * info,
     net_state->timer = v3_add_timer(&(info->cores[0]),
                                    &timer_ops,net_state);
 
-    PrintError("net_state 0x%p\n", (void *)net_state);
-
     ops->recv = virtio_rx;
     ops->frontend_data = net_state;
     memcpy(ops->fnt_mac, virtio->mac, ETH_ALEN);