1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-23 18:06:20 +04:00
This commit is contained in:
Stephen Marz 2020-05-26 19:56:42 -04:00
parent a26b67cf01
commit 8df4eab869

View File

@ -735,7 +735,6 @@ pub fn pending(dev: &mut Device) {
unsafe { unsafe {
let ref queue = *dev.queue; let ref queue = *dev.queue;
while dev.ack_used_idx != queue.used.idx { while dev.ack_used_idx != queue.used.idx {
let ref elem = queue.used.ring let ref elem = queue.used.ring
[dev.ack_used_idx as usize % VIRTIO_RING_SIZE]; [dev.ack_used_idx as usize % VIRTIO_RING_SIZE];
// println!("Ack {}, elem {}, len {}", dev.ack_used_idx, elem.id, elem.len); // println!("Ack {}, elem {}, len {}", dev.ack_used_idx, elem.id, elem.len);