devlink: Move netdev_to_devlink helpers to devlink.c
authorLeon Romanovsky <leonro@nvidia.com>
Tue, 12 Oct 2021 13:15:22 +0000 (16:15 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Oct 2021 23:29:16 +0000 (16:29 -0700)
commit2bc50987dc1f467551f2ca537239016915256f6d
treec39e41c60af4b5ea1e1cace769057ca371ab98a7
parent21314638c9f251bb40c8ad3b4e1c232057789b8b
devlink: Move netdev_to_devlink helpers to devlink.c

Both netdev_to_devlink and netdev_to_devlink_port are used in devlink.c
only, so move them in order to reduce their scope.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/devlink.h
net/core/devlink.c