Skip to content

Commit a52430a

Browse files
committed
perf(virtqueue): remove unused MemPool::limit field
1 parent 9d1e4dd commit a52430a

File tree

1 file changed

+0
-6
lines changed
  • src/drivers/virtio/virtqueue

1 file changed

+0
-6
lines changed

src/drivers/virtio/virtqueue/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -513,13 +513,8 @@ pub enum BufferType {
513513
}
514514

515515
/// MemPool allows to easily control, request and provide memory for Virtqueues.
516-
///
517-
/// The struct is initialized with a limit of free running "tracked"
518-
/// memory descriptor ids. As Virtqueus do only allow a limited amount of descriptors in their queue,
519-
/// the independent queues, can control the number of descriptors by this.
520516
struct MemPool {
521517
pool: Vec<u16>,
522-
limit: u16,
523518
}
524519

525520
impl MemPool {
@@ -532,7 +527,6 @@ impl MemPool {
532527
fn new(size: u16) -> MemPool {
533528
MemPool {
534529
pool: (0..size).collect(),
535-
limit: size,
536530
}
537531
}
538532
}

0 commit comments

Comments
 (0)