Re: [virtio-dev] repost: af_packet vs virtio (was packed ring layout proposal v2)

2017-08-06 Thread Adam Tao
On Wed, Aug 02, 2017 at 04:50:03PM +0300, Michael S. Tsirkin wrote: > On Tue, Aug 01, 2017 at 08:54:27PM -0700, Steven Luong wrote: > > * Descriptor ring: > > > > Guest adds descriptors with unique index values and DESC_HW set in > > flags. > > Host overwrites used descriptors with

Re: [virtio-dev] repost: af_packet vs virtio (was packed ring layout proposal v2)

2017-08-02 Thread Michael S. Tsirkin
On Tue, Aug 01, 2017 at 08:54:27PM -0700, Steven Luong wrote: > * Descriptor ring: > > Guest adds descriptors with unique index values and DESC_HW set in flags. > Host overwrites used descriptors with correct len, index, and DESC_HW > clear.  Flags are always set/cleared last. >