From: Asias He <[email protected]>
Signed-off-by: Asias He <[email protected]>
---
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html