Kernel: Add system for hardware checksum offload on received packets

This commit is contained in:
2026-06-30 20:14:38 +03:00
parent c0bd07174d
commit a6ad9b9b2e
13 changed files with 82 additions and 31 deletions
+2 -4
View File
@@ -272,10 +272,8 @@ namespace Kernel
{
m_rx_lock.unlock(InterruptState::Enabled);
NetworkManager::get().on_receive(*this, BAN::ConstByteSpan {
reinterpret_cast<const uint8_t*>(m_rx_buffer_region->vaddr() + m_rx_head * s_buffer_size),
packet_length
});
const uint8_t* packet_data = reinterpret_cast<const uint8_t*>(m_rx_buffer_region->vaddr() + m_rx_head * s_buffer_size);
NetworkManager::get().on_receive(*this, BAN::ConstByteSpan { packet_data, packet_length }, 0);
m_rx_lock.lock();
}