mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user