openvswitch: Move stats allocation to core
authorBreno Leitao <leitao@debian.org>
Fri, 31 May 2024 11:15:49 +0000 (04:15 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 4 Jun 2024 14:06:37 +0000 (16:06 +0200)
commit8c3fdff2171c834df5fa5ff353b94ada2e5376ca
tree2556495ec2e58bcf57a9d68cda503186cc940da2
parentcd0057ad75116bacf16fea82e48c1db642971136
openvswitch: Move stats allocation to core

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 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.

Move openvswitch driver to leverage the core allocation.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://lore.kernel.org/r/20240531111552.3209198-1-leitao@debian.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/openvswitch/vport-internal_dev.c