net: usb: qmi_wwan: Leverage core stats allocator
authorBreno Leitao <leitao@debian.org>
Tue, 9 Apr 2024 13:33:05 +0000 (06:33 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 12 Apr 2024 02:45:53 +0000 (19:45 -0700)
commit8959bf2acfbccd6abd2f1bf844716a27355103b2
treecd73f6a344172afcc582d81879b1a413ad6833c1
parente0f89d2864b062b027196925ea19f94b2ce50d6a
net: usb: qmi_wwan: Leverage core stats allocator

With commit 34d21de99cea9 ("net: Move {l,t,d}stats allocation to core and
convert veth & vrf"), stats allocation could be done on net core
instead of in this driver.

With this new approach, the driver doesn't have to bother with error
handling (allocation failure checking, making sure free happens in the
right spot, etc). This is core responsibility now.

Remove the allocation in the qmi_wwan driver and leverage the network
core allocation instead.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://lore.kernel.org/r/20240409133307.2058099-1-leitao@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/qmi_wwan.c
drivers/net/usb/usbnet.c