Thread (6 messages) 6 messages, 3 authors, 2024-02-29

Re: [PATCH net-next 1/2] net: get stats64 if device if driver is configured

From: Simon Horman <horms@kernel.org>
Date: 2024-02-28 14:34:04
Also in: lkml

On Wed, Feb 28, 2024 at 03:31:21AM -0800, Breno Leitao wrote:
If the network driver is relying in the net core to do stats allocation,
then we want to dev_get_tstats64() instead of netdev_stats_to_stats64(),
since there are per-cpu stats that needs to be taken in consideration.

This will also simplify the drivers in regard to statistics. Once the
driver sets NETDEV_PCPU_STAT_TSTATS, it doesn't not need to allocate the
stacks, neither it needs to set `.ndo_get_stats64 = dev_get_tstats64`
for the generic stats collection function anymore.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help