Message ID | 1464679259-1378-9-git-send-email-dmitry@daynix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9B026607D6 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 31 May 2016 07:35:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D4591FF27 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 31 May 2016 07:35:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 81B4025D97; Tue, 31 May 2016 07:35:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 254F91FF45 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 31 May 2016 07:35:08 +0000 (UTC) Received: from localhost ([::1]:34826 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 1b7eCh-0004LM-Vi for patchwork-qemu-devel@patchwork.kernel.org; Tue, 31 May 2016 03:35:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <dmitry@daynix.com>) id 1b7dza-0000JI-Bq for qemu-devel@nongnu.org; Tue, 31 May 2016 03:21:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <dmitry@daynix.com>) id 1b7dzU-0008TK-RS for qemu-devel@nongnu.org; Tue, 31 May 2016 03:21:33 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:33685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <dmitry@daynix.com>) id 1b7dzU-0008TF-7H for qemu-devel@nongnu.org; Tue, 31 May 2016 03:21:28 -0400 Received: by mail-wm0-x244.google.com with SMTP id a136so29734135wme.0 for <qemu-devel@nongnu.org>; Tue, 31 May 2016 00:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yuiwRm7WRo9LlGJkgehyNyrRZ8KkU7o19wXJfS/CGSA=; b=AbdaqINyoo8jBojl6y5s/b4dGXi84up8xWu3Mtpx8AHHrTnJvi2XdEFX67dqHeDYtb Mth7hvUflk5FTLqcA6OQ/d6FnVuiiHdSObODdbW0cPNhhKMQNIgHWpKdS6cIbH3FqJyB rsjCmNx3glx5TSkJcsuYbAek/gznGtxqAMmNL6JUyQu0ZZnILkFguB8+pwyt5HrRBz7/ 2bOMb+hIB4sUIjGHgViV6yTtim/O4kstIMWF0kfHrieY+ToXK5xqHqx6XqiTAa7p2v8a PMP5UP6PV3qHSli+l8W2UjTMdB6TglyAoKkWWAatbOwcsjyHejoARs/oi3uFqEAINUkF +KHg== 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=yuiwRm7WRo9LlGJkgehyNyrRZ8KkU7o19wXJfS/CGSA=; b=NfptmbtcHbC0dYxfPh9f8RQ24eTd7DcbpzpVkNEIBGW3WcVyugwEpIiGx/3JUgpjCS pwkG/pLkal77utqHgMU8xVq1FOsxP/sOysY11TYBi1IiwmtkVtJ7/WtYTRBg04ywf9v/ IAxoCNQOX5Zmv2QqB+xbKGAHTnRtvrGvVNyEJ2XltFKLN0HwhMTDhAGjsVTV4v/38n+D fxaPyytYfFHwF13/AYtwrUGcT1L77hZcF0nZ+kmv4/+CcEcd3070t+U61+DtSyuOlMiO Oh+hvNUdCkQMNfjITloHsdjqqS7TJmwRf4/LHoy9HT2hl6oREPPxCzgLWQ4XVWJCBUU0 vM1g== X-Gm-Message-State: ALyK8tISSaMkix/tWieCHMG7/bbHegzY14QKaVMKjq/YTIYYtASoUftAqzrbOnOpnDP89A== X-Received: by 10.28.223.132 with SMTP id w126mr13812746wmg.72.1464679287690; Tue, 31 May 2016 00:21:27 -0700 (PDT) Received: from bark.daynix ([5.102.236.99]) by smtp.gmail.com with ESMTPSA id d5sm38256188wje.20.2016.05.31.00.21.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2016 00:21:25 -0700 (PDT) From: Dmitry Fleytman <dmitry@daynix.com> To: qemu-devel@nongnu.org Date: Tue, 31 May 2016 10:20:50 +0300 Message-Id: <1464679259-1378-9-git-send-email-dmitry@daynix.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1464679259-1378-1-git-send-email-dmitry@daynix.com> References: <1464679259-1378-1-git-send-email-dmitry@daynix.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PATCH v7 08/17] net: Add macros for MAC address tracing X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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> Cc: Yan Vugenfirer <yan@daynix.com>, Jason Wang <jasowang@redhat.com>, Leonid Bloch <leonid@daynix.com>, Shmulik Ladkani <shmulik.ladkani@ravellosystems.com>, "Michael S. Tsirkin" <mst@redhat.com> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.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