File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -711,16 +711,16 @@ where
711
711
/// * `mem` - the `GuestMemory` object that can be used to access the queue buffers.
712
712
/// * `idx` - the index of the available ring entry where the driver would put the next
713
713
/// available descriptor chain.
714
- /// * `state ` - the `Queue` object from which the needed data to create the `AvailIter` can
714
+ /// * `queue ` - the `Queue` object from which the needed data to create the `AvailIter` can
715
715
/// be retrieved.
716
- pub ( crate ) fn new ( mem : M , idx : Wrapping < u16 > , state : & ' b mut Queue ) -> Self {
716
+ pub ( crate ) fn new ( mem : M , idx : Wrapping < u16 > , queue : & ' b mut Queue ) -> Self {
717
717
AvailIter {
718
718
mem,
719
- desc_table : state . desc_table ,
720
- avail_ring : state . avail_ring ,
721
- queue_size : state . size ,
719
+ desc_table : queue . desc_table ,
720
+ avail_ring : queue . avail_ring ,
721
+ queue_size : queue . size ,
722
722
last_index : idx,
723
- next_avail : & mut state . next_avail ,
723
+ next_avail : & mut queue . next_avail ,
724
724
}
725
725
}
726
726
You can’t perform that action at this time.
0 commit comments