devlink: move code to a dedicated directory
authorJakub Kicinski <kuba@kernel.org>
Thu, 5 Jan 2023 04:05:17 +0000 (20:05 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 14:11:00 +0000 (16:11 +0200)
commit1375d2061204785d592c05f5dec47eb487ec3515
tree1e924fe7d704bbca53da7d153cd9346fce38a6df
parenteaeef5c865ab9dc5c153b552b52ed0d90eea614e
devlink: move code to a dedicated directory

[ Upstream commit f05bd8ebeb69c803efd6d8a76d96b7fcd7011094 ]

The devlink code is hard to navigate with 13kLoC in one file.
I really like the way Michal split the ethtool into per-command
files and core. It'd probably be too much to split it all up,
but we can at least separate the core parts out of the per-cmd
implementations and put it in a directory so that new commands
can be separate files.

Move the code, subsequent commit will do a partial split.

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 2ebbc9752d06 ("devlink: add missing unregister linecard notification")
Signed-off-by: Sasha Levin <sashal@kernel.org>
MAINTAINERS
net/Makefile
net/core/Makefile
net/devlink/Makefile [new file with mode: 0644]
net/devlink/leftover.c [moved from net/core/devlink.c with 100% similarity]