mbox series

[net-next,0/4] net: add functionality to net core byte/packet counters and use it in r8169

Message ID 1fdb8ecd-be0a-755d-1d92-c62ed8399e77@gmail.com
Headers show
Series net: add functionality to net core byte/packet counters and use it in r8169 | expand

Message

Heiner Kallweit Oct. 29, 2020, 5:28 p.m. UTC
This series adds missing functionality to the net core handling of
byte/packet counters and statistics. The extensions are then used
to remove private rx/tx byte/packet counters in r8169 driver.

Heiner Kallweit (4):
  net: core: add dev_sw_netstats_tx_add
  net: core: add devm_netdev_alloc_pcpu_stats
  r8169: use struct pcpu_sw_netstats for rx/tx packet/byte counters
  r8169: remove no longer needed private rx/tx packet/byte counters

 drivers/net/ethernet/realtek/r8169_main.c | 45 ++++-------------------
 include/linux/netdevice.h                 | 26 +++++++++++++
 2 files changed, 34 insertions(+), 37 deletions(-)

Comments

Jakub Kicinski Oct. 31, 2020, 6:35 p.m. UTC | #1
On Thu, 29 Oct 2020 18:28:52 +0100 Heiner Kallweit wrote:
> This series adds missing functionality to the net core handling of
> byte/packet counters and statistics. The extensions are then used
> to remove private rx/tx byte/packet counters in r8169 driver.

Applied, thanks!