Skip to content

Commit

Permalink
devlink: move devlink documentation to subfolder
Browse files Browse the repository at this point in the history
Combine the documentation for devlink into a subfolder, and provide an
index.rst file that can be used to generally describe devlink.

Signed-off-by: Jacob Keller <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
jacob-keller authored and davem330 committed Jan 11, 2020
1 parent 468672b commit f4bdd71
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions Documentation/networking/devlink/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Linux Devlink Documentation
===========================

devlink is an API to expose device information and resources not directly
related to any device class, such as chip-wide/switch-ASIC-wide configuration.

Contents:

.. toctree::
:maxdepth: 1

devlink-info-versions
devlink-trap
devlink-trap-netdevsim
4 changes: 1 addition & 3 deletions Documentation/networking/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ Contents:
can_ucan_protocol
device_drivers/index
dsa/index
devlink-info-versions
devlink-trap
devlink-trap-netdevsim
devlink/index
ethtool-netlink
ieee802154
j1939
Expand Down
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -4848,6 +4848,7 @@ S: Supported
F: net/core/devlink.c
F: include/net/devlink.h
F: include/uapi/linux/devlink.h
F: Documentation/networking/devlink

DIALOG SEMICONDUCTOR DRIVERS
M: Support Opensource <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/netdevsim/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ struct nsim_trap_data {
};

/* All driver-specific traps must be documented in
* Documentation/networking/devlink-trap-netdevsim.rst
* Documentation/networking/devlink/devlink-trap-netdevsim.rst
*/
enum {
NSIM_TRAP_ID_BASE = DEVLINK_TRAP_GENERIC_ID_MAX,
Expand Down
4 changes: 2 additions & 2 deletions include/net/devlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ struct devlink_trap {
};

/* All traps must be documented in
* Documentation/networking/devlink-trap.rst
* Documentation/networking/devlink/devlink-trap.rst
*/
enum devlink_trap_generic_id {
DEVLINK_TRAP_GENERIC_ID_SMAC_MC,
Expand Down Expand Up @@ -598,7 +598,7 @@ enum devlink_trap_generic_id {
};

/* All trap groups must be documented in
* Documentation/networking/devlink-trap.rst
* Documentation/networking/devlink/devlink-trap.rst
*/
enum devlink_trap_group_generic_id {
DEVLINK_TRAP_GROUP_GENERIC_ID_L2_DROPS,
Expand Down

0 comments on commit f4bdd71

Please sign in to comment.