Unverified Commit abce7cce authored by Stefan Lankes's avatar Stefan Lankes Committed by GitHub
Browse files

fix check to notify output

remove typo to solve issue #17
parent 1e075b5b
......@@ -127,7 +127,7 @@ impl VirtioNetPciDevice {
pub fn handle_notify_output(&mut self, dest: &[u8], cpu: &dyn VirtualCPU) {
let tx_num = read_u16!(dest, 0);
if tx_num == 1 && self.read_status_reg() & STATUS_DRIVER_OK == 1 {
if tx_num == 1 && self.read_status_reg() & STATUS_DRIVER_OK == STATUS_DRIVER_OK {
self.send_available_packets(cpu);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment