From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=54105 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvrEb-0007Gb-2d for qemu-devel@nongnu.org; Wed, 15 Sep 2010 08:37:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvrEZ-0004oR-Vl for qemu-devel@nongnu.org; Wed, 15 Sep 2010 08:37:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61605) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvrEZ-0004oI-NE for qemu-devel@nongnu.org; Wed, 15 Sep 2010 08:37:07 -0400 From: Amit Shah Date: Wed, 15 Sep 2010 18:06:51 +0530 Message-Id: In-Reply-To: References: In-Reply-To: References: Subject: [Qemu-devel] [PATCH 3/4] net.h: Add description fields for qdev properites List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Amit Shah , qemu list 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 --- net.h | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/net.h b/net.h index f11c108..b6658fd 100644 --- a/net.h +++ b/net.h @@ -20,9 +20,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.2.2