]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/spapr.c
hw/ppc/spapr: Allow "spapr-vlan" as NIC model name beside "ibmveth"
authorThomas Huth <thuth@redhat.com>
Fri, 9 Mar 2018 07:01:38 +0000 (08:01 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sun, 18 Mar 2018 07:27:23 +0000 (18:27 +1100)
commit3c3a4e7afa742320412063f324b417f653e549cd
tree1c587ba6d23027f63ad346a9c4ea461705d02abe
parentb4a5f24a172a1c35ef369a56e585e851bdb68c90
hw/ppc/spapr: Allow "spapr-vlan" as NIC model name beside "ibmveth"

With the new "--nic" command line parameter option, the "old" way of
specifying a NIC model via the nd_table[] is becoming more prominent
again. But for the pseries "spapr-vlan" device, there is a confusing
discrepancy between the model name that is used for "--device" (i.e.
"spapr-vlan") and the model name that has to be used for "--net nic"
or the new "--nic" parameter (i.e. "ibmveth"). Since "spapr-vlan" is
the "real" name of the device, let's allow "spapr-vlan" to be used
as model name for the nd_table[] entries, too.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c