From patchwork Sun May 23 02:49:10 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amos Kong X-Patchwork-Id: 53297 X-Patchwork-Delegate: anthony@codemonkey.ws 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 6C558B7D1B for ; Sun, 23 May 2010 12:50:41 +1000 (EST) Received: from localhost ([127.0.0.1]:48096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OG1Gw-0007PQ-G0 for incoming@patchwork.ozlabs.org; Sat, 22 May 2010 22:50:38 -0400 Received: from [140.186.70.92] (port=33091 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OG1GN-0007N1-PX for qemu-devel@nongnu.org; Sat, 22 May 2010 22:50:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OG1GM-00005d-BQ for qemu-devel@nongnu.org; Sat, 22 May 2010 22:50:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34262) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OG1GM-0008W0-2u for qemu-devel@nongnu.org; Sat, 22 May 2010 22:50:02 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4N2nGMm007216 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 22 May 2010 22:49:16 -0400 Received: from localhost.localdomain (vpn1-7-153.sin2.redhat.com [10.67.7.153]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4N2nC37029283; Sat, 22 May 2010 22:49:14 -0400 From: akong@redhat.com To: qemu-devel@nongnu.org Date: Sun, 23 May 2010 10:49:10 +0800 Message-Id: <1274582950-4418-1-git-send-email-akong@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: aliguori@us.ibm.com, Amos Kong , alex.williamson@hp.com Subject: [Qemu-devel] [PATCH] Virtio-net: Replace the hardcode 6 with defined ETN_ALEN 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 From: Amos Kong hw/virtio-net.h: #define ETH_ALEN 6 ETH_ALEN was defined by commit 7967406801aa897fae83caad3278ac85a342adaa Signed-off-by: Amos Kong --- hw/virtio-net.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/virtio-net.h b/hw/virtio-net.h index e55119b..235f1a9 100644 --- a/hw/virtio-net.h +++ b/hw/virtio-net.h @@ -54,8 +54,8 @@ struct virtio_net_config { - /* The config defining mac address (6 bytes) */ - uint8_t mac[6]; + /* The config defining mac address ($ETH_ALEN bytes) */ + uint8_t mac[ETH_ALEN]; /* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */ uint16_t status; } __attribute__((packed));