netif_rx(skb);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
dev->netdev->last_rx = jiffies;
+#endif
stats->rx_packets++;
stats->rx_bytes += cf->can_dlc;
}
netif_rx(skb);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
dev->netdev->last_rx = jiffies;
+#endif
stats->rx_packets++;
stats->rx_bytes += cf->can_dlc;
}
return 0;
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
static int ems_usb_start_xmit(struct sk_buff *skb, struct net_device *netdev)
+#else
+static netdev_tx_t ems_usb_start_xmit(struct sk_buff *skb,
+ struct net_device *netdev)
+#endif
{
struct ems_usb *dev = netdev_priv(netdev);
struct ems_tx_urb_context *context = NULL;