/* at91_rx_overflow_err - send error frame due to rx overflow @dev: net device  */
static void at91_rx_overflow_err(struct net_device *dev)
/* at91_rx_overflow_err - send error frame due to rx overflow @dev: net device  */
static void at91_rx_overflow_err(struct net_device *dev)
{
	struct net_device_stats *stats = &dev->stats;
	struct sk_buff *skb;
	struct can_frame *cf;
	dev_dbg(dev->dev.parent, "RX buffer overflow\n");
	stats->rx_over_errors++;
	stats->rx_errors++;
	skb = alloc_can_err_skb(dev, &cf);
	if (unlikely(!skb))
		return;
	cf->can_id |= CAN_ERR_CRTL;
	cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
	netif_receive_skb(skb);
	stats->rx_packets++;
	stats->rx_bytes += cf->can_dlc;
}