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.


fix the threads function calls using new vnet host interfaces
[palacios.git] / palacios / src / vnet / vnet_core.c
index 9bf044a..5d454e8 100644 (file)
@@ -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");