Commit 9fe7f5d
committed
Clean up virtio-net TAP option handling
Remove the trailing space from the vnet help text, reject unsupported
virtio-net backends, and avoid repeated virtio-net options when only
one virtio-net device is supported.
At this stage only the TAP backend is accepted. The user-mode backend
will be enabled later when SLIRP support is added.
Also remove the unnecessary device index increment after adding the
virtio-net DTB node, since no later device uses the incremented value1 parent fc23a49 commit 9fe7f5d
3 files changed
Lines changed: 6 additions & 2 deletions
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
204 | 209 | | |
205 | 210 | | |
206 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
534 | | - | |
535 | 534 | | |
536 | 535 | | |
537 | 536 | | |
| |||
0 commit comments