net: limit TCP and UDP send/recv buffer usage with throttled IOB

The main content of this submission is to limit both the TX/RX buffers
of TCP/UDP to throttled IOBs, avoiding impacts on the sending and
receiving of control-type messages.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu
2026-01-19 15:51:04 +08:00
committed by Xiang Xiao
parent a50737a75f
commit fa652f9c24
13 changed files with 25 additions and 47 deletions
+2 -2
View File
@@ -412,7 +412,7 @@ int sixlowpan_queue_frames(FAR struct radio_driver_s *radio,
* necessary.
*/
iob = net_ioballoc(false);
iob = net_ioballoc(true);
DEBUGASSERT(iob != NULL);
fptr = iob->io_data;
@@ -630,7 +630,7 @@ int sixlowpan_queue_frames(FAR struct radio_driver_s *radio,
* necessary.
*/
iob = net_ioballoc(false);
iob = net_ioballoc(true);
DEBUGASSERT(iob != NULL);
/* Initialize the IOB */