0001 .. SPDX-License-Identifier: GPL-2.0
0002
0003 ====================
0004 mlx5 devlink support
0005 ====================
0006
0007 This document describes the devlink features implemented by the ``mlx5``
0008 device driver.
0009
0010 Parameters
0011 ==========
0012
0013 .. list-table:: Generic parameters implemented
0014
0015 * - Name
0016 - Mode
0017 - Validation
0018 * - ``enable_roce``
0019 - driverinit
0020 - Type: Boolean
0021 * - ``io_eq_size``
0022 - driverinit
0023 - The range is between 64 and 4096.
0024 * - ``event_eq_size``
0025 - driverinit
0026 - The range is between 64 and 4096.
0027 * - ``max_macs``
0028 - driverinit
0029 - The range is between 1 and 2^31. Only power of 2 values are supported.
0030
0031 The ``mlx5`` driver also implements the following driver-specific
0032 parameters.
0033
0034 .. list-table:: Driver-specific parameters implemented
0035 :widths: 5 5 5 85
0036
0037 * - Name
0038 - Type
0039 - Mode
0040 - Description
0041 * - ``flow_steering_mode``
0042 - string
0043 - runtime
0044 - Controls the flow steering mode of the driver
0045
0046 * ``dmfs`` Device managed flow steering. In DMFS mode, the HW
0047 steering entities are created and managed through firmware.
0048 * ``smfs`` Software managed flow steering. In SMFS mode, the HW
0049 steering entities are created and manage through the driver without
0050 firmware intervention.
0051 * - ``fdb_large_groups``
0052 - u32
0053 - driverinit
0054 - Control the number of large groups (size > 1) in the FDB table.
0055
0056 * The default value is 15, and the range is between 1 and 1024.
0057
0058 The ``mlx5`` driver supports reloading via ``DEVLINK_CMD_RELOAD``
0059
0060 Info versions
0061 =============
0062
0063 The ``mlx5`` driver reports the following versions
0064
0065 .. list-table:: devlink info versions implemented
0066 :widths: 5 5 90
0067
0068 * - Name
0069 - Type
0070 - Description
0071 * - ``fw.psid``
0072 - fixed
0073 - Used to represent the board id of the device.
0074 * - ``fw.version``
0075 - stored, running
0076 - Three digit major.minor.subminor firmware version number.