华清远见
传输超时 当发生传送超时, 驱动必须在接口统计量中标记这个错误, 并安排设备被复位到一个干净的能发送新报文的状态 . 当一个超时发生在 snull, 驱动调用 snull_interrupt 来填充"丢失"的中断并用 netif_wake_queue 重启队列 .net_dev>watchdog_timeo = TX_TIMEOUT; static const struct net_device_ops netdev_ops = { ... .ndo_tx_timeout = xxx_tx_timeout, ...}; xxx_tx_timeout (struct net_device *dev){ ... netif_wake_queue(dev);}