#define PRIVSIZE 0
#endif
-static int vcan_open(struct net_device *dev)
-{
- DBG("%s: interface up\n", dev->name);
-
- netif_start_queue(dev);
- return 0;
-}
-
-static int vcan_stop(struct net_device *dev)
-{
- DBG("%s: interface down\n", dev->name);
-
- netif_stop_queue(dev);
- return 0;
-}
-
static void vcan_rx(struct sk_buff *skb, struct net_device *dev)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
stats->rx_bytes += skb->len;
}
kfree_skb(skb);
- return 0;
+ return NETDEV_TX_OK;
}
/* perform standard echo handling for CAN network interfaces */
/* no looped packets => no counting */
kfree_skb(skb);
}
- return 0;
+ return NETDEV_TX_OK;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
if (echo)
dev->flags |= IFF_ECHO;
- dev->open = vcan_open;
- dev->stop = vcan_stop;
dev->hard_start_xmit = vcan_tx;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
dev->destructor = free_netdev;