Scroll to navigation

DEVLINK-DEV(8) Linux DEVLINK-DEV(8)

NAME

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

DESCRIPTION

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


Format is:
BUS_NAME/BUS_ADDRESS

Set eswitch mode

legacy - Legacy SRIOV

switchdev - SRIOV switchdev offloads

Some HWs need the VF driver to put part of the packet headers on the TX descriptor so the e-switch can do proper matching and steering.

none - None

link - L2 mode

network - L3 mode

transport - L4 mode

Set eswitch encapsulation support

disable - Disable encapsulation support

enable - Enable encapsulation support

Specify parameter name to set.

New value to set.

Configuration mode in which the new value is set.

runtime - Set new value while driver is running. This configuration mode doesn't require any reset to apply the new value.

driverinit - Set new value which will be applied during driver initialization. This configuration mode requires restart driver by devlink reload command to apply the new value.

permanent - New value is written to device's non-volatile memory. This configuration mode requires hard reset to apply the new value.

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

DEV - Specifies the devlink device to reload.

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.

SEE ALSO

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

AUTHOR

Jiri Pirko <jiri@mellanox.com>

14 Mar 2016 iproute2