Commit 57961f76 authored by Stefan Lankes's avatar Stefan Lankes Committed by Stefan Lankes
Browse files

introduce default descriptor flag

parent 119582f9
......@@ -50,6 +50,7 @@ pub mod consts {
pub const VIRTIO_F_NOTIFICATION_DATA: u64 = 1 << 38;
// Descriptor flags
pub const VIRTQ_DESC_F_DEFAULT: u16 = 0;
pub const VIRTQ_DESC_F_NEXT: u16 = 1; // Buffer continues via next field
pub const VIRTQ_DESC_F_WRITE: u16 = 2; // Buffer is device write-only (instead of read-only)
pub const VIRTQ_DESC_F_INDIRECT: u16 = 4; // Buffer contains list of virtq_desc
......
......@@ -296,7 +296,7 @@ impl<'a> VirtioNetDriver<'a> {
i,
addr.try_into().unwrap(),
buffer_size,
0,
VIRTQ_DESC_F_DEFAULT,
);
vec_buffer.push(buffer);
}
......
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