Jiri Pirko | a3c4b48 | 2016-03-22 10:02:21 +0100 | [diff] [blame] | 1 | .TH DEVLINK\-DEV 8 "14 Mar 2016" "iproute2" "Linux" |
| 2 | .SH NAME |
| 3 | devlink-dev \- devlink device configuration |
| 4 | .SH SYNOPSIS |
| 5 | .sp |
| 6 | .ad l |
| 7 | .in +8 |
| 8 | .ti -8 |
| 9 | .B devlink |
| 10 | .RI "[ " OPTIONS " ]" |
| 11 | .B dev |
| 12 | .RI " { " COMMAND " | " |
| 13 | .BR help " }" |
| 14 | .sp |
| 15 | |
| 16 | .ti -8 |
| 17 | .IR OPTIONS " := { " |
| 18 | \fB\-V\fR[\fIersion\fR] | |
Jiri Pirko | 43f35be | 2016-04-15 09:51:47 +0200 | [diff] [blame] | 19 | \fB\-n\fR[\fIno-nice-names\fR] } |
Jiri Pirko | a3c4b48 | 2016-03-22 10:02:21 +0100 | [diff] [blame] | 20 | |
| 21 | .ti -8 |
| 22 | .B devlink dev show |
| 23 | .RI "[ " DEV " ]" |
| 24 | |
| 25 | .ti -8 |
| 26 | .B devlink dev help |
| 27 | |
Or Gerlitz | f57856f | 2016-08-28 16:35:21 +0300 | [diff] [blame] | 28 | .ti -8 |
| 29 | .BR "devlink dev eswitch set" |
| 30 | .IR DEV |
| 31 | .RI "[ " |
| 32 | .BR mode " { " legacy " | " switchdev " } " |
| 33 | .RI "]" |
Roi Dayan | 6566ca8 | 2016-11-27 13:21:03 +0200 | [diff] [blame^] | 34 | .RI "[ " |
| 35 | .BR inline-mode " { " none " | " link " | " network " | " transport " } " |
| 36 | .RI "]" |
Or Gerlitz | f57856f | 2016-08-28 16:35:21 +0300 | [diff] [blame] | 37 | |
| 38 | .ti -8 |
| 39 | .BR "devlink dev eswitch show" |
| 40 | .IR DEV |
| 41 | |
Jiri Pirko | a3c4b48 | 2016-03-22 10:02:21 +0100 | [diff] [blame] | 42 | .SH "DESCRIPTION" |
| 43 | .SS devlink dev show - display devlink device attributes |
| 44 | |
| 45 | .PP |
| 46 | .I "DEV" |
| 47 | - specifies the devlink device to show. |
| 48 | If this argument is omitted all devices are listed. |
| 49 | |
| 50 | .in +4 |
| 51 | Format is: |
| 52 | .in +2 |
| 53 | BUS_NAME/BUS_ADDRESS |
| 54 | |
Or Gerlitz | f57856f | 2016-08-28 16:35:21 +0300 | [diff] [blame] | 55 | .SS devlink dev eswitch show - display devlink device eswitch attributes |
| 56 | .SS devlink dev eswitch set - sets devlink device eswitch attributes |
| 57 | |
| 58 | .TP |
| 59 | .BR mode " { " legacy " | " switchdev " } " |
Roi Dayan | a93b6bb | 2016-11-27 13:21:02 +0200 | [diff] [blame] | 60 | Set eswitch mode |
Or Gerlitz | f57856f | 2016-08-28 16:35:21 +0300 | [diff] [blame] | 61 | |
| 62 | .I legacy |
| 63 | - Legacy SRIOV |
| 64 | |
| 65 | .I switchdev |
| 66 | - SRIOV switchdev offloads |
| 67 | |
Roi Dayan | 6566ca8 | 2016-11-27 13:21:03 +0200 | [diff] [blame^] | 68 | .TP |
| 69 | .BR inline-mode " { " none " | " link " | " network " | " transport " } " |
| 70 | 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. |
| 71 | |
| 72 | .I none |
| 73 | - None |
| 74 | |
| 75 | .I link |
| 76 | - L2 mode |
| 77 | |
| 78 | .I network |
| 79 | - L3 mode |
| 80 | |
| 81 | .I transport |
| 82 | - L4 mode |
| 83 | |
Jiri Pirko | a3c4b48 | 2016-03-22 10:02:21 +0100 | [diff] [blame] | 84 | .SH "EXAMPLES" |
| 85 | .PP |
| 86 | devlink dev show |
| 87 | .RS 4 |
| 88 | Shows the state of all devlink devices on the system. |
| 89 | .RE |
| 90 | .PP |
| 91 | devlink dev show pci/0000:01:00.0 |
| 92 | .RS 4 |
| 93 | Shows the state of specified devlink device. |
Or Gerlitz | f57856f | 2016-08-28 16:35:21 +0300 | [diff] [blame] | 94 | .RE |
| 95 | .PP |
| 96 | devlink dev eswitch show pci/0000:01:00.0 |
| 97 | .RS 4 |
| 98 | Shows the eswitch mode of specified devlink device. |
| 99 | .RE |
| 100 | .PP |
| 101 | devlink dev eswitch set pci/0000:01:00.0 mode switchdev |
| 102 | .RS 4 |
| 103 | Sets the eswitch mode of specified devlink device to switchdev. |
Jiri Pirko | a3c4b48 | 2016-03-22 10:02:21 +0100 | [diff] [blame] | 104 | |
| 105 | .SH SEE ALSO |
| 106 | .BR devlink (8), |
| 107 | .BR devlink-port (8), |
Jiri Pirko | 4bf138d | 2016-04-15 09:51:53 +0200 | [diff] [blame] | 108 | .BR devlink-sb (8), |
Jiri Pirko | a3c4b48 | 2016-03-22 10:02:21 +0100 | [diff] [blame] | 109 | .BR devlink-monitor (8), |
| 110 | .br |
| 111 | |
| 112 | .SH AUTHOR |
| 113 | Jiri Pirko <jiri@mellanox.com> |