net: convert some netlink netdev iterators to depend on the xarray
authorJakub Kicinski <kuba@kernel.org>
Wed, 26 Jul 2023 18:55:30 +0000 (11:55 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Jul 2023 18:35:58 +0000 (11:35 -0700)
commit84e00d9bd4e472bd9b145ed40dbd132dd7a15462
treeb977b7a1bda1dfea681cdcc02acdfd6f51ec7d41
parent759ab1edb56c88906830fd6b2e7b12514dd32758
net: convert some netlink netdev iterators to depend on the xarray

Reap the benefits of easier iteration thanks to the xarray.
Convert just the genetlink ones, those are easier to test.

Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20230726185530.2247698-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdevice.h
net/core/netdev-genl.c
net/ethtool/netlink.c
net/ethtool/tunnels.c