diff options
author | Jeremy Kerr <jk@codeconstruct.com.au> | 2024-06-07 18:25:26 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-06-11 19:24:56 -0700 |
commit | 2202576d4631b977a95162a387c0c9fb4ca6819c (patch) | |
tree | eee33772358f869f92af32d164ec187af273dc9c /mm/debug.c | |
parent | 94b601bc4f8528262b2b83194b7fd3fc2a6da75a (diff) |
net: vrf: move to generic dstat helpers
The vrf driver has its own dstats-to-rtnl_link_stats64 collection, but
we now have a generic implementation for dstats collection, so switch to
this.
In doing so, we fix a minor issue where the (non-percpu)
dev->stats->tx_errors value was never collected into rtnl_link_stats64,
as the generic dev_get_dstats64() consumes the starting values from
dev->stats.
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240607-dstats-v3-3-cc781fe116f7@codeconstruct.com.au
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'mm/debug.c')
0 files changed, 0 insertions, 0 deletions