Message ID | 1456162651-22181-8-git-send-email-leonid.bloch@ravellosystems.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 17D099F372 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 22 Feb 2016 17:42:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 335A220383 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 22 Feb 2016 17:42:29 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8F44F201B9 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 22 Feb 2016 17:42:28 +0000 (UTC) Received: from localhost ([::1]:50803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1aXuV9-00030r-RE for patchwork-qemu-devel@patchwork.kernel.org; Mon, 22 Feb 2016 12:42:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <leonid.bloch@ravellosystems.com>) id 1aXuR8-0004IE-2j for qemu-devel@nongnu.org; Mon, 22 Feb 2016 12:38:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <leonid.bloch@ravellosystems.com>) id 1aXuR5-0007mc-EM for qemu-devel@nongnu.org; Mon, 22 Feb 2016 12:38:18 -0500 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:33676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <leonid.bloch@ravellosystems.com>) id 1aXuR5-0007mJ-8m for qemu-devel@nongnu.org; Mon, 22 Feb 2016 12:38:15 -0500 Received: by mail-wm0-x22d.google.com with SMTP id g62so167362753wme.0 for <qemu-devel@nongnu.org>; Mon, 22 Feb 2016 09:38:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravellosystems-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ri5r72w79wGZ5kaRvnDa529GVULxaGWFExU5P5jdmZU=; b=lrM1p1fNi0IGRjvB+GyEM4Hez3J9EG6WllbNrhRwfGSr6bK84BYvIoqb7fod0pDkzx gtcK3NozzYALh9XAR1dogcOrZSdOXWx4LcZr9230mNm2UB3vx5ZzG3CZf7SLTaxPo3Kv Mzngo6aT/eH3bYpLODOxgHGdsfoy9p1UTVOVXyhdG39+8m3ny3FP8DcM6cHM6vFilK3w MEYlwHBbivJHErmDoSzXErEBaUysmG5Yr27vZps6rkcEs9kxKVkSEsT3AK/qxpASWIz9 wzdMpIVTc3iFDcrOQQjNA/GaAjE+QenN0jBAzJcZZ9W69aH61w09ZEtwpZaTxpgtI2cZ hzfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ri5r72w79wGZ5kaRvnDa529GVULxaGWFExU5P5jdmZU=; b=k993RzZuUjcpQcUdfYok3qVD13+q7LcUFlxFuJKrHCnyhyldUg4hD94fDxd3Yjf+H3 yqecnOnraZ4osWZJIegTB9MLkyfeT+GrBd0bty+bQ++NTMBqe0E7barauj4wDwhgxMjj VDRqHss1OfSGKt/5Hz9p/W+62NzxtumT/f4FgYGEsJ6dUcG1XjrqcvEUztgcDXagIfBV gd+xKxKE2p80mMx9RujnMZE7Z7eRGBQc93Es6PdNYX+dhE29ZpZ5PmchSPMlzQSadMks NHpx03LI9lQs6Gyq3+MWUP5nSlJDd2zBP8vO+CAjTDOdtxZHktzxdgDLAgO/ZLoS/cM2 d17Q== X-Gm-Message-State: AG10YOSMIW9sNc1/S9JaJpicMfvD6Nvc887ysKeeXijqlpmhca6113SCVlLvXNi1Pn3U9F+9 X-Received: by 10.194.91.233 with SMTP id ch9mr29055811wjb.121.1456162694664; Mon, 22 Feb 2016 09:38:14 -0800 (PST) Received: from bark.daynix ([5.102.236.99]) by smtp.gmail.com with ESMTPSA id gb9sm25658085wjb.26.2016.02.22.09.38.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Feb 2016 09:38:13 -0800 (PST) From: Leonid Bloch <leonid.bloch@ravellosystems.com> To: qemu-devel@nongnu.org Date: Mon, 22 Feb 2016 19:37:25 +0200 Message-Id: <1456162651-22181-8-git-send-email-leonid.bloch@ravellosystems.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1456162651-22181-1-git-send-email-leonid.bloch@ravellosystems.com> References: <1456162651-22181-1-git-send-email-leonid.bloch@ravellosystems.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22d Cc: Dmitry Fleytman <dmitry@daynix.com>, Jason Wang <jasowang@redhat.com>, Leonid Bloch <leonid@daynix.com>, Shmulik Ladkani <shmulik.ladkani@ravellosystems.com>, "Michael S. Tsirkin" <mst@redhat.com> Subject: [Qemu-devel] [PATCH v2 07/13] net: Add macros for MAC address tracing X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/net/net.h b/include/net/net.h index 73e4c46..129d46b 100644 --- a/include/net/net.h +++ b/include/net/net.h @@ -9,6 +9,11 @@ #include "migration/vmstate.h" #include "qapi-types.h" +#define MAC_FMT "%02X:%02X:%02X:%02X:%02X:%02X" +#define MAC_ARG(x) ((uint8_t *)(x))[0], ((uint8_t *)(x))[1], \ + ((uint8_t *)(x))[2], ((uint8_t *)(x))[3], \ + ((uint8_t *)(x))[4], ((uint8_t *)(x))[5] + #define MAX_QUEUE_NUM 1024 /* Maximum GSO packet size (64k) plus plenty of room for