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.


change poll mode for each VNET device
[palacios.git] / palacios / include / vnet / vnet.h
index 949f0b2..b123d59 100644 (file)
@@ -107,7 +107,7 @@ void v3_vnet_del_bridge(uint8_t type);
 int v3_vnet_add_route(struct v3_vnet_route route);
 void v3_vnet_del_route(uint32_t route_idx);
 
-int v3_vnet_send_pkt(struct v3_vnet_pkt * pkt, void * private_data, int synchronize);
+int v3_vnet_send_pkt(struct v3_vnet_pkt * pkt, void * private_data);
 int v3_vnet_find_dev(uint8_t  * mac);
 int v3_vnet_stat(struct vnet_stat * stats);
 
@@ -117,13 +117,18 @@ struct v3_vnet_dev_ops {
     int (*input)(struct v3_vm_info * vm, 
                 struct v3_vnet_pkt * pkt, 
                 void * dev_data);
+
+    /* return >0 means there are more pkts in the queue to be sent */
+    int (*poll)(struct v3_vm_info * vm,
+               int quote,
+               void * dev_data);
 };
 
 int v3_init_vnet(void);        
 void v3_deinit_vnet(void);
 
 int v3_vnet_add_dev(struct v3_vm_info * info, uint8_t * mac, 
-                   struct v3_vnet_dev_ops * ops,
+                   struct v3_vnet_dev_ops * ops, int quote, int poll_state,
                    void * priv_data);
 int v3_vnet_del_dev(int dev_id);