Revert "net: downgrade iob priority of input/udp/icmp to avoid blocking devif"

This reverts commit d87620abc9.
This commit is contained in:
Zhe Weng
2023-01-11 17:00:55 +08:00
committed by Xiang Xiao
parent 4de3387eb2
commit 6222ad5764
8 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -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;
+3 -3
View File
@@ -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);
}
}