Kernel: Disable interrupts while appending packet in E1000

This avoids getting rescheduled and having other packets waiting to get
sent because of that
This commit is contained in:
2026-06-28 01:01:04 +03:00
parent 6339044e4c
commit aedd53b3e0
2 changed files with 13 additions and 5 deletions

View File

@@ -74,8 +74,8 @@ namespace Kernel
BAN::UniqPtr<DMARegion> m_rx_descriptor_region;
BAN::UniqPtr<DMARegion> m_tx_descriptor_region;
BAN::Atomic<uint32_t> m_tx_head1 { 0 };
BAN::Atomic<uint32_t> m_tx_head2 { 0 };
BAN::Atomic<uint32_t> m_tx_head { 0 };
BAN::Atomic<uint32_t> m_tx_commit { 0 };
SpinLock m_rx_lock;
ThreadBlocker m_rx_blocker;