We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf4c355 commit bbb22d4Copy full SHA for bbb22d4
crates/virtio-queue/src/queue_guard.rs
@@ -231,11 +231,11 @@ mod tests {
231
vq.desc_table().store(i, desc);
232
}
233
234
- vq.avail().ring().ref_at(0).store(0);
235
- vq.avail().ring().ref_at(1).store(2);
236
- vq.avail().ring().ref_at(2).store(5);
+ vq.avail().ring().ref_at(0).store(u16::to_le(0));
+ vq.avail().ring().ref_at(1).store(u16::to_le(2));
+ vq.avail().ring().ref_at(2).store(u16::to_le(5));
237
// Let the device know it can consume chains with the index < 2.
238
- vq.avail().idx().store(3);
+ vq.avail().idx().store(u16::to_le(3));
239
// No descriptor chains are consumed at this point.
240
assert_eq!(g.next_avail(), 0);
241
assert_eq!(g.next_used(), 0);
0 commit comments