OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

virtio-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [virtio-comment] RE: RE: [PATCH v15] virtio-net: support device stats


> From: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
> Sent: Tuesday, August 29, 2023 12:48 PM
> 
> For this line:
>  "If the reply header structure and actual stats are split properly, it will be easy
>   to add the query by the owner device."
> 
> So for the header structure, is there some specific requirements?

TLV type, length, is only two fields needed and to align to 64-bit.
struct virtio_element_type {
	u16 type;
	u16 rsvd;
	u32 length;
};

Above generic type if defined, that we can possibly use across many virtio devices.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]