Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

devlink: convert driver-specific files to reStructuredText

Several drivers document what parameters they support in
a devlink-params-*.txt file. This file is supposed to contain both the
list of generic parameters implemented by the driver, as well as a list
of driver-specific parameters and their descriptions.

It would also be good if the driver documentation included other
driver-specific implementations, such as info versions, devlink
regions, and so forth.

Convert all of these documentation files to reStructuredText, and rename
them to just the driver name. Future changes will include other
driver-specific implementations. Each file will contain a table for the
generic parameters implemented, as well as a separate table for the
driver-specific parameters.

Future sections such as for devlink info versions will be added to these
files. This avoids creating additional devlink-<feature>-<driver> files
for each devlink feature, reducing clutter in the documentation folder.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Cc: Tariq Toukan <tariqt@mellanox.com>
Cc: Saeed Mahameed <saeedm@mellanox.com>
Cc: Leon Romanovsky <leonro@mellanox.com>
Cc: Michael Chan <michael.chan@broadcom.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Vivien Didelot <vivien.didelot@gmail.com>
Cc: Jiri Pirko <jiri@mellanox.com>
Cc: Ido Schimmel <idosch@mellanox.com>
Cc: Jakub Kicinski <jakub.kicinski@netronome.com>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jacob Keller and committed by
David S. Miller
6c39e015 5948f85b

+222 -70
+1 -1
Documentation/networking/device_drivers/ti/cpsw_switchdev.txt
··· 39 39 40 40 Devlink configuration parameters 41 41 ==================== 42 - See Documentation/networking/devlink-params-ti-cpsw-switch.txt 42 + See Documentation/networking/devlink/ti-cpsw-switch.rst 43 43 44 44 ==================== 45 45 # Bridging in dual mac mode
+41
Documentation/networking/devlink/bnxt.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0 2 + 3 + ==================== 4 + bnxt devlink support 5 + ==================== 6 + 7 + This document describes the devlink features implemented by the ``bnxt`` 8 + device driver. 9 + 10 + Parameters 11 + ========== 12 + 13 + .. list-table:: Generic parameters implemented 14 + 15 + * - Name 16 + - Mode 17 + * - ``enable_sriov`` 18 + - Permanent 19 + * - ``ignore_ari`` 20 + - Permanent 21 + * - ``msix_vec_per_pf_max`` 22 + - Permanent 23 + * - ``msix_vec_per_pf_min`` 24 + - Permanent 25 + 26 + The ``bnxt`` driver also implements the following driver-specific 27 + parameters. 28 + 29 + .. list-table:: Driver-specific parameters implemented 30 + :widths: 5 5 5 85 31 + 32 + * - Name 33 + - Type 34 + - Mode 35 + - Description 36 + * - ``gre_ver_check`` 37 + - Boolean 38 + - Permanent 39 + - Generic Routing Encapsulation (GRE) version check will be enabled in 40 + the device. If disabled, the device will skip the version check for 41 + incoming packets.
+21 -1
Documentation/networking/devlink/index.rst
··· 4 4 devlink is an API to expose device information and resources not directly 5 5 related to any device class, such as chip-wide/switch-ASIC-wide configuration. 6 6 7 - Contents: 7 + Interface documentation 8 + ----------------------- 9 + 10 + The following pages describe various interfaces available through devlink in 11 + general. 8 12 9 13 .. toctree:: 10 14 :maxdepth: 1 ··· 18 14 devlink-params 19 15 devlink-trap 20 16 devlink-trap-netdevsim 17 + 18 + Driver-specific documentation 19 + ----------------------------- 20 + 21 + Each driver that implements ``devlink`` is expected to document what 22 + parameters, info versions, and other features it supports. 23 + 24 + .. toctree:: 25 + :maxdepth: 1 26 + 27 + bnxt 28 + mlx5 29 + mlxsw 30 + mv88e6xxx 31 + nfp 32 + ti-cpsw-switch
+41
Documentation/networking/devlink/mlx5.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0 2 + 3 + ==================== 4 + mlx5 devlink support 5 + ==================== 6 + 7 + This document describes the devlink features implemented by the ``mlx5`` 8 + device driver. 9 + 10 + Parameters 11 + ========== 12 + 13 + .. list-table:: Generic parameters implemented 14 + 15 + * - Name 16 + - Mode 17 + * - ``enable_roce`` 18 + - driverinit 19 + 20 + The ``mlx5`` driver also implements the following driver-specific 21 + parameters. 22 + 23 + .. list-table:: Driver-specific parameters implemented 24 + :widths: 5 5 5 85 25 + 26 + * - Name 27 + - Type 28 + - Mode 29 + - Description 30 + * - ``flow_steering_mode`` 31 + - string 32 + - runtime 33 + - Controls the flow steering mode of the driver 34 + 35 + * ``dmfs`` Device managed flow steering. In DMFS mode, the HW 36 + steering entities are created and managed through firmware. 37 + * ``smfs`` Software managed flow steering. In SMFS mode, the HW 38 + steering entities are created and manage through the driver without 39 + firmware intervention. 40 + 41 + The ``mlx5`` driver supports reloading via ``DEVLINK_CMD_RELOAD``
+38
Documentation/networking/devlink/mlxsw.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0 2 + 3 + ===================== 4 + mlxsw devlink support 5 + ===================== 6 + 7 + This document describes the devlink features implemented by the ``mlxsw`` 8 + device driver. 9 + 10 + Parameters 11 + ========== 12 + 13 + .. list-table:: Generic parameters implemented 14 + 15 + * - Name 16 + - Mode 17 + * - ``fw_load_policy`` 18 + - driverinit 19 + 20 + The ``mlxsw`` driver also implements the following driver-specific 21 + parameters. 22 + 23 + .. list-table:: Driver-specific parameters implemented 24 + :widths: 5 5 5 85 25 + 26 + * - Name 27 + - Type 28 + - Mode 29 + - Description 30 + * - ``acl_region_rehash_interval`` 31 + - u32 32 + - runtime 33 + - Sets an interval for periodic ACL region rehashes. The value is 34 + specified in milliseconds, with a minimum of ``3000``. The value of 35 + ``0`` disables periodic work entirely. The first rehash will be run 36 + immediately after the value is set. 37 + 38 + The ``mlxsw`` driver supports reloading via ``DEVLINK_CMD_RELOAD``
+28
Documentation/networking/devlink/mv88e6xxx.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0 2 + 3 + ========================= 4 + mv88e6xxx devlink support 5 + ========================= 6 + 7 + This document describes the devlink features implemented by the ``mv88e6xxx`` 8 + device driver. 9 + 10 + Parameters 11 + ========== 12 + 13 + The ``mv88e6xxx`` driver implements the following driver-specific parameters. 14 + 15 + .. list-table:: Driver-specific parameters implemented 16 + :widths: 5 5 5 85 17 + 18 + * - Name 19 + - Type 20 + - Mode 21 + - Description 22 + * - ``ATU_hash`` 23 + - u8 24 + - runtime 25 + - Select one of four possible hashing algorithms for MAC addresses in 26 + the Address Translation Unit. A value of 3 may work better than the 27 + default of 1 when many MAC addresses have the same OUI. Only the 28 + values 0 to 3 are valid for this parameter.
+20
Documentation/networking/devlink/nfp.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0 2 + 3 + =================== 4 + nfp devlink support 5 + =================== 6 + 7 + This document describes the devlink features implemented by the ``nfp`` 8 + device driver. 9 + 10 + Parameters 11 + ========== 12 + 13 + .. list-table:: Generic parameters implemented 14 + 15 + * - Name 16 + - Mode 17 + * - ``fw_load_policy`` 18 + - permanent 19 + * - ``reset_dev_on_drv_probe`` 20 + - permanent
+31
Documentation/networking/devlink/ti-cpsw-switch.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0 2 + 3 + ============================== 4 + ti-cpsw-switch devlink support 5 + ============================== 6 + 7 + This document describes the devlink features implemented by the ``ti-cpsw-switch`` 8 + device driver. 9 + 10 + Parameters 11 + ========== 12 + 13 + The ``ti-cpsw-switch`` driver implements the following driver-specific 14 + parameters. 15 + 16 + .. list-table:: Driver-specific parameters implemented 17 + :widths: 5 5 5 85 18 + 19 + * - Name 20 + - Type 21 + - Mode 22 + - Description 23 + * - ``ale_bypass`` 24 + - Boolean 25 + - runtime 26 + - Enables ALE_CONTROL(4).BYPASS mode for debugging purposes. In this 27 + mode, all packets will be sent to the host port only. 28 + * - ``switch_mode`` 29 + - Boolean 30 + - runtime 31 + - Enable switch mode
+1 -1
MAINTAINERS
··· 9890 9890 F: drivers/net/dsa/mv88e6xxx/ 9891 9891 F: include/linux/platform_data/mv88e6xxx.h 9892 9892 F: Documentation/devicetree/bindings/net/dsa/marvell.txt 9893 - F: Documentation/networking/devlink-params-mv88e6xxx.txt 9893 + F: Documentation/networking/devlink/mv88e6xxx.rst 9894 9894 9895 9895 MARVELL ARMADA DRM SUPPORT 9896 9896 M: Russell King <linux@armlinux.org.uk>