Home
last modified time | relevance | path

Searched refs:driver_net (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.7/kernel/src/driver/net/
Dvirtio_net.rs111 pub fn new(driver_net: VirtIONet<HalImpl, T, 2>) -> Self { in new()
119 smoltcp::wire::EthernetAddress(driver_net.mac_address()), in new()
122 let inner: Arc<SpinLock<VirtIONet<HalImpl, T, 2>>> = Arc::new(SpinLock::new(driver_net)); in new()
192 let mut driver_net = self.driver.inner.lock(); in consume() localVariable
193 let mut tx_buf = driver_net.new_tx_buffer(len); in consume()
195 driver_net.send(tx_buf).expect("virtio_net send failed"); in consume()
219 let driver_net: VirtIONet<HalImpl, T, 2> = in virtio_net() localVariable
227 let mac = smoltcp::wire::EthernetAddress::from_bytes(&driver_net.mac_address()); in virtio_net()
228 let driver: VirtioNICDriver<T> = VirtioNICDriver::new(driver_net); in virtio_net()