Re: [PATCH net-next v6 4/8] virtio_net: device stats helpers support driver stats

2024-04-23 Thread Jason Wang
On Tue, Apr 23, 2024 at 7:32 PM Xuan Zhuo wrote: > > 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. > >

[PATCH net-next v6 4/8] virtio_net: device stats helpers support driver stats

2024-04-23 Thread Xuan Zhuo
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 --- drivers/net/virtio_net.c | 157 +