X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Flnx_virtio_nic.c;h=952cc52132ac24fb07a1338ffed42273eca8b75b;hb=2334b64dae68f806dcaf81292e87e90562bfde75;hp=7a4eb4ab8644451165a78ff5e1c8914bfaf6c9c5;hpb=3265327285cf9896276ddf7fab7cbe0d3060bd10;p=palacios.git diff --git a/palacios/src/devices/lnx_virtio_nic.c b/palacios/src/devices/lnx_virtio_nic.c index 7a4eb4a..952cc52 100644 --- a/palacios/src/devices/lnx_virtio_nic.c +++ b/palacios/src/devices/lnx_virtio_nic.c @@ -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);