Message ID | 5fbe3a1f-6625-eadc-b1c9-f76f78debb94@gmail.com |
---|---|
Headers | show |
Series | net: switch further drivers to core functionality for handling per-cpu byte/packet counters | expand |
Heiner Kallweit <hkallweit1@gmail.com> writes: > 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 <hkallweit1@gmail.com> > --- > drivers/net/wireless/quantenna/qtnfmac/core.c | 78 ++++--------------- > drivers/net/wireless/quantenna/qtnfmac/core.h | 4 - > .../quantenna/qtnfmac/pcie/pearl_pcie.c | 4 +- > .../quantenna/qtnfmac/pcie/topaz_pcie.c | 4 +- > 4 files changed, 20 insertions(+), 70 deletions(-) Jakub, feel free to take this to net-next: Acked-by: Kalle Valo <kvalo@codeaurora.org> But I can also take this to wireless-drivers-next, whichever you prefer. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches