diff options
| author | Heiner Kallweit <[email protected]> | 2020-11-10 19:48:54 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2020-11-12 22:58:27 +0000 |
| commit | 45fc3fd4308c5dbb45aa652399a084364e60d4b0 (patch) | |
| tree | 2388e7004240cefbe205f59cf394b7410c0a6953 /drivers/net/usb/asix_devices.c | |
| parent | qmi_wwan: switch to core handling of rx/tx byte/packet counters (diff) | |
| download | kernel-45fc3fd4308c5dbb45aa652399a084364e60d4b0.tar.gz kernel-45fc3fd4308c5dbb45aa652399a084364e60d4b0.zip | |
qtnfmac: switch to core handling of rx/tx byte/packet counters
Use netdev->tstats instead of a member of qtnf_vif for storing a pointer
to the per-cpu counters. This allows us to use core functionality for
statistics handling.
The driver sets netdev->needs_free_netdev, therefore freeing the per-cpu
counters at the right point in time is a little bit tricky. Best option
seems to be to use the ndo_init/ndo_uninit callbacks.
Signed-off-by: Heiner Kallweit <[email protected]>
Acked-by: Kalle Valo <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/usb/asix_devices.c')
0 files changed, 0 insertions, 0 deletions
