From patchwork Fri May 28 09:57:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Shah X-Patchwork-Id: 53878 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 3E992B6F11 for ; Fri, 28 May 2010 20:03:50 +1000 (EST) Received: from localhost ([127.0.0.1]:47553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHwPi-0006dt-PK for incoming@patchwork.ozlabs.org; Fri, 28 May 2010 06:03:38 -0400 Received: from [140.186.70.92] (port=49170 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHwIp-0001MH-2a for qemu-devel@nongnu.org; Fri, 28 May 2010 05:56:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHwIn-0005Rs-U6 for qemu-devel@nongnu.org; Fri, 28 May 2010 05:56:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2917) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHwIn-0005Rj-Nw for qemu-devel@nongnu.org; Fri, 28 May 2010 05:56:29 -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 o4S9uTCL001475 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 28 May 2010 05:56:29 -0400 Received: from localhost (vpn-226-207.phx2.redhat.com [10.3.226.207]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4S9uReP008659; Fri, 28 May 2010 05:56:28 -0400 From: Amit Shah To: qemu list Date: Fri, 28 May 2010 15:27:57 +0530 Message-Id: <4df39362e877c2702834d869e9098ef77dc348fb.1275040675.git.amit.shah@redhat.com> In-Reply-To: <24764499566cd2edeb02b44be2d53150e076d5b5.1275040675.git.amit.shah@redhat.com> References: <24764499566cd2edeb02b44be2d53150e076d5b5.1275040675.git.amit.shah@redhat.com> In-Reply-To: <24764499566cd2edeb02b44be2d53150e076d5b5.1275040675.git.amit.shah@redhat.com> References: <24764499566cd2edeb02b44be2d53150e076d5b5.1275040675.git.amit.shah@redhat.com> 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 , Gerd Hoffmann , Markus Armbruster Subject: [Qemu-devel] [RFC PATCH 3/3] 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 Signed-off-by: Amit Shah --- net.h | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/net.h b/net.h index 0e9cc5d..8ad439a 100644 --- a/net.h +++ b/net.h @@ -20,10 +20,17 @@ typedef struct NICConf { VLANClientState *peer; } NICConf; +#define PROP_NET_MACADDR_DESC \ + "The MAC address for the NIC" +#define PROP_NET_VLAN_DESC \ + "The VLAN to associate the NIC with" +#define PROP_NET_NETDEV_DESC \ + "The peer net device to associate with this virtual NIC" + #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, PROP_NET_MACADDR_DESC),\ + DEFINE_PROP_VLAN("vlan", _state, _conf.vlan, PROP_NET_VLAN_DESC), \ + DEFINE_PROP_NETDEV("netdev", _state, _conf.peer, PROP_NET_NETDEV_DESC) /* VLANs support */