Kernel: Add support for TCP window size scaling

This should allow us to eventually properly saturate high-bandwidth
network links when using TCP, once other nonoptimal parts of our
network stack are improved.
This commit is contained in:
Idan Horowitz 2023-12-26 21:05:15 +02:00 committed by Andreas Kling
commit 785c9d5c2b
Notes: sideshowbarker 2024-07-17 03:14:39 +09:00
6 changed files with 124 additions and 14 deletions

View file

@ -38,7 +38,7 @@ MutexProtected<IPv4Socket::List>& IPv4Socket::all_sockets()
ErrorOr<NonnullOwnPtr<DoubleBuffer>> IPv4Socket::try_create_receive_buffer()
{
return DoubleBuffer::try_create("IPv4Socket: Receive buffer"sv, 256 * KiB);
return DoubleBuffer::try_create("IPv4Socket: Receive buffer"sv, receive_buffer_size);
}
ErrorOr<NonnullRefPtr<Socket>> IPv4Socket::create(int type, int protocol)