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 reload DEV
25
26

DESCRIPTION

28   devlink dev show - display devlink device attributes
29       DEV - specifies the devlink device to show.  If this argument is omit‐
30       ted all devices are listed.
31
32           Format is:
33             BUS_NAME/BUS_ADDRESS
34
35
36   devlink dev eswitch show - display devlink device eswitch attributes
37   devlink dev eswitch set - sets devlink device eswitch attributes
38       mode { legacy | switchdev }
39              Set eswitch mode
40
41              legacy - Legacy SRIOV
42
43              switchdev - SRIOV switchdev offloads
44
45
46       inline-mode { none | link | network | transport }
47              Some HWs need the VF driver to put part of the packet headers on
48              the TX descriptor so the e-switch can do proper matching and
49              steering.
50
51              none - None
52
53              link - L2 mode
54
55              network - L3 mode
56
57              transport - L4 mode
58
59
60       encap { disable | enable }
61              Set eswitch encapsulation support
62
63              disable - Disable encapsulation support
64
65              enable - Enable encapsulation support
66
67
68   devlink dev reload - perform hot reload of the driver.
69       DEV - Specifies the devlink device to reload.
70
71

EXAMPLES

73       devlink dev show
74           Shows the state of all devlink devices on the system.
75
76       devlink dev show pci/0000:01:00.0
77           Shows the state of specified devlink device.
78
79       devlink dev eswitch show pci/0000:01:00.0
80           Shows the eswitch mode of specified devlink device.
81
82       devlink dev eswitch set pci/0000:01:00.0 mode switchdev
83           Sets the eswitch mode of specified devlink device to switchdev.
84
85       devlink dev reload pci/0000:01:00.0
86           Performs hot reload of specified devlink device.
87
88

SEE ALSO

90       devlink(8), devlink-port(8), devlink-sb(8), devlink-monitor(8),
91
92

AUTHOR

94       Jiri Pirko <jiri@mellanox.com>
95
96
97
98iproute2                          14 Mar 2016                   DEVLINK-DEV(8)
Impressum