drivers/netdev: try tcp timer in every txavail call
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
4a559807a5
commit
84daee1f76
16 changed files with 16 additions and 16 deletions
|
@ -1658,7 +1658,7 @@ static void dm9x_txavail_work(FAR void *arg)
|
|||
{
|
||||
/* If so, then poll the network for new XMIT data */
|
||||
|
||||
devif_poll(&priv->dm_dev, dm9x_txpoll);
|
||||
devif_timer(&priv->dm_dev, 0, dm9x_txpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2233,7 +2233,7 @@ static int enc_txavail(struct net_driver_s *dev)
|
|||
* poll the network for new XMIT data
|
||||
*/
|
||||
|
||||
devif_poll(&priv->dev, enc_txpoll);
|
||||
devif_timer(&priv->dev, 0, enc_txpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2387,7 +2387,7 @@ static int enc_txavail(struct net_driver_s *dev)
|
|||
* poll the network for new XMIT data
|
||||
*/
|
||||
|
||||
devif_poll(&priv->dev, enc_txpoll);
|
||||
devif_timer(&priv->dev, 0, enc_txpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1321,7 +1321,7 @@ static void ftmac100_txavail_work(FAR void *arg)
|
|||
|
||||
/* If so, then poll the network for new XMIT data */
|
||||
|
||||
devif_poll(&priv->ft_dev, ftmac100_txpoll);
|
||||
devif_timer(&priv->ft_dev, 0, ftmac100_txpoll);
|
||||
}
|
||||
|
||||
net_unlock();
|
||||
|
|
|
@ -1228,7 +1228,7 @@ static void lan91c111_txavail_work(FAR void *arg)
|
|||
{
|
||||
/* If so, then poll the network for new XMIT data */
|
||||
|
||||
devif_poll(dev, lan91c111_txpoll);
|
||||
devif_timer(dev, 0, lan91c111_txpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -385,7 +385,7 @@ static void lo_txavail_work(FAR void *arg)
|
|||
/* If so, then poll the network for new XMIT data */
|
||||
|
||||
priv->lo_txdone = false;
|
||||
devif_poll(&priv->lo_dev, lo_txpoll);
|
||||
devif_timer(&priv->lo_dev, 0, lo_txpoll);
|
||||
}
|
||||
while (priv->lo_txdone);
|
||||
}
|
||||
|
|
|
@ -1091,7 +1091,7 @@ static void net_rpmsg_drv_txavail_work(FAR void *arg)
|
|||
{
|
||||
/* If so, then poll the network for new XMIT data */
|
||||
|
||||
devif_poll(dev, net_rpmsg_drv_txpoll);
|
||||
devif_timer(dev, 0, net_rpmsg_drv_txpoll);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -917,7 +917,7 @@ static void skel_txavail_work(FAR void *arg)
|
|||
|
||||
/* If so, then poll the network for new XMIT data */
|
||||
|
||||
devif_poll(&priv->sk_dev, skel_txpoll);
|
||||
devif_timer(&priv->sk_dev, 0, skel_txpoll);
|
||||
}
|
||||
|
||||
net_unlock();
|
||||
|
|
|
@ -502,7 +502,7 @@ static int slip_txtask(int argc, FAR char *argv[])
|
|||
{
|
||||
/* No, perform the normal TX poll */
|
||||
|
||||
devif_poll(&priv->dev, slip_txpoll);
|
||||
devif_timer(&priv->dev, 0, slip_txpoll);
|
||||
}
|
||||
|
||||
net_unlock();
|
||||
|
|
|
@ -967,7 +967,7 @@ static void tun_txavail_work(FAR void *arg)
|
|||
/* Poll the network for new XMIT data */
|
||||
|
||||
priv->dev.d_buf = priv->read_buf;
|
||||
devif_poll(&priv->dev, tun_txpoll);
|
||||
devif_timer(&priv->dev, 0, tun_txpoll);
|
||||
}
|
||||
|
||||
net_unlock();
|
||||
|
|
|
@ -872,7 +872,7 @@ static void cdcecm_txavail_work(FAR void *arg)
|
|||
|
||||
if (self->bifup)
|
||||
{
|
||||
devif_poll(&self->dev, cdcecm_txpoll);
|
||||
devif_timer(&self->dev, 0, cdcecm_txpoll);
|
||||
}
|
||||
|
||||
net_unlock();
|
||||
|
|
|
@ -1177,7 +1177,7 @@ static void rndis_txavail_work(FAR void *arg)
|
|||
|
||||
if (rndis_allocnetreq(priv))
|
||||
{
|
||||
devif_poll(&priv->netdev, rndis_txpoll);
|
||||
devif_timer(&priv->netdev, 0, rndis_txpoll);
|
||||
if (priv->net_req != NULL)
|
||||
{
|
||||
rndis_freenetreq(priv);
|
||||
|
|
|
@ -2496,7 +2496,7 @@ static void cdcmbim_txavail_work(void *arg)
|
|||
|
||||
if (priv->bifup)
|
||||
{
|
||||
(void)devif_poll(&priv->netdev, cdcmbim_txpoll);
|
||||
(void)devif_timer(&priv->netdev, 0, cdcmbim_txpoll);
|
||||
}
|
||||
|
||||
net_unlock();
|
||||
|
|
|
@ -797,7 +797,7 @@ static void bcmf_txavail_work(FAR void *arg)
|
|||
|
||||
priv->bc_dev.d_buf = priv->cur_tx_frame->data;
|
||||
priv->bc_dev.d_len = 0;
|
||||
devif_poll(&priv->bc_dev, bcmf_txpoll);
|
||||
devif_timer(&priv->bc_dev, 0, bcmf_txpoll);
|
||||
}
|
||||
|
||||
exit_unlock:
|
||||
|
|
|
@ -876,7 +876,7 @@ static void xbeenet_txavail_work(FAR void *arg)
|
|||
|
||||
/* Then poll the network for new XMIT data */
|
||||
|
||||
devif_poll(&priv->xd_dev.r_dev, xbeenet_txpoll_callback);
|
||||
devif_timer(&priv->xd_dev.r_dev, 0, xbeenet_txpoll_callback);
|
||||
}
|
||||
|
||||
net_unlock();
|
||||
|
|
|
@ -1812,7 +1812,7 @@ static void spirit_txpoll_work(FAR void *arg)
|
|||
{
|
||||
/* Perform a normal, asynchronous poll for new TX data */
|
||||
|
||||
devif_poll(&priv->radio.r_dev, spirit_txpoll_callback);
|
||||
devif_timer(&priv->radio.r_dev, 0, spirit_txpoll_callback);
|
||||
}
|
||||
|
||||
net_unlock();
|
||||
|
|
Loading…
Reference in a new issue