Kernel: Use ring buffers for TCP windows

This speeds up TCP networkign a ton as it doesnt have to do unnecessary
memmoves for each send/receive
This commit is contained in:
2026-02-23 20:31:56 +02:00
parent 666a7bb826
commit acf28d8170
2 changed files with 38 additions and 24 deletions

View File

@@ -97,6 +97,7 @@ namespace Kernel
bool has_ghost_byte { false };
uint32_t data_tail { 0 };
uint32_t data_size { 0 }; // number of bytes in this buffer
uint8_t scale_shift { 0 }; // window scale
BAN::UniqPtr<VirtualRange> buffer;
@@ -117,6 +118,7 @@ namespace Kernel
bool has_ghost_byte { false };
uint32_t data_tail { 0 };
uint32_t data_size { 0 }; // number of bytes in this buffer
uint32_t sent_size { 0 }; // number of bytes in this buffer that have been sent
BAN::UniqPtr<VirtualRange> buffer;