Most Ethernet drviers: Check if the poll timer is running before restarting it at the end of each TX.

This commit is contained in:
Gregory Nutt
2017-02-24 15:58:17 -06:00
parent 12a4a58aa6
commit 8ee2e8d8b0
21 changed files with 329 additions and 103 deletions
+2 -1
View File
@@ -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;