[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/5] net.h: Add description fields for qdev properit
From: |
Amit Shah |
Subject: |
[Qemu-devel] [PATCH 3/5] net.h: Add description fields for qdev properites |
Date: |
Mon, 31 May 2010 18:11:29 +0530 |
This results in an output like:
$ ./x86_64-softmmu/qemu-system-x86_64 -device virtio-net-pci,?
...
virtio-net-pci.mac=macaddr, The MAC address for the NIC.
virtio-net-pci.vlan=vlan, The VLAN to associate the NIC with.
virtio-net-pci.netdev=netdev, The peer net device to associate with this
virtual NIC.
Signed-off-by: Amit Shah <address@hidden>
---
net.h | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/net.h b/net.h
index 0e9cc5d..9ffd4d0 100644
--- a/net.h
+++ b/net.h
@@ -21,9 +21,12 @@ typedef struct NICConf {
} NICConf;
#define DEFINE_NIC_PROPERTIES(_state, _conf) \
- DEFINE_PROP_MACADDR("mac", _state, _conf.macaddr, ""), \
- DEFINE_PROP_VLAN("vlan", _state, _conf.vlan, ""), \
- DEFINE_PROP_NETDEV("netdev", _state, _conf.peer, "")
+ DEFINE_PROP_MACADDR("mac", _state, _conf.macaddr, \
+ "The MAC address for the NIC."), \
+ DEFINE_PROP_VLAN("vlan", _state, _conf.vlan, \
+ "The VLAN to associate the NIC with."), \
+ DEFINE_PROP_NETDEV("netdev", _state, _conf.peer, \
+ "The peer net device to associate with this virtual
NIC.")
/* VLANs support */
--
1.7.0.1
- [Qemu-devel] [PATCH 0/5] Add '-device help' output for device params and help text, Amit Shah, 2010/05/31
- [Qemu-devel] [PATCH 1/5] qdev: Add a description field for qdev properties for documentation, Amit Shah, 2010/05/31
- [Qemu-devel] [PATCH 2/5] virtio-serial: Add description fields for qdev properties, Amit Shah, 2010/05/31
- [Qemu-devel] [PATCH 3/5] net.h: Add description fields for qdev properites,
Amit Shah <=
- [Qemu-devel] [PATCH 4/5] qdev: Re-arrange code to have device properties shown from own function, Amit Shah, 2010/05/31
- [Qemu-devel] [PATCH 5/5] qdev: Add new '-device help' option, shows all devices and properties, Amit Shah, 2010/05/31