aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorJeremy Kerr <[email protected]>2024-06-07 10:25:25 +0000
committerJakub Kicinski <[email protected]>2024-06-12 02:24:56 +0000
commit94b601bc4f8528262b2b83194b7fd3fc2a6da75a (patch)
treef5d6816a8ed5f6f68d2fe667e516cb43a0d34042 /net/ipv4/tcp_ipv4.c
parentnet: core,vrf: Change pcpu_dstat fields to u64_stats_t (diff)
downloadkernel-94b601bc4f8528262b2b83194b7fd3fc2a6da75a.tar.gz
kernel-94b601bc4f8528262b2b83194b7fd3fc2a6da75a.zip
net: core: Implement dstats-type stats collections
We currently have dev_get_tstats64() for collecting per-cpu stats of type pcpu_sw_netstats ("tstats"). However, tstats doesn't allow for accounting tx/rx drops. We do have a stats variant that does have stats for dropped packets: struct pcpu_dstats, but there are no core helpers for using those stats. The VRF driver uses dstats, by providing its own collation/fetch functions to do so. This change adds a common implementation for dstats-type collection, used when pcpu_stat_type == NETDEV_PCPU_STAT_DSTAT. This is based on the VRF driver's existing stats collator (plus the unused tx_drops stat from there). We will switch the VRF driver to use this in the next change. Signed-off-by: Jeremy Kerr <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: David Ahern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions