mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 18:03:25 +00:00
Move network polling code to bottom half
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
9804f053f2
commit
7d24e63216
@ -3,7 +3,7 @@
|
||||
use alloc::{borrow::ToOwned, sync::Arc};
|
||||
|
||||
use aster_bigtcp::device::WithDevice;
|
||||
use ostd::sync::LocalIrqDisabled;
|
||||
use aster_softirq::BottomHalfDisabled;
|
||||
use spin::Once;
|
||||
|
||||
use super::{poll::poll_ifaces, Iface};
|
||||
@ -52,7 +52,7 @@ fn new_virtio() -> Option<Arc<Iface>> {
|
||||
|
||||
let ether_addr = virtio_net.lock().mac_addr().0;
|
||||
|
||||
struct Wrapper(Arc<SpinLock<dyn AnyNetworkDevice, LocalIrqDisabled>>);
|
||||
struct Wrapper(Arc<SpinLock<dyn AnyNetworkDevice, BottomHalfDisabled>>);
|
||||
|
||||
impl WithDevice for Wrapper {
|
||||
type Device = dyn AnyNetworkDevice;
|
||||
|
Reference in New Issue
Block a user