1DEVLINK-DEV(8)                       Linux                      DEVLINK-DEV(8)
2
3
4

NAME

6       devlink-dev - devlink device configuration
7

SYNOPSIS

9       devlink [ OPTIONS ] dev  { COMMAND | help }
10
11
12       OPTIONS := { -V[ersion] | -n[no-nice-names] }
13
14       devlink dev show [ DEV ]
15
16       devlink dev help
17
18       devlink dev eswitch set DEV [ mode { legacy | switchdev } ] [ inline-
19               mode { none | link | network | transport } ] [ encap { disable
20               | enable } ]
21
22       devlink dev eswitch show DEV
23
24       devlink dev param set DEV name PARAMETER value VALUE cmode { runtime |
25               driverinit | permanent }
26
27       devlink dev param show [ DEV name PARAMETER ]
28
29       devlink dev reload DEV
30
31

DESCRIPTION

33   devlink dev show - display devlink device attributes
34       DEV - specifies the devlink device to show.  If this argument is omit‐
35       ted all devices are listed.
36
37           Format is:
38             BUS_NAME/BUS_ADDRESS
39
40
41   devlink dev eswitch show - display devlink device eswitch attributes
42   devlink dev eswitch set - sets devlink device eswitch attributes
43       mode { legacy | switchdev }
44              Set eswitch mode
45
46              legacy - Legacy SRIOV
47
48              switchdev - SRIOV switchdev offloads
49
50
51       inline-mode { none | link | network | transport }
52              Some HWs need the VF driver to put part of the packet headers on
53              the TX descriptor so the e-switch can do proper matching and
54              steering.
55
56              none - None
57
58              link - L2 mode
59
60              network - L3 mode
61
62              transport - L4 mode
63
64
65       encap { disable | enable }
66              Set eswitch encapsulation support
67
68              disable - Disable encapsulation support
69
70              enable - Enable encapsulation support
71
72
73   devlink dev param set - set new value to devlink device configuration
74       parameter
75       name PARAMETER
76              Specify parameter name to set.
77
78
79       value VALUE
80              New value to set.
81
82
83       cmode { runtime | driverinit | permanent }
84              Configuration mode in which the new value is set.
85
86              runtime - Set new value while driver is running. This configura‐
87              tion mode doesn't require any reset to apply the new value.
88
89              driverinit - Set new value which will be applied during driver
90              initialization. This configuration mode requires restart driver
91              by devlink reload command to apply the new value.
92
93              permanent - New value is written to device's non-volatile mem‐
94              ory. This configuration mode requires hard reset to apply the
95              new value.
96
97
98   devlink dev param show - display devlink device supported configuration
99       parameters attributes
100       name PARAMETER Specify parameter name to show.  If this argument is
101       omitted all parameters supported by devlink devices are listed.
102
103
104   devlink dev reload - perform hot reload of the driver.
105       DEV - Specifies the devlink device to reload.
106
107

EXAMPLES

109       devlink dev show
110           Shows the state of all devlink devices on the system.
111
112       devlink dev show pci/0000:01:00.0
113           Shows the state of specified devlink device.
114
115       devlink dev eswitch show pci/0000:01:00.0
116           Shows the eswitch mode of specified devlink device.
117
118       devlink dev eswitch set pci/0000:01:00.0 mode switchdev
119           Sets the eswitch mode of specified devlink device to switchdev.
120
121       devlink dev param show pci/0000:01:00.0 name max_macs
122           Shows the parameter max_macs attributes.
123
124       devlink dev param set pci/0000:01:00.0 name internal_error_reset value
125       true cmode runtime
126           Sets the parameter internal_error_reset of specified devlink device
127           to true.
128
129       devlink dev reload pci/0000:01:00.0
130           Performs hot reload of specified devlink device.
131
132

SEE ALSO

134       devlink(8), devlink-port(8), devlink-sb(8), devlink-monitor(8),
135
136

AUTHOR

138       Jiri Pirko <jiri@mellanox.com>
139
140
141
142iproute2                          14 Mar 2016                   DEVLINK-DEV(8)
Impressum