[PATCH 12/14] kvm tools: Use enum for NET_MODE_{USER, TAP}

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Asias He <asias.hejun@xxxxxxxxx>

Signed-off-by: Asias He <asias.hejun@xxxxxxxxx>
---
 tools/kvm/include/kvm/virtio-net.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/kvm/include/kvm/virtio-net.h b/tools/kvm/include/kvm/virtio-net.h
index ebcd77f..737676e 100644
--- a/tools/kvm/include/kvm/virtio-net.h
+++ b/tools/kvm/include/kvm/virtio-net.h
@@ -18,7 +18,9 @@ struct virtio_net_params {
 
 void virtio_net__init(const struct virtio_net_params *params);
 
-#define NET_MODE_USER	0
-#define NET_MODE_TAP	1
+enum {
+	NET_MODE_USER,
+	NET_MODE_TAP
+};
 
 #endif /* KVM__VIRTIO_NET_H */
-- 
1.7.7.6

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux