devlink-dev - devlink device configuration
| Use Case | Command | Description |
|---|---|---|
| đ Show all devices | devlink dev show | đ Display state of all devlink devices |
| đ Show specific device | devlink dev show DEV | đ Display state of a specific device |
| đ Show eswitch mode | devlink dev eswitch show DEV | đ Show eswitch attributes |
| âī¸ Set eswitch mode | devlink dev eswitch set DEV mode {legacy|switchdev} | đ Set eswitch mode (legacy or switchdev) |
| đ§ Show parameter | devlink dev param show DEV name PARAM | đ Display supported configuration parameters |
| đ§ Set parameter | devlink dev param set DEV name PARAM value VALUE cmode {runtime|driverinit|permanent} | đ ī¸ Set a configuration parameter |
| đ Reload device | devlink dev reload DEV [netns ...] [action ...] [limit no_reset] | âģī¸ Perform hot reload of driver |
| âšī¸ Show device info | devlink dev info [DEV] | đ Display hardware and firmware versions |
| đž Flash firmware | devlink dev flash DEV file PATH [component NAME] | đ˛ Write firmware image to non-volatile memory |
devlink [ OPTIONS ] dev { COMMAND | help }
OPTIONS := { -V[ersion] | -n[no-nice-names] }
devlink dev show [ DEV ]
devlink dev help
devlink dev eswitch set DEV [ mode { legacy | switchdev } ] [ inline-mode { none | link |
network | transport } ] [ encap-mode { none | basic } ]
devlink dev eswitch show DEV
devlink dev param set DEV name PARAMETER value VALUE cmode { runtime | driverinit | permanent
}
devlink dev param show [ DEV name PARAMETER ]
devlink dev reload DEV [ netns { PID | NAME | ID } ] [ action { driver_reinit | fw_activate }
] [ limit no_reset ]
devlink dev info [ DEV ]
devlink dev flash DEV file PATH [ target ID ]
DEV - specifies the devlink device to show. If this argument is omitted all devices are listed.
Format is: BUS_NAME/BUS_ADDRESS
name PARAMETER â Specify parameter name to show. If this argument is omitted all parameters supported by devlink devices are listed.
Display device information provided by the driver. This command can be used to query versions of the hardware components or device components which can't be updated ( fixed ) as well as device firmware which can be updated. For firmware components running displays the versions of firmware currently loaded into the device, while stored reports the versions in device's flash. Running and stored versions may differ after flash has been updated, but before reboot.
DEV - specifies the devlink device to show. If this argument is omitted all devices are listed.
/lib/firmware.devlink dev show
Shows the state of all devlink devices on the system.
devlink dev show pci/0000:01:00.0
Shows the state of specified devlink device.
devlink dev eswitch show pci/0000:01:00.0
Shows the eswitch mode of specified devlink device.
devlink dev eswitch set pci/0000:01:00.0 mode switchdev
Sets the eswitch mode of specified devlink device to switchdev.
devlink dev param show pci/0000:01:00.0 name max_macs
Shows the parameter max_macs attributes.
devlink dev param set pci/0000:01:00.0 name internal_error_reset value true cmode runtime
Sets the parameter internal_error_reset of specified devlink device to true.
devlink dev reload pci/0000:01:00.0
Performs hot reload of specified devlink device.
devlink dev flash pci/0000:01:00.0 file firmware.bin
Flashes the specified devlink device with provided firmware file name. If the driver supports it, user gets updates about the flash status. For example:
Preparing to flash
Flashing 100%
Flashing done
devlink(8), devlink-port(8), devlink-sb(8), devlink-monitor(8)
Jiri Pirko <jiri AT mellanox.com>
iproute2 14 Mar 2016 DEVLINK-DEV(8)
Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-09 17:16 @216.73.216.249
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)