16c39e015SJacob Keller.. SPDX-License-Identifier: GPL-2.0
26c39e015SJacob Keller
36c39e015SJacob Keller=====================
46c39e015SJacob Kellermlxsw devlink support
56c39e015SJacob Keller=====================
66c39e015SJacob Keller
76c39e015SJacob KellerThis document describes the devlink features implemented by the ``mlxsw``
86c39e015SJacob Kellerdevice driver.
96c39e015SJacob Keller
106c39e015SJacob KellerParameters
116c39e015SJacob Keller==========
126c39e015SJacob Keller
136c39e015SJacob Keller.. list-table:: Generic parameters implemented
146c39e015SJacob Keller
156c39e015SJacob Keller   * - Name
166c39e015SJacob Keller     - Mode
176c39e015SJacob Keller   * - ``fw_load_policy``
186c39e015SJacob Keller     - driverinit
196c39e015SJacob Keller
206c39e015SJacob KellerThe ``mlxsw`` driver also implements the following driver-specific
216c39e015SJacob Kellerparameters.
226c39e015SJacob Keller
236c39e015SJacob Keller.. list-table:: Driver-specific parameters implemented
246c39e015SJacob Keller   :widths: 5 5 5 85
256c39e015SJacob Keller
266c39e015SJacob Keller   * - Name
276c39e015SJacob Keller     - Type
286c39e015SJacob Keller     - Mode
296c39e015SJacob Keller     - Description
306c39e015SJacob Keller   * - ``acl_region_rehash_interval``
316c39e015SJacob Keller     - u32
326c39e015SJacob Keller     - runtime
336c39e015SJacob Keller     - Sets an interval for periodic ACL region rehashes. The value is
346c39e015SJacob Keller       specified in milliseconds, with a minimum of ``3000``. The value of
356c39e015SJacob Keller       ``0`` disables periodic work entirely. The first rehash will be run
366c39e015SJacob Keller       immediately after the value is set.
376c39e015SJacob Keller
386c39e015SJacob KellerThe ``mlxsw`` driver supports reloading via ``DEVLINK_CMD_RELOAD``
39d4255d75SJacob Keller
40d4255d75SJacob KellerInfo versions
41d4255d75SJacob Keller=============
42d4255d75SJacob Keller
431d0ee02bSIdo SchimmelThe ``mlxsw`` driver reports the following versions
44d4255d75SJacob Keller
45d4255d75SJacob Keller.. list-table:: devlink info versions implemented
46d4255d75SJacob Keller   :widths: 5 5 90
47d4255d75SJacob Keller
48d4255d75SJacob Keller   * - Name
49d4255d75SJacob Keller     - Type
50d4255d75SJacob Keller     - Description
51d4255d75SJacob Keller   * - ``hw.revision``
52d4255d75SJacob Keller     - fixed
53d4255d75SJacob Keller     - The hardware revision for this board
54d4255d75SJacob Keller   * - ``fw.psid``
55d4255d75SJacob Keller     - fixed
56d4255d75SJacob Keller     - Firmware PSID
57d4255d75SJacob Keller   * - ``fw.version``
58d4255d75SJacob Keller     - running
59d4255d75SJacob Keller     - Three digit firmware version
60