vxlan: Do not alloc tstats manually
authorBreno Leitao <leitao@debian.org>
Mon, 11 Mar 2024 11:24:30 +0000 (04:24 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 Mar 2024 23:01:06 +0000 (16:01 -0700)
commite28c5efc31397af17bc5a7d55b963f59bcde0166
tree425c65799ccc27356c3c41dade5502f510886b17
parenteaf657f7adba8984509db7403ac6bdaa219e5722
vxlan: Do not alloc tstats manually

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 vxlan driver and leverage the network
core allocation instead.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Subbaraya Sundeep <sbhatta@marvell.com>
Link: https://lore.kernel.org/r/20240311112437.3813987-1-leitao@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/vxlan/vxlan_core.c