106 lines · plain
1.. SPDX-License-Identifier: GPL-2.02 3=====================4mlxsw devlink support5=====================6 7This document describes the devlink features implemented by the ``mlxsw``8device driver.9 10Parameters11==========12 13.. list-table:: Generic parameters implemented14 15 * - Name16 - Mode17 * - ``fw_load_policy``18 - driverinit19 20The ``mlxsw`` driver also implements the following driver-specific21parameters.22 23.. list-table:: Driver-specific parameters implemented24 :widths: 5 5 5 8525 26 * - Name27 - Type28 - Mode29 - Description30 * - ``acl_region_rehash_interval``31 - u3232 - runtime33 - Sets an interval for periodic ACL region rehashes. The value is34 specified in milliseconds, with a minimum of ``3000``. The value of35 ``0`` disables periodic work entirely. The first rehash will be run36 immediately after the value is set.37 38The ``mlxsw`` driver supports reloading via ``DEVLINK_CMD_RELOAD``39 40Info versions41=============42 43The ``mlxsw`` driver reports the following versions44 45.. list-table:: devlink info versions implemented46 :widths: 5 5 9047 48 * - Name49 - Type50 - Description51 * - ``hw.revision``52 - fixed53 - The hardware revision for this board54 * - ``fw.psid``55 - fixed56 - Firmware PSID57 * - ``fw.version``58 - running59 - Three digit firmware version60 61Line card auxiliary device info versions62========================================63 64The ``mlxsw`` driver reports the following versions for line card auxiliary device65 66.. list-table:: devlink info versions implemented67 :widths: 5 5 9068 69 * - Name70 - Type71 - Description72 * - ``hw.revision``73 - fixed74 - The hardware revision for this line card75 * - ``ini.version``76 - running77 - Version of line card INI loaded78 * - ``fw.psid``79 - fixed80 - Line card device PSID81 * - ``fw.version``82 - running83 - Three digit firmware version of line card device84 85Driver-specific Traps86=====================87 88.. list-table:: List of Driver-specific Traps Registered by ``mlxsw``89 :widths: 5 5 9090 91 * - Name92 - Type93 - Description94 * - ``irif_disabled``95 - ``drop``96 - Traps packets that the device decided to drop because they need to be97 routed from a disabled router interface (RIF). This can happen during98 RIF dismantle, when the RIF is first disabled before being removed99 completely100 * - ``erif_disabled``101 - ``drop``102 - Traps packets that the device decided to drop because they need to be103 routed through a disabled router interface (RIF). This can happen during104 RIF dismantle, when the RIF is first disabled before being removed105 completely106