X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fvnet%2Fvnet_core.c;h=5d454e89c6e3254bd807c7542f34f192cac505af;hb=8ca1d3b4d7a7266a92ef99afeee99097da838ae8;hp=9bf044a29fec8b95f754dec621beb4765bf1da98;hpb=d12cdf5b213b2b51d525914a852ceacd2c198b5a;p=palacios.git diff --git a/palacios/src/vnet/vnet_core.c b/palacios/src/vnet/vnet_core.c index 9bf044a..5d454e8 100644 --- a/palacios/src/vnet/vnet_core.c +++ b/palacios/src/vnet/vnet_core.c @@ -108,7 +108,7 @@ static struct { v3_lock_t lock; struct vnet_stat stats; - void * pkt_flush_thread; + struct vnet_thread * pkt_flush_thread; struct vnet_queue pkt_q; @@ -708,7 +708,6 @@ int v3_vnet_add_bridge(struct v3_vm_info * vm, return 0; } -#if 0 static int vnet_tx_flush(void *args){ unsigned long flags; struct queue_entry * entry; @@ -743,7 +742,6 @@ static int vnet_tx_flush(void *args){ } } } -#endif int v3_init_vnet() { memset(&vnet_state, 0, sizeof(vnet_state)); @@ -766,7 +764,7 @@ int v3_init_vnet() { v3_lock_init(&(vnet_state.pkt_q.lock)); - //vnet_state.pkt_flush_thread = V3_CREATE_THREAD(vnet_tx_flush, NULL, "VNET_Pkts"); + vnet_state.pkt_flush_thread = vnet_thread_create(vnet_tx_flush, NULL, "VNET_Pkts"); PrintDebug("VNET/P Core is initiated\n");