From patchwork Thu Apr 15 14:07:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miguel Di Ciurcio Filho X-Patchwork-Id: 50263 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 D0AD9B7C8E for ; Fri, 16 Apr 2010 01:08:01 +1000 (EST) Received: from localhost ([127.0.0.1]:59538 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2Qfa-00007v-LM for incoming@patchwork.ozlabs.org; Thu, 15 Apr 2010 11:07:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2Pth-0003dk-5E for qemu-devel@nongnu.org; Thu, 15 Apr 2010 10:18:25 -0400 Received: from [140.186.70.92] (port=50377 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2Pte-0003H8-Ap for qemu-devel@nongnu.org; Thu, 15 Apr 2010 10:18:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2PjJ-0007m8-Ns for qemu-devel@nongnu.org; Thu, 15 Apr 2010 10:07:43 -0400 Received: from mail-yx0-f180.google.com ([209.85.210.180]:46679) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2PjJ-0007Vy-HF for qemu-devel@nongnu.org; Thu, 15 Apr 2010 10:07:41 -0400 Received: by mail-yx0-f180.google.com with SMTP id 10so693532yxe.18 for ; Thu, 15 Apr 2010 07:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=vHwVwHqIQXE8qQvaB3nGdw/VQIYMEmHQZ16p5urrSYs=; b=WkmGf+NU0Cs7QIf+k+I/+FqpQmQdI+eXIJkIc7gXTjXMhkrZHxWWysLazf/gzj+Tf4 VxghqeX1iTCR3sqblxYg+81K4yLa+BukImHpIcFWhk+vedJ4NG0S243o9enq6/w9pMQE mDYuNiAhwgfHqDEdujCSDBJapnAVR8/HulWaM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=Qj7jp0u4qGf2NUe2h/2agDdUtm/wCnaGBFLijLY6kmbsfjas8Rohy3MFA6DnRakYgx B81ecoG1/aTOV9kI8uwQvfO16RyIZh/1SlV3HMAE/RO3PAexqrZqNlTUDa8Lc0UrnzeY v8AQphlduhcNaK5M6IcEPYka41JiBvsHuGYp0= Received: by 10.100.234.1 with SMTP id g1mr376487anh.62.1271340455444; Thu, 15 Apr 2010 07:07:35 -0700 (PDT) Received: from localhost.localdomain (quake.ic.unicamp.br [143.106.7.51]) by mx.google.com with ESMTPS id y2sm1240378ani.4.2010.04.15.07.07.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 15 Apr 2010 07:07:34 -0700 (PDT) From: Miguel Di Ciurcio Filho To: qemu-devel@nongnu.org Date: Thu, 15 Apr 2010 11:07:07 -0300 Message-Id: <1271340427-12579-13-git-send-email-miguel.filho@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1271340427-12579-1-git-send-email-miguel.filho@gmail.com> References: <1271340427-12579-1-git-send-email-miguel.filho@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: armbru@redhat.com, lcapitulino@redhat.com Subject: [Qemu-devel] [PATCH v3 12/12] net: Remove info_str from VLANClientState, not needed anymore 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: Miguel Di Ciurcio Filho --- net.c | 9 --------- net.h | 2 -- 2 files changed, 0 insertions(+), 11 deletions(-) diff --git a/net.c b/net.c index 46e8873..5dfe24d 100644 --- a/net.c +++ b/net.c @@ -168,15 +168,6 @@ int parse_host_port(struct sockaddr_in *saddr, const char *str) return 0; } -void qemu_format_nic_info_str(VLANClientState *vc, uint8_t macaddr[6]) -{ - snprintf(vc->info_str, sizeof(vc->info_str), - "model=%s,macaddr=%02x:%02x:%02x:%02x:%02x:%02x", - vc->model, - macaddr[0], macaddr[1], macaddr[2], - macaddr[3], macaddr[4], macaddr[5]); -} - void qemu_format_nic_info_dict(VLANClientState *vc, uint8_t macaddr[6]) { vc->info_dict = qdict_new(); diff --git a/net.h b/net.h index 058420e..243bc3c 100644 --- a/net.h +++ b/net.h @@ -65,7 +65,6 @@ struct VLANClientState { NetQueue *send_queue; char *model; char *name; - char info_str[256]; QDict *info_dict; unsigned receive_disabled : 1; }; @@ -111,7 +110,6 @@ ssize_t qemu_send_packet_async(VLANClientState *vc, const uint8_t *buf, int size, NetPacketSent *sent_cb); void qemu_purge_queued_packets(VLANClientState *vc); void qemu_flush_queued_packets(VLANClientState *vc); -void qemu_format_nic_info_str(VLANClientState *vc, uint8_t macaddr[6]); void qemu_format_nic_info_dict(VLANClientState *vc, uint8_t macaddr[6]); void qemu_macaddr_default_if_unset(MACAddr *macaddr); int qemu_show_nic_models(const char *arg, const char *const *models);