xref: /OK3568_Linux_fs/kernel/Documentation/networking/devlink/mlx5.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun.. SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun
3*4882a593Smuzhiyun====================
4*4882a593Smuzhiyunmlx5 devlink support
5*4882a593Smuzhiyun====================
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunThis document describes the devlink features implemented by the ``mlx5``
8*4882a593Smuzhiyundevice driver.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunParameters
11*4882a593Smuzhiyun==========
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun.. list-table:: Generic parameters implemented
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun   * - Name
16*4882a593Smuzhiyun     - Mode
17*4882a593Smuzhiyun   * - ``enable_roce``
18*4882a593Smuzhiyun     - driverinit
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunThe ``mlx5`` driver also implements the following driver-specific
21*4882a593Smuzhiyunparameters.
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun.. list-table:: Driver-specific parameters implemented
24*4882a593Smuzhiyun   :widths: 5 5 5 85
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun   * - Name
27*4882a593Smuzhiyun     - Type
28*4882a593Smuzhiyun     - Mode
29*4882a593Smuzhiyun     - Description
30*4882a593Smuzhiyun   * - ``flow_steering_mode``
31*4882a593Smuzhiyun     - string
32*4882a593Smuzhiyun     - runtime
33*4882a593Smuzhiyun     - Controls the flow steering mode of the driver
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun       * ``dmfs`` Device managed flow steering. In DMFS mode, the HW
36*4882a593Smuzhiyun         steering entities are created and managed through firmware.
37*4882a593Smuzhiyun       * ``smfs`` Software managed flow steering. In SMFS mode, the HW
38*4882a593Smuzhiyun         steering entities are created and manage through the driver without
39*4882a593Smuzhiyun         firmware intervention.
40*4882a593Smuzhiyun   * - ``fdb_large_groups``
41*4882a593Smuzhiyun     - u32
42*4882a593Smuzhiyun     - driverinit
43*4882a593Smuzhiyun     - Control the number of large groups (size > 1) in the FDB table.
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun       * The default value is 15, and the range is between 1 and 1024.
46*4882a593Smuzhiyun
47*4882a593SmuzhiyunThe ``mlx5`` driver supports reloading via ``DEVLINK_CMD_RELOAD``
48*4882a593Smuzhiyun
49*4882a593SmuzhiyunInfo versions
50*4882a593Smuzhiyun=============
51*4882a593Smuzhiyun
52*4882a593SmuzhiyunThe ``mlx5`` driver reports the following versions
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun.. list-table:: devlink info versions implemented
55*4882a593Smuzhiyun   :widths: 5 5 90
56*4882a593Smuzhiyun
57*4882a593Smuzhiyun   * - Name
58*4882a593Smuzhiyun     - Type
59*4882a593Smuzhiyun     - Description
60*4882a593Smuzhiyun   * - ``fw.psid``
61*4882a593Smuzhiyun     - fixed
62*4882a593Smuzhiyun     - Used to represent the board id of the device.
63*4882a593Smuzhiyun   * - ``fw.version``
64*4882a593Smuzhiyun     - stored, running
65*4882a593Smuzhiyun     - Three digit major.minor.subminor firmware version number.
66