]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
virtio_net: device stats helpers support driver stats
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>
Fri, 26 Apr 2024 03:39:25 +0000 (11:39 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 30 Apr 2024 08:51:33 +0000 (10:51 +0200)
commitd86769b9d23c3907349163933adb9dad8059918b
tree76e79a8dc4166e49c54d69bcc05633d8dfb16c34
parent941168f8b40e50518a3bc6ce770a7062a5d99230
virtio_net: device stats helpers support driver stats

In the last commit, we introduced some helpers for device stats.
And the drivers stats are realized by the open code.
This commit make the helpers to support driver stats.
Then we can have the unify helper for device and driver stats.

Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/virtio_net.c