RE: [virtio-comment] RE: RE: [PATCH v15] virtio-net: support device stats
> From: Xuan Zhuo <>
> 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.