From patchwork Thu Nov 25 17:31:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Shah X-Patchwork-Id: 73107 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 02762B70D6 for ; Fri, 26 Nov 2010 04:42:36 +1100 (EST) Received: from localhost ([127.0.0.1]:37434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLfq6-0005hI-70 for incoming@patchwork.ozlabs.org; Thu, 25 Nov 2010 12:42:34 -0500 Received: from [140.186.70.92] (port=57715 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLfkM-00031z-IL for qemu-devel@nongnu.org; Thu, 25 Nov 2010 12:36:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLfkL-0005OC-DA for qemu-devel@nongnu.org; Thu, 25 Nov 2010 12:36:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:2721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLfkL-0005Np-5Y for qemu-devel@nongnu.org; Thu, 25 Nov 2010 12:36:37 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oAPHaZxA009166 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 25 Nov 2010 12:36:35 -0500 Received: from localhost ([10.3.113.14]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oAPHaXXF010072; Thu, 25 Nov 2010 12:36:34 -0500 From: Amit Shah To: Anthony Liguori Date: Thu, 25 Nov 2010 23:01:22 +0530 Message-Id: <45cccea960585a145865160cd35bc9d833c83b90.1290706012.git.amit.shah@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Amit Shah , qemu list Subject: [Qemu-devel] [PATCH 3/4] 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 25e7968..b3be73c 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 */