Documentation/networking/devlink/devlink-params.rst
.. SPDX-License-Identifier: GPL-2.0
devlink provides capability for a driver to expose device parameters for low
level device functionality. Since devlink can operate at the device-wide
level, it can be used to provide configuration that may affect multiple
ports on a single device.
This document describes a number of generic parameters that are supported across multiple drivers. Each driver is also free to add their own parameters. Each driver must document the specific parameters they support, whether generic or not.
Parameters may be set in different configuration modes.
.. list-table:: Possible configuration modes :widths: 5 90
runtimedriverinitdevlink reload command.permanentIn order for driverinit parameters to take effect, the driver must
support reloading via the devlink-reload command. This command will
request a reload of the device driver.
Drivers may optionally export default values for parameters of cmode
runtime and permanent. For driverinit parameters, the last
value set by the driver will be used as the default value. Drivers can
also support resetting params with cmode runtime and permanent
to their default values. Resetting driverinit params is supported
by devlink core without additional driver support needed.
.. _devlink_params_generic:
The following is a list of generic configuration parameters that drivers may add. Use of generic parameters is preferred over each driver creating their own name.
.. list-table:: List of generic parameters :widths: 5 5 90
enable_sriovignore_arimsix_vec_per_pf_maxmsix_vec_per_pf_minfw_load_policyDEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER (0)
Load firmware version preferred by the driver.DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH (1)
Load firmware currently stored in flash.DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK (2)
Load firmware currently available on host's disk.reset_dev_on_drv_probeDEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_UNKNOWN (0)
Unknown or invalid value.DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_ALWAYS (1)
Always reset device on driver probe.DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_NEVER (2)
Never reset device on driver probe.DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_DISK (3)
Reset the device only if firmware can be found in the filesystem.enable_roceenable_ethenable_rdmaenable_vnetenable_iwarpinternal_err_resetmax_macsregion_snapshot_enabledevlink-region snapshots.enable_remote_dev_resetio_eq_sizeevent_eq_sizeenable_phcclock_idtotal_vfsnum_doorbellsmax_mac_per_vf