Reuse Rxbuffer and update qemu_args.sh for vsock

This commit is contained in:
Anmin Liu
2024-06-08 18:06:22 +00:00
committed by Tate, Hongliang Tian
parent 878e8a88f4
commit 9f67fcdc58
11 changed files with 89 additions and 209 deletions

View File

@ -127,6 +127,11 @@ impl DmaPool {
fn num_pages(&self) -> usize {
self.all_pages.lock_irq_disabled().len()
}
/// Return segment size in pool
pub fn segment_size(&self) -> usize {
self.segment_size
}
}
#[derive(Debug)]