Skip to content

Commit

Permalink
virtio_ring: fix typos in vring_desc_extra
Browse files Browse the repository at this point in the history
We're actually tracking descriptor address and length instead of the
buffer.

Signed-off-by: Jason Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
  • Loading branch information
jasowang authored and mstsirkin committed Nov 1, 2021
1 parent 080cd7c commit ef5c366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/virtio/virtio_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ struct vring_desc_state_packed {
};

struct vring_desc_extra {
dma_addr_t addr; /* Buffer DMA addr. */
u32 len; /* Buffer length. */
dma_addr_t addr; /* Descriptor DMA addr. */
u32 len; /* Descriptor length. */
u16 flags; /* Descriptor flags. */
u16 next; /* The next desc state in a list. */
};
Expand Down

0 comments on commit ef5c366

Please sign in to comment.