mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
Revert "net: downgrade iob priority of input/udp/icmp to avoid blocking devif"
This reverts commit d87620abc9.
This commit is contained in:
@@ -74,7 +74,7 @@ int netdev_input(FAR struct net_driver_s *dev,
|
||||
|
||||
/* Prepare iob buffer */
|
||||
|
||||
ret = netdev_iob_prepare(dev, true, 0);
|
||||
ret = netdev_iob_prepare(dev, false, 0);
|
||||
if (ret != OK)
|
||||
{
|
||||
return ret;
|
||||
|
||||
@@ -60,10 +60,10 @@ int netdev_iob_prepare(FAR struct net_driver_s *dev, bool throttled,
|
||||
|
||||
if (dev->d_iob == NULL)
|
||||
{
|
||||
dev->d_iob = net_iobtimedalloc(true, timeout);
|
||||
if (dev->d_iob == NULL && throttled == false)
|
||||
dev->d_iob = net_iobtimedalloc(false, timeout);
|
||||
if (dev->d_iob == NULL && throttled)
|
||||
{
|
||||
dev->d_iob = net_iobtimedalloc(false, timeout);
|
||||
dev->d_iob = net_iobtimedalloc(true, timeout);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user