mirror of
https://github.com/apache/nuttx.git
synced 2026-08-10 23:15:15 +00:00
net/tcp: reprepare response buffer from unthrottle pool
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
3af47d1913
commit
ffd81e63be
1 changed files with 2 additions and 2 deletions
|
|
@ -118,7 +118,7 @@ uint16_t tcp_callback(FAR struct net_driver_s *dev,
|
|||
|
||||
/* Prepare device buffer */
|
||||
|
||||
if (dev->d_iob == NULL && netdev_iob_prepare(dev, true, 0) != OK)
|
||||
if (dev->d_iob == NULL && netdev_iob_prepare(dev, false, 0) != OK)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -190,7 +190,7 @@ uint16_t tcp_callback(FAR struct net_driver_s *dev,
|
|||
|
||||
if (dev->d_iob == NULL)
|
||||
{
|
||||
netdev_iob_prepare(dev, true, 0);
|
||||
netdev_iob_prepare(dev, false, 0);
|
||||
}
|
||||
|
||||
return flags;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue