Re: [virtio-dev] packed ring layout proposal

From
Stefan Hajnoczi <>
Date
2016-09-16T09:46:56+00:00
ID
Thread
Re: [virtio-dev] packed ring layout proposal
On Fri, Sep 16, 2016 at 01:39:15AM +0300, Michael S. Tsirkin wrote:
> The idea is to have a r/w descriptor in a ring structure,
> replacing the used and available ring, index and descriptor
> buffer.

This is probably obvious but:

Why is the desc.index field needed?

The index field would be needed if the driver had to jump over a DESC_HW
descriptor when adding descriptors, but that doesn't seem necessary
since the device is supposed to overwrite descriptors in ascending ring
order when they complete out-of-order.

Stefan