usbnet: switch to core handling of rx/tx byte/packet counters
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 10 Nov 2020 19:50:02 +0000 (20:50 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 22:58:27 +0000 (14:58 -0800)
commitaf0c351cc34857ad7b254850b9392d99da46be9e
treea4f40458bd9eb04d78c548a0f32c1d97d8c5bf9f
parent45fc3fd4308c5dbb45aa652399a084364e60d4b0
usbnet: switch to core handling of rx/tx byte/packet counters

Use netdev->tstats instead of a member of usbnet for storing a pointer
to the per-cpu counters. This allows us to use core functionality for
statistics handling.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/usbnet.c
include/linux/usb/usbnet.h