From patchwork Tue Jan 4 12:22:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Shah X-Patchwork-Id: 77462 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 C107AB7107 for ; Tue, 4 Jan 2011 23:35:32 +1100 (EST) Received: from localhost ([127.0.0.1]:35674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pa62f-0002qT-Id for incoming@patchwork.ozlabs.org; Tue, 04 Jan 2011 07:31:09 -0500 Received: from [140.186.70.92] (port=41472 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pa5uX-0007aI-8I for qemu-devel@nongnu.org; Tue, 04 Jan 2011 07:22:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pa5uS-0001ln-DB for qemu-devel@nongnu.org; Tue, 04 Jan 2011 07:22:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:61390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pa5uS-0001lO-0u for qemu-devel@nongnu.org; Tue, 04 Jan 2011 07:22:40 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p04CMcDL009574 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 4 Jan 2011 07:22:38 -0500 Received: from localhost (dhcp193-64.pnq.redhat.com [10.65.193.64] (may be forged)) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p04CMbD4025612; Tue, 4 Jan 2011 07:22:37 -0500 From: Amit Shah To: Anthony Liguori Date: Tue, 4 Jan 2011 17:52:22 +0530 Message-Id: <9aebd1d7e180d00d7d210c09fb11095facdb553e.1294143628.git.amit.shah@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 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 | 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 */