mlxsw: spectrum_router: IPv6 events: Use tracker helpers to hold & put netdevices
authorPetr Machata <petrm@nvidia.com>
Thu, 27 Jul 2023 15:59:25 +0000 (17:59 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Jul 2023 20:38:46 +0000 (13:38 -0700)
commitcb2116204169b24fbb667c823e8fced069d5e561
tree7b2870dd6822d8259d0735e015470cf95795082c
parentd0e0e880122fb865884ef86372cd6221225c6459
mlxsw: spectrum_router: IPv6 events: Use tracker helpers to hold & put netdevices

Using the tracking helpers makes it easier to debug netdevice refcount
imbalances when CONFIG_NET_DEV_REFCNT_TRACKER is enabled.

Convert dev_hold() / dev_put() to netdev_hold() / netdev_put() in the
router code that deals with IPv6 address events.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/f0af6ad4722b4ca6e598fd4fda8311a3041651ec.1690471775.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c