[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH REBASE/RESEND 3/4] net.h: Add description fields for
From: |
Amit Shah |
Subject: |
[Qemu-devel] [PATCH REBASE/RESEND 3/4] net.h: Add description fields for qdev properites |
Date: |
Fri, 4 Feb 2011 11:48:48 +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>
Acked-by: Markus Armbruster <address@hidden>
---
net.h | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/net.h b/net.h
index aa4454b..9cfd2ed 100644
--- a/net.h
+++ b/net.h
@@ -21,10 +21,14 @@ 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_INT32("bootindex", _state, _conf.bootindex, -1, "")
+ 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."), \
+ DEFINE_PROP_INT32("bootindex", _state, _conf.bootindex, -1, \
+ "The index this NIC will be tried to boot from")
/* VLANs support */
--
1.7.3.5
- Re: [Qemu-devel] [PATCH REBASE/RESEND 2/4] virtio-serial: Add description fields for qdev properties, (continued)
[Qemu-devel] [PATCH REBASE/RESEND 1/4] qdev: Add a description field for qdev properties for documentation, Amit Shah, 2011/02/04
- Re: [Qemu-devel] [PATCH REBASE/RESEND 1/4] qdev: Add a description field for qdev properties for documentation, Anthony Liguori, 2011/02/15
- Re: [Qemu-devel] [PATCH REBASE/RESEND 1/4] qdev: Add a description field for qdev properties for documentation, Amit Shah, 2011/02/17
- Re: [Qemu-devel] [PATCH REBASE/RESEND 1/4] qdev: Add a description field for qdev properties for documentation, Anthony Liguori, 2011/02/17
- Re: [Qemu-devel] [PATCH REBASE/RESEND 1/4] qdev: Add a description field for qdev properties for documentation, Amit Shah, 2011/02/17
- Re: [Qemu-devel] [PATCH REBASE/RESEND 1/4] qdev: Add a description field for qdev properties for documentation, Markus Armbruster, 2011/02/18
- Re: [Qemu-devel] [PATCH REBASE/RESEND 1/4] qdev: Add a description field for qdev properties for documentation, Anthony Liguori, 2011/02/18
Re: [Qemu-devel] [PATCH REBASE/RESEND 1/4] qdev: Add a description field for qdev properties for documentation, Markus Armbruster, 2011/02/18
[Qemu-devel] [PATCH REBASE/RESEND 3/4] net.h: Add description fields for qdev properites,
Amit Shah <=
[Qemu-devel] [PATCH REBASE/RESEND 4/4] block_int.h: Provide documentation for common block qdev properties, Amit Shah, 2011/02/04
Re: [Qemu-devel] [PATCH REBASE/RESEND 0/4] Auto-document qdev devices, Markus Armbruster, 2011/02/04
Re: [Qemu-devel] [PATCH REBASE/RESEND 0/4] Auto-document qdev devices, Anthony Liguori, 2011/02/15