]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/um/drivers/vde_kern.c
Merge branch 'linus' into x86/x2apic
[linux-2.6-omap-h63xx.git] / arch / um / drivers / vde_kern.c
index eb8cf31b820d82484bbdad2bdff3a0b1bea021ec..add7e722defb3a8b331a38d11302b6e290e64d9d 100644 (file)
@@ -7,10 +7,8 @@
  *
  */
 
-#include "linux/kernel.h"
 #include "linux/init.h"
-#include "linux/netdevice.h"
-#include "linux/etherdevice.h"
+#include <linux/netdevice.h>
 #include "net_kern.h"
 #include "net_user.h"
 #include "vde.h"
@@ -30,38 +28,33 @@ static void vde_init(struct net_device *dev, void *data)
        vpri->conn = NULL;
        vpri->dev = dev;
 
-       printk(KERN_INFO "vde backend - %s, ", vpri->vde_switch ?
+       printk("vde backend - %s, ", vpri->vde_switch ?
               vpri->vde_switch : "(default socket)");
 
        vde_init_libstuff(vpri, init);
 
-       printk(KERN_INFO "\n");
+       printk("\n");
 }
 
-static int vde_read(int fd, struct sk_buff **skb, struct uml_net_private *lp)
+static int vde_read(int fd, struct sk_buff *skb, struct uml_net_private *lp)
 {
        struct vde_data *pri = (struct vde_data *) &lp->user;
 
-       if (pri->conn != NULL) {
-               *skb = ether_adjust_skb(*skb, ETH_HEADER_OTHER);
-               if (*skb == NULL)
-                       return -ENOMEM;
-
-               return vde_user_read(pri->conn, skb_mac_header(*skb),
-                                    (*skb)->dev->mtu + ETH_HEADER_OTHER);
-       }
+       if (pri->conn != NULL)
+               return vde_user_read(pri->conn, skb_mac_header(skb),
+                                    skb->dev->mtu + ETH_HEADER_OTHER);
 
        printk(KERN_ERR "vde_read - we have no VDECONN to read from");
        return -EBADF;
 }
 
-static int vde_write(int fd, struct sk_buff **skb, struct uml_net_private *lp)
+static int vde_write(int fd, struct sk_buff *skb, struct uml_net_private *lp)
 {
        struct vde_data *pri = (struct vde_data *) &lp->user;
 
        if (pri->conn != NULL)
-               return vde_user_write((void *)pri->conn, (*skb)->data,
-                                     (*skb)->len);
+               return vde_user_write((void *)pri->conn, skb->data,
+                                     skb->len);
 
        printk(KERN_ERR "vde_write - we have no VDECONN to write to");
        return -EBADF;