Development discussion of WireGuard
 help / color / mirror / Atom feed
* [PATCH net-next v3 00/10] net: add and use dev_get_tstats64
@ 2020-11-07 20:48 Heiner Kallweit
  2020-11-07 20:49 ` [PATCH net-next v3 01/10] net: core: add dev_get_tstats64 as a ndo_get_stats64 implementation Heiner Kallweit
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Heiner Kallweit @ 2020-11-07 20:48 UTC (permalink / raw)
  To: Jakub Kicinski, David Miller, Alexey Kuznetsov,
	Hideaki YOSHIFUJI, Andrew Lunn, Vivien Didelot, Florian Fainelli,
	Vladimir Oltean, Russell King, Pablo Neira Ayuso, Harald Welte,
	Jason A. Donenfeld, Herbert Xu
  Cc: netdev, osmocom-net-gprs, wireguard, Steffen Klassert

It's a frequent pattern to use netdev->stats for the less frequently
accessed counters and per-cpu counters for the frequently accessed
counters (rx/tx bytes/packets). Add a default ndo_get_stats64()
implementation for this use case. Subsequently switch more drivers
to use this pattern.

v2:
- add patches for replacing ip_tunnel_get_stats64
  Requested additional migrations will come in a separate series.

v3:
- add atomic_long_t member rx_frame_errors in patch 3 for making
  counter updates atomic

Heiner Kallweit (10):
  net: core: add dev_get_tstats64 as a ndo_get_stats64 implementation
  net: dsa: use net core stats64 handling
  tun: switch to net core provided statistics counters
  ip6_tunnel: use ip_tunnel_get_stats64 as ndo_get_stats64 callback
  net: switch to dev_get_tstats64
  gtp: switch to dev_get_tstats64
  wireguard: switch to dev_get_tstats64
  vti: switch to dev_get_tstats64
  ipv4/ipv6: switch to dev_get_tstats64
  net: remove ip_tunnel_get_stats64

 drivers/net/bareudp.c          |   2 +-
 drivers/net/geneve.c           |   2 +-
 drivers/net/gtp.c              |   2 +-
 drivers/net/tun.c              | 121 +++++++++------------------------
 drivers/net/vxlan.c            |   4 +-
 drivers/net/wireguard/device.c |   2 +-
 include/linux/netdevice.h      |   1 +
 include/net/ip_tunnels.h       |   2 -
 net/core/dev.c                 |  15 ++++
 net/dsa/dsa.c                  |   7 +-
 net/dsa/dsa_priv.h             |   2 -
 net/dsa/slave.c                |  29 ++------
 net/ipv4/ip_gre.c              |   6 +-
 net/ipv4/ip_tunnel_core.c      |   9 ---
 net/ipv4/ip_vti.c              |   2 +-
 net/ipv4/ipip.c                |   2 +-
 net/ipv6/ip6_gre.c             |   6 +-
 net/ipv6/ip6_tunnel.c          |  32 +--------
 net/ipv6/ip6_vti.c             |   2 +-
 net/ipv6/sit.c                 |   2 +-
 20 files changed, 75 insertions(+), 175 deletions(-)

-- 
2.29.2


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-11-10  3:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-07 20:48 [PATCH net-next v3 00/10] net: add and use dev_get_tstats64 Heiner Kallweit
2020-11-07 20:49 ` [PATCH net-next v3 01/10] net: core: add dev_get_tstats64 as a ndo_get_stats64 implementation Heiner Kallweit
2020-11-07 20:49 ` [PATCH net-next v3 02/10] net: dsa: use net core stats64 handling Heiner Kallweit
2020-11-07 20:50 ` [PATCH net-next v3 03/10] tun: switch to net core provided statistics counters Heiner Kallweit
2020-11-07 20:51 ` [PATCH net-next v3 04/10] ip6_tunnel: use ip_tunnel_get_stats64 as ndo_get_stats64 callback Heiner Kallweit
2020-11-07 20:52 ` [PATCH net-next v3 05/10] net: switch to dev_get_tstats64 Heiner Kallweit
2020-11-07 20:52 ` [PATCH net-next v3 06/10] gtp: " Heiner Kallweit
2020-11-07 20:53 ` [PATCH net-next v3 07/10] wireguard: " Heiner Kallweit
2020-11-07 20:53 ` [PATCH net-next v3 08/10] vti: " Heiner Kallweit
2020-11-07 20:54 ` [PATCH net-next v3 09/10] ipv4/ipv6: " Heiner Kallweit
2020-11-07 20:55 ` [PATCH net-next v3 10/10] net: remove ip_tunnel_get_stats64 Heiner Kallweit
2020-11-10  3:58 ` [PATCH net-next v3 00/10] net: add and use dev_get_tstats64 Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).