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 NE2k card
[palacios.git] / palacios / src / palacios / vmm_vnet_core.c
index 99b61c7..6baef5a 100644 (file)
@@ -100,7 +100,7 @@ static struct {
 
 
 #ifdef CONFIG_DEBUG_VNET
-static inline void mac_to_string(char * mac, char * buf) {
+static inline void mac_to_string(uint8_t * mac, char * buf) {
     snprintf(buf, 100, "%d:%d:%d:%d:%d:%d", 
             mac[0], mac[1], mac[2],
             mac[3], mac[4], mac[5]);
@@ -209,15 +209,6 @@ static struct vnet_dev * dev_by_mac(uint8_t * mac) {
     return NULL;
 }
 
-int v3_vnet_id_by_mac(char * mac){
-    struct vnet_dev *dev = dev_by_mac(mac);
-
-    if (dev == NULL)
-       return -1;
-
-    return dev->dev_id;
-}
-
 
 int v3_vnet_add_route(struct v3_vnet_route route) {
     struct vnet_route_info * new_route = NULL;
@@ -582,7 +573,7 @@ static void free_routes(){
     }
 }
 
-
+/* TODO: Round-bin or ?? */
 void  v3_vnet_poll(struct v3_vm_info * vm){
     struct vnet_dev * dev = NULL; 
     struct vnet_brg_dev *bridge = vnet_state.bridge;