Skip to content

Commit

Permalink
virtio-net: support device stats
Browse files Browse the repository at this point in the history
This patch allows the driver to obtain some statistics from the device.

In the device implementation, we can count a lot of such information,
which can be used for debugging and judging the running status of the
device. We hope to directly display it to the user through ethtool.

To get stats atomically, try to get stats for all/multiple queue pairs
in one command.

Fixes: #180

Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
  • Loading branch information
fengidri authored and cohuck committed Oct 30, 2023
1 parent 3fdaa17 commit 42f3899
Show file tree
Hide file tree
Showing 3 changed files with 511 additions and 3 deletions.
Loading

0 comments on commit 42f3899

Please sign in to comment.