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

DESCRIPTION

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

EXAMPLES

67       devlink dev show
68           Shows the state of all devlink devices on the system.
69
70       devlink dev show pci/0000:01:00.0
71           Shows the state of specified devlink device.
72
73       devlink dev eswitch show pci/0000:01:00.0
74           Shows the eswitch mode of specified devlink device.
75
76       devlink dev eswitch set pci/0000:01:00.0 mode switchdev
77           Sets the eswitch mode of specified devlink device to switchdev.
78
79

SEE ALSO

81       devlink(8), devlink-port(8), devlink-sb(8), devlink-monitor(8),
82
83

AUTHOR

85       Jiri Pirko <jiri@mellanox.com>
86
87
88
89iproute2                          14 Mar 2016                   DEVLINK-DEV(8)
Impressum