/* This functions should be called when the device goes bus-off to tell the netif layer that no more packets can be sent or received. If enabled, a timer is started to trigger bus-off recovery.  */
void can_bus_off(struct net_device *dev)
/* This functions should be called when the device goes bus-off to tell the netif layer that no more packets can be sent or received. If enabled, a timer is started to trigger bus-off recovery.  */
void can_bus_off(struct net_device *dev)
{
	struct can_priv *priv = netdev_priv(dev);
	dev_dbg(dev->dev.parent, "bus-off\n");
	netif_carrier_off(dev);
	priv->can_stats.bus_off++;
	if (priv->restart_ms)
		mod_timer(&priv->restart_timer,
			  jiffies + (priv->restart_ms * HZ) / 1000);
}