mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
Most Ethernet drviers: Check if the poll timer is running before restarting it at the end of each TX.
This commit is contained in:
+2
-1
@@ -656,7 +656,8 @@ static int tun_ifup(struct net_driver_s *dev)
|
||||
|
||||
/* Set and activate a timer process */
|
||||
|
||||
(void)wd_start(priv->txpoll, TUN_WDDELAY, tun_poll_expiry, 1, (wdparm_t)priv);
|
||||
(void)wd_start(priv->txpoll, TUN_WDDELAY, tun_poll_expiry,
|
||||
1, (wdparm_t)priv);
|
||||
|
||||
priv->bifup = true;
|
||||
return OK;
|
||||
|
||||
Reference in New Issue
Block a user