From b83a1101744fccf56e254a0711514b3ef5f091fc Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 11 May 2021 23:52:35 +0200 Subject: [PATCH] Kernel: Increase IPv4 buffer size to 256kB This increases the buffer size for connection-oriented sockets to 256kB. In combination with the other patches in this series I was able to receive TCP packets at a rate of about 120Mbps. --- Kernel/Net/IPv4Socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Net/IPv4Socket.h b/Kernel/Net/IPv4Socket.h index b5cea0f26f..7e0d58d8e8 100644 --- a/Kernel/Net/IPv4Socket.h +++ b/Kernel/Net/IPv4Socket.h @@ -110,7 +110,7 @@ private: SinglyLinkedListWithCount m_receive_queue; - DoubleBuffer m_receive_buffer; + DoubleBuffer m_receive_buffer { 256 * KiB }; u16 m_local_port { 0 }; u16 m_peer_port { 0 };