mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 04:07:51 +00:00
Kernel: Avoid allocating KBuffers for TCP packets
This avoids allocating a KBuffer for each incoming TCP packet.
This commit is contained in:
parent
c0800ab898
commit
5feeb62843
Notes:
sideshowbarker
2024-07-18 18:18:11 +09:00
Author: https://github.com/gunnarbeutner
Commit: 5feeb62843
Pull-request: https://github.com/SerenityOS/serenity/pull/7049
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bgianfo ✅
3 changed files with 7 additions and 7 deletions
|
@ -43,7 +43,7 @@ public:
|
|||
|
||||
virtual int ioctl(FileDescription&, unsigned request, FlatPtr arg) override;
|
||||
|
||||
bool did_receive(const IPv4Address& peer_address, u16 peer_port, KBuffer&&, const Time&);
|
||||
bool did_receive(const IPv4Address& peer_address, u16 peer_port, ReadonlyBytes, const Time&);
|
||||
|
||||
const IPv4Address& local_address() const { return m_local_address; }
|
||||
u16 local_port() const { return m_local_port; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue