Revision tags: v6.1.12 |
|
#
b4740e3a |
| 14-Feb-2023 |
Moshe Shemesh <moshe@nvidia.com> |
devlink: Split out health reporter create code
Move devlink health reporter create/destroy and related dev code to new file health.c. This file shall include all callbacks and functionality that are
devlink: Split out health reporter create code
Move devlink health reporter create/destroy and related dev code to new file health.c. This file shall include all callbacks and functionality that are related to devlink health.
In addition, fix kdoc indentation and make reporter create/destroy kdoc more clear. No functional change in this patch.
Signed-off-by: Moshe Shemesh <moshe@nvidia.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
Revision tags: v6.1.11, v6.1.10 |
|
#
dfefcb0c |
| 03-Feb-2023 |
Jakub Kicinski <kuba@kernel.org> |
Merge branch 'devlink-move-devlink-dev-code-to-a-separate-file'
Moshe Shemesh says:
==================== devlink: Move devlink dev code to a separate file
This patchset is moving code from the fil
Merge branch 'devlink-move-devlink-dev-code-to-a-separate-file'
Moshe Shemesh says:
==================== devlink: Move devlink dev code to a separate file
This patchset is moving code from the file leftover.c to new file dev.c. About 1.3K lines are moved by this patchset covering most of the devlink dev object callbacks and functionality: reload, eswitch, info, flash and selftest. ====================
Link: https://lore.kernel.org/r/1675349226-284034-1-git-send-email-moshe@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
#
dbeeca81 |
| 02-Feb-2023 |
Moshe Shemesh <moshe@nvidia.com> |
devlink: Split out dev get and dump code
Move devlink dev get and dump callbacks and related dev code to new file dev.c. This file shall include all callbacks that are specific on devlink dev object
devlink: Split out dev get and dump code
Move devlink dev get and dump callbacks and related dev code to new file dev.c. This file shall include all callbacks that are specific on devlink dev object.
No functional change in this patch.
Signed-off-by: Moshe Shemesh <moshe@nvidia.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
Revision tags: v6.1.9, v6.1.8, v6.1.7, v6.1.6, v6.1.5, v6.0.19, v6.0.18, v6.1.4 |
|
#
3d759e9e |
| 06-Jan-2023 |
Jakub Kicinski <kuba@kernel.org> |
Merge branch 'devlink-code-split-and-structured-instance-walk'
Jakub Kicinski says:
==================== devlink: code split and structured instance walk
Split devlink.c into a handful of files, t
Merge branch 'devlink-code-split-and-structured-instance-walk'
Jakub Kicinski says:
==================== devlink: code split and structured instance walk
Split devlink.c into a handful of files, trying to keep the "core" code away from all the command-specific implementations. The core code has been quite scattered until now. Going forward we can consider using a source file per-subobject, I think that it's quite beneficial to newcomers (based on relative ease with which folks contribute to ethtool vs devlink). But this series doesn't split everything out, yet - partially due to backporting concerns, but mostly due to lack of time. Bulk of the netlink command handling is left in a leftover.c file.
Introduce a context structure for dumps, and use it to store the devlink instance ID of the last dumped devlink instance. This means we don't have to restart the walk from 0 each time.
Finally - introduce a "structured walk". A centralized dump handler in devlink/netlink.c which walks the devlink instances, deals with refcounting/locking, simplifying the per-object implementations quite a bit. Inspired by the ethtool code.
v1: https://lore.kernel.org/all/20230104041636.226398-1-kuba@kernel.org/ RFC: https://lore.kernel.org/all/20221215020155.1619839-1-kuba@kernel.org/ ====================
Link: https://lore.kernel.org/r/20230105040531.353563-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
#
623cd13b |
| 04-Jan-2023 |
Jakub Kicinski <kuba@kernel.org> |
devlink: split out netlink code
Move out the netlink glue into a separate file. Leave the ops in the old file because we'd have to export a ton of functions. Going forward we should switch to split
devlink: split out netlink code
Move out the netlink glue into a separate file. Leave the ops in the old file because we'd have to export a ton of functions. Going forward we should switch to split ops which will let us to put the new ops in the netlink.c file.
Pure code move, no functional changes.
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
#
687125b5 |
| 04-Jan-2023 |
Jakub Kicinski <kuba@kernel.org> |
devlink: split out core code
Move core code into a separate file. It's spread around the main file which makes refactoring and figuring out how devlink works harder.
Move the xarray, all the most c
devlink: split out core code
Move core code into a separate file. It's spread around the main file which makes refactoring and figuring out how devlink works harder.
Move the xarray, all the most core devlink instance code out like locking, ref counting, alloc, register, etc. Leave port stuff in leftover.c, if we want to move port code it'd probably be to its own file.
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
#
f05bd8eb |
| 04-Jan-2023 |
Jakub Kicinski <kuba@kernel.org> |
devlink: move code to a dedicated directory
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 probabl
devlink: move code to a dedicated directory
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>
show more ...
|