mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 03:15:20 +00:00
vm-virtio: queue: Fix comment for DescriptorChain::has_next()
This returns trues if this descriptor has another descriptor linked to it. Not whether this descriptor chain has another one following it. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
6170ba06d1
commit
46d082763f
@ -272,7 +272,7 @@ impl<'a> DescriptorChain<'a> {
|
||||
|| (self.has_next() && self.next >= self.table_size))
|
||||
}
|
||||
|
||||
/// Gets if this descriptor chain has another descriptor chain linked after it.
|
||||
/// Gets if this descriptor has another descriptor linked after it.
|
||||
pub fn has_next(&self) -> bool {
|
||||
self.flags & VIRTQ_DESC_F_NEXT != 0 && self.ttl > 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user