devlink-dev — devlink device configuration

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 { disable | enable } ]

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

devlink dev info [ DEV ]

devlink dev flash DEV file PATH [ target ID ]

Description

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@mellanox.com>

Referenced By

devlink(8), devlink-health(8), devlink-monitor(8), devlink-port(8), devlink-region(8), devlink-sb(8).

14 Mar 2016 iproute2 Linux