man > devlink-dev(8)

📘 NAME

devlink-dev - devlink device configuration

🚀 Quick Reference

Use CaseCommandDescription
📋 Show all devicesdevlink dev show📄 Display state of all devlink devices
🔍 Show specific devicedevlink dev show DEV📄 Display state of a specific device
🔀 Show eswitch modedevlink dev eswitch show DEV📄 Show eswitch attributes
âš™ī¸ Set eswitch modedevlink dev eswitch set DEV mode {legacy|switchdev}🔄 Set eswitch mode (legacy or switchdev)
🔧 Show parameterdevlink dev param show DEV name PARAM📄 Display supported configuration parameters
🔧 Set parameterdevlink dev param set DEV name PARAM value VALUE cmode {runtime|driverinit|permanent}đŸ› ī¸ Set a configuration parameter
🔄 Reload devicedevlink dev reload DEV [netns ...] [action ...] [limit no_reset]â™ģī¸ Perform hot reload of driver
â„šī¸ Show device infodevlink dev info [DEV]📃 Display hardware and firmware versions
💾 Flash firmwaredevlink dev flash DEV file PATH [component NAME]📲 Write firmware image to non-volatile memory

📋 SYNOPSIS

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 ]

📖 DESCRIPTION

🔍 devlink dev show - display devlink device attributes

DEV - specifies the devlink device to show. If this argument is omitted all devices are listed.

Format is: BUS_NAME/BUS_ADDRESS

🔀 devlink dev eswitch show - display devlink device eswitch attributes

âš™ī¸ devlink dev eswitch set - sets devlink device eswitch attributes

đŸ› ī¸ devlink dev param set - set new value to devlink device configuration parameter

🔧 devlink dev param show - display devlink device supported configuration parameters attributes

name PARAMETER — Specify parameter name to show. If this argument is omitted all parameters supported by devlink devices are listed.

â™ģī¸ devlink dev reload - perform hot reload of the driver.

â„šī¸ devlink dev info - display device information.

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.

💾 devlink dev flash - write device's non-volatile memory.

💡 EXAMPLES

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

📚 SEE ALSO

devlink(8), devlink-port(8), devlink-sb(8), devlink-monitor(8)

âœī¸ AUTHOR

Jiri Pirko <jiri AT mellanox.com>

iproute2 14 Mar 2016 DEVLINK-DEV(8)

devlink-dev(8)
📘 NAME 🚀 Quick Reference 📋 SYNOPSIS 📖 DESCRIPTION
🔍 devlink dev show - display devlink device attributes 🔀 devlink dev eswitch show - display devlink device eswitch attributes âš™ī¸ devlink dev eswitch set - sets devlink device eswitch attributes đŸ› ī¸ devlink dev param set - set new value to devlink device configuration parameter 🔧 devlink dev param show - display devlink device supported configuration parameters attributes â™ģī¸ devlink dev reload - perform hot reload of the driver. â„šī¸ devlink dev info - display device information. 💾 devlink dev flash - write device's non-volatile memory.
💡 EXAMPLES 📚 SEE ALSO âœī¸ AUTHOR

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)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^