As the spec: https://github.com/oasis-tcs/virtio-spec/commit/42f389989823039724f95bbbd243291ab0064f82 The virtio net supports to get device stats. Please review. Thanks. Xuan Zhuo (6): virtio_net: introduce device stats feature and structures virtio_net: virtnet_send_command supports command-specific-result virtio_net: support device stats virtio_net: stats map include driver stats virtio_net: add the total stats field virtio_net: rename stat tx_timeout to timeout drivers/net/virtio_net.c | 533 ++++++++++++++++++++++++++++---- include/uapi/linux/virtio_net.h | 137 ++++++++ 2 files changed, 610 insertions(+), 60 deletions(-) -- 2.32.0.3.g01195cf9f