Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
[linux-2.6.git] / drivers / net / can / vcan.c
index f127ec9..80ac563 100644 (file)
@@ -80,10 +80,10 @@ static void vcan_rx(struct sk_buff *skb, struct net_device *dev)
        skb->dev       = dev;
        skb->ip_summed = CHECKSUM_UNNECESSARY;
 
-       netif_rx(skb);
+       netif_rx_ni(skb);
 }
 
-static int vcan_tx(struct sk_buff *skb, struct net_device *dev)
+static netdev_tx_t vcan_tx(struct sk_buff *skb, struct net_device *dev)
 {
        struct net_device_stats *stats = &dev->stats;
        int loop;
@@ -134,24 +134,24 @@ static const struct net_device_ops vcan_netdev_ops = {
 
 static void vcan_setup(struct net_device *dev)
 {
-       dev->type              = ARPHRD_CAN;
-       dev->mtu               = sizeof(struct can_frame);
-       dev->hard_header_len   = 0;
-       dev->addr_len          = 0;
-       dev->tx_queue_len      = 0;
-       dev->flags             = IFF_NOARP;
+       dev->type               = ARPHRD_CAN;
+       dev->mtu                = sizeof(struct can_frame);
+       dev->hard_header_len    = 0;
+       dev->addr_len           = 0;
+       dev->tx_queue_len       = 0;
+       dev->flags              = IFF_NOARP;
 
        /* set flags according to driver capabilities */
        if (echo)
                dev->flags |= IFF_ECHO;
 
-       dev->netdev_ops        = &vcan_netdev_ops;
-       dev->destructor        = free_netdev;
+       dev->netdev_ops         = &vcan_netdev_ops;
+       dev->destructor         = free_netdev;
 }
 
 static struct rtnl_link_ops vcan_link_ops __read_mostly = {
-       .kind           = "vcan",
-       .setup          = vcan_setup,
+       .kind   = "vcan",
+       .setup  = vcan_setup,
 };
 
 static __init int vcan_init_module(void)