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 ssh://palacios@newskysaw/home/palacios/palacios into devel
[palacios.git] / palacios / include / palacios / vmm_dev_mgr.h
index 84fd53c..9e019b5 100644 (file)
@@ -158,13 +158,19 @@ struct v3_dev_blk_ops {
 };
 
 struct v3_dev_net_ops {
+    /* below functions are called by frontend device
+     * These will be filled in by the backend when a backend is initiated.  --Lei*/
     int (*send)(uint8_t * buf, uint32_t count, void * private_data, struct vm_device *dest_dev);
-    int (*register_input)(void *backend_data, 
-                                     int (*frontend_input)(struct v3_vm_info *info, 
-                                                                    uchar_t * buf,
-                                                                  uint32_t size,
-                                                                  void *private_data), 
-                                   void *front_data);
+    void (*start_rx)(void *back_data);
+    void (*stop_rx)(void *back_data);
+
+    /* below functions are called by Backend device
+     * These will be filled in by the frontend when a backend is connected. -- Lei*/
+    int (*recv)(uint8_t * buf, uint32_t count, void * frnt_data);
+    void (*poll)(struct v3_vm_info *vm, void* frnt_data);
+    void (*start_tx)(void * frnt_data);
+    void (*stop_tx)(void * frnt_data);
+    void * frontend_data;
 };
 
 struct v3_dev_console_ops {
@@ -179,6 +185,7 @@ int v3_dev_add_blk_frontend(struct v3_vm_info * vm,
                                            v3_cfg_tree_t * cfg, 
                                            void * private_data), 
                            void * priv_data);
+
 int v3_dev_connect_blk(struct v3_vm_info * vm, 
                       char * frontend_name, 
                       struct v3_dev_blk_ops * ops,