]> www.infradead.org Git - users/dwmw2/linux.git/commit
wireguard: device: leverage core stats allocator
authorBreno Leitao <leitao@debian.org>
Thu, 14 Mar 2024 22:49:07 +0000 (16:49 -0600)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 19 Mar 2024 10:22:49 +0000 (11:22 +0100)
commitdb2952dfbdf1192df77df6869323d487390f5da6
treef945f32ce2f1d306d3d8c2a275bf8f6665e29106
parentbba045dc4d996d03dce6fe45726e78a1a1f6d4c3
wireguard: device: 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 this driver and leverage the network core
allocation instead.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/wireguard/device.c