# mlxsw devlink support

_Peios Kernel / Internals / Networking / devlink_

> This document describes the devlink features implemented by the mlxsw device driver.

<a id="rst-mlxsw-devlink-support"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

This document describes the devlink features implemented by the `mlxsw` device driver.

<a id="rst-parameters"></a>

## Parameters


<table>
<caption>Generic parameters implemented</caption>
<tbody>
<tr>
<td>


Name

</td>
<td>


Mode

</td>
</tr>
<tr>
<td>


`fw_load_policy`

</td>
<td>


driverinit

</td>
</tr>
</tbody>
</table>

The `mlxsw` driver also implements the following driver-specific parameters.


<table>
<caption>Driver-specific parameters implemented</caption>
<tbody>
<tr>
<td>


Name

</td>
<td>


Type

</td>
<td>


Mode

</td>
<td>


Description

</td>
</tr>
<tr>
<td>


`acl_region_rehash_interval`

</td>
<td>


u32

</td>
<td>


runtime

</td>
<td>


Sets an interval for periodic ACL region rehashes. The value is specified in milliseconds, with a minimum of `3000`. The value of `0` disables periodic work entirely. The first rehash will be run immediately after the value is set.

</td>
</tr>
</tbody>
</table>

The `mlxsw` driver supports reloading via `DEVLINK_CMD_RELOAD`

<a id="rst-info-versions"></a>

## Info versions

The `mlxsw` driver reports the following versions


<table>
<caption>devlink info versions implemented</caption>
<tbody>
<tr>
<td>


Name

</td>
<td>


Type

</td>
<td>


Description

</td>
</tr>
<tr>
<td>


`hw.revision`

</td>
<td>


fixed

</td>
<td>


The hardware revision for this board

</td>
</tr>
<tr>
<td>


`fw.psid`

</td>
<td>


fixed

</td>
<td>


Firmware PSID

</td>
</tr>
<tr>
<td>


`fw.version`

</td>
<td>


running

</td>
<td>


Three digit firmware version

</td>
</tr>
</tbody>
</table>

<a id="rst-line-card-auxiliary-device-info-versions"></a>

## Line card auxiliary device info versions

The `mlxsw` driver reports the following versions for line card auxiliary device


<table>
<caption>devlink info versions implemented</caption>
<tbody>
<tr>
<td>


Name

</td>
<td>


Type

</td>
<td>


Description

</td>
</tr>
<tr>
<td>


`hw.revision`

</td>
<td>


fixed

</td>
<td>


The hardware revision for this line card

</td>
</tr>
<tr>
<td>


`ini.version`

</td>
<td>


running

</td>
<td>


Version of line card INI loaded

</td>
</tr>
<tr>
<td>


`fw.psid`

</td>
<td>


fixed

</td>
<td>


Line card device PSID

</td>
</tr>
<tr>
<td>


`fw.version`

</td>
<td>


running

</td>
<td>


Three digit firmware version of line card device

</td>
</tr>
</tbody>
</table>

<a id="rst-driver-specific-traps"></a>

## Driver-specific Traps


<table>
<caption>List of Driver-specific Traps Registered by mlxsw</caption>
<tbody>
<tr>
<td>


Name

</td>
<td>


Type

</td>
<td>


Description

</td>
</tr>
<tr>
<td>


`irif_disabled`

</td>
<td>


`drop`

</td>
<td>


Traps packets that the device decided to drop because they need to be routed from a disabled router interface (RIF). This can happen during RIF dismantle, when the RIF is first disabled before being removed completely

</td>
</tr>
<tr>
<td>


`erif_disabled`

</td>
<td>


`drop`

</td>
<td>


Traps packets that the device decided to drop because they need to be routed through a disabled router interface (RIF). This can happen during RIF dismantle, when the RIF is first disabled before being removed completely

</td>
</tr>
</tbody>
</table>
