diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2012-07-26 10:35:31 +0100 |
---|---|---|
committer | Roger Pau Monne <roger.pau@citrix.com> | 2012-07-26 10:35:31 +0100 |
commit | 2621f73e49c1b91c1064c8b7d5738fe3e36cdc56 (patch) | |
tree | 9640df2bf12946b09569f6d35d3de0f98d903226 /tools/libxl/libxl_dm.c | |
parent | 3218894319e722ac1593dda25a0e8962d6bc25da (diff) | |
download | xen-2621f73e49c1b91c1064c8b7d5738fe3e36cdc56.tar.gz xen-2621f73e49c1b91c1064c8b7d5738fe3e36cdc56.tar.bz2 xen-2621f73e49c1b91c1064c8b7d5738fe3e36cdc56.zip |
libxl: rename _IOEMU nic type to VIF_IOEMU
This change will avoid the confusion caused by the fact that IOEMU
means both PV and TAP network interfaces.
Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_dm.c')
-rw-r--r-- | tools/libxl/libxl_dm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index 0e2ec188a1..11cfc42708 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -215,12 +215,12 @@ static char ** libxl__build_device_model_args_old(libxl__gc *gc, free(s); for (i = 0; i < num_nics; i++) { - if (nics[i].nictype == LIBXL_NIC_TYPE_IOEMU) { + if (nics[i].nictype == LIBXL_NIC_TYPE_VIF_IOEMU) { char *smac = libxl__sprintf(gc, LIBXL_MAC_FMT, LIBXL_MAC_BYTES(nics[i].mac)); const char *ifname = libxl__device_nic_devname(gc, domid, nics[i].devid, - LIBXL_NIC_TYPE_IOEMU); + LIBXL_NIC_TYPE_VIF_IOEMU); flexarray_vappend(dm_args, "-net", GCSPRINTF( @@ -469,12 +469,12 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc, b_info->max_vcpus)); } for (i = 0; i < num_nics; i++) { - if (nics[i].nictype == LIBXL_NIC_TYPE_IOEMU) { + if (nics[i].nictype == LIBXL_NIC_TYPE_VIF_IOEMU) { char *smac = libxl__sprintf(gc, LIBXL_MAC_FMT, LIBXL_MAC_BYTES(nics[i].mac)); const char *ifname = libxl__device_nic_devname(gc, guest_domid, nics[i].devid, - LIBXL_NIC_TYPE_IOEMU); + LIBXL_NIC_TYPE_VIF_IOEMU); flexarray_append(dm_args, "-device"); flexarray_append(dm_args, libxl__sprintf(gc, "%s,id=nic%d,netdev=net%d,mac=%s", |