From patchwork Mon May 31 12:41:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Shah X-Patchwork-Id: 54087 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2D6BAB7D67 for ; Mon, 31 May 2010 22:50:01 +1000 (EST) Received: from localhost ([127.0.0.1]:47658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJ4O3-0004Bd-MY for incoming@patchwork.ozlabs.org; Mon, 31 May 2010 08:46:35 -0400 Received: from [140.186.70.92] (port=41771 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJ4Hf-0006Ps-Ok for qemu-devel@nongnu.org; Mon, 31 May 2010 08:40:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJ4He-0007Ji-5i for qemu-devel@nongnu.org; Mon, 31 May 2010 08:39:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56926) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ4Hd-0007Je-Tb for qemu-devel@nongnu.org; Mon, 31 May 2010 08:39:58 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4VCdvgZ018799 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 31 May 2010 08:39:57 -0400 Received: from localhost (dhcp1-88.pnq.redhat.com [10.65.193.88]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4VCdtul025489; Mon, 31 May 2010 08:39:56 -0400 From: Amit Shah To: qemu list Date: Mon, 31 May 2010 18:11:29 +0530 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Amit Shah , Juan Quintela , Markus Armbruster , Gerd Hoffmann Subject: [Qemu-devel] [PATCH 3/5] net.h: Add description fields for qdev properites X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 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 */