# man > devlink-dev(8)

---
type: CommandReference
command: devlink-dev
mode: man
section: 8
source: man-pages
---

## Quick Reference

- `devlink dev show` — show all devlink devices
- `devlink dev show pci/0000:01:00.0` — show specific device
- `devlink dev eswitch set pci/0000:01:00.0 mode switchdev` — set eswitch mode to switchdev
- `devlink dev param show pci/0000:01:00.0 name max_macs` — show parameter attributes
- `devlink dev param set pci/0000:01:00.0 name internal_error_reset value true cmode runtime` — set parameter with runtime config mode
- `devlink dev reload pci/0000:01:00.0` — hot reload driver
- `devlink dev flash pci/0000:01:00.0 file firmware.bin` — flash device firmware

## Name

devlink-dev - devlink device configuration

## Synopsis

shell
devlink [ OPTIONS ] dev { COMMAND | help }
OPTIONS := { -V[ersion] | -n[o-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 ]
## Options

### devlink dev show

- `DEV` — specifies the devlink device to show (format: `BUS_NAME/BUS_ADDRESS`). If omitted, all devices are listed.

### devlink dev eswitch show / set

- `mode { legacy | switchdev }` — set eswitch mode. `legacy` = Legacy SRIOV, `switchdev` = SRIOV switchdev offloads.
- `inline-mode { none | link | network | transport }` — set inline mode for VF TX descriptors (some HW requires packet headers on descriptor). `none`, `link` (L2), `network` (L3), `transport` (L4).
- `encap-mode { none | basic }` — set eswitch encapsulation support. `none` = disable, `basic` = enable.

### devlink dev param set

- `name PARAMETER` — specify parameter name to set.
- `value VALUE` — new value.
- `cmode { runtime | driverinit | permanent }` — configuration mode. `runtime` = apply immediately, no reset needed. `driverinit` = apply during driver initialization, requires `devlink reload`. `permanent` = write to non-volatile memory, requires hard reset.

### devlink dev param show

- `name PARAMETER` — specify parameter name to show. If omitted, all parameters are listed.

### devlink dev reload

- `DEV` — device to reload.
- `netns { PID | NAME | ID }` — network namespace to reload into.
- `action { driver_reinit | fw_activate }` — reload action. Default `driver_reinit`. `driver_reinit` = driver re-initialization, applies param/resource values. `fw_activate` = activate pending firmware, may involve reset. The actual actions performed are returned.
- `limit no_reset` — no reset, no downtime, no link flap, no configuration loss allowed.

### devlink dev info

- `DEV` — device to show info (versions, firmware running/stored). If omitted, all devices.

### devlink dev flash

- `DEV` — device to write to.
- `file PATH` — path relative to kernel firmware search directories (e.g. `/lib/firmware`).
- `component NAME` — optional, specify which firmware image to write (matches component names from `devlink dev info`).

## Examples

shell
devlink dev show
Shows the state of all devlink devices on the system.

shell
devlink dev show pci/0000:01:00.0
Shows the state of specified devlink device.

shell
devlink dev eswitch show pci/0000:01:00.0
Shows the eswitch mode of specified devlink device.

shell
devlink dev eswitch set pci/0000:01:00.0 mode switchdev
Sets the eswitch mode to switchdev.

shell
devlink dev param show pci/0000:01:00.0 name max_macs
Shows the parameter `max_macs` attributes.

shell
devlink dev param set pci/0000:01:00.0 name internal_error_reset value true cmode runtime
Sets the parameter `internal_error_reset` to true with runtime config mode.

shell
devlink dev reload pci/0000:01:00.0
Performs hot reload of the driver.

shell
devlink dev flash pci/0000:01:00.0 file firmware.bin
Flashes the device with firmware file. If supported, status updates are shown (e.g., "Preparing to flash", "Flashing 100%", "Flashing done").

## See Also

[devlink(8)](http://localhost/phpMan.php/man/devlink/8/markdown), [devlink-port(8)](http://localhost/phpMan.php/man/devlink-port/8/markdown), [devlink-sb(8)](http://localhost/phpMan.php/man/devlink-sb/8/markdown), [devlink-monitor(8)](http://localhost/phpMan.php/man/devlink-monitor/8/markdown)