Message ID | 1464599682-14592-9-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> 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 6CAE060777 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 30 May 2016 09:22:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5AC2C20410 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 30 May 2016 09:22:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4FA5628212; Mon, 30 May 2016 09:22:32 +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 0E43B20410 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 30 May 2016 09:22:31 +0000 (UTC) Received: from localhost ([::1]:58785 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 1b7JP4-00080s-8a for patchwork-qemu-devel@patchwork.kernel.org; Mon, 30 May 2016 05:22:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <leonid.bloch@ravellosystems.com>) id 1b7JLZ-0004xH-5m for qemu-devel@nongnu.org; Mon, 30 May 2016 05:18:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <leonid.bloch@ravellosystems.com>) id 1b7JLU-0008P8-Kk for qemu-devel@nongnu.org; Mon, 30 May 2016 05:18:53 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:37203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <leonid.bloch@ravellosystems.com>) id 1b7JLU-0008Ot-Cy for qemu-devel@nongnu.org; Mon, 30 May 2016 05:18:48 -0400 Received: by mail-wm0-x230.google.com with SMTP id z87so63548531wmh.0 for <qemu-devel@nongnu.org>; Mon, 30 May 2016 02:18:48 -0700 (PDT) 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=yuiwRm7WRo9LlGJkgehyNyrRZ8KkU7o19wXJfS/CGSA=; b=REm7H3kTCZYSvSr2BEHCk7fgS6qkYDFx4Uo4vB5eNFtYWg7mPogGzdX40CDYegCnfB gD0Iv5WQ3DRAPCIF/l5a/UfVJZHVuGCPI1fW/Y16Rse6fvEjfkn6uhbXmw8/PzjoRAH3 iMKkM0XLjGDfho3jqtL5ZUNr2DbiY+BAiknOXhe1z8Uwyt8jK8XE5Qw1YT80LIQ4RO2D 3JXhLVVC3jGGt0bmH3T4DJpKPKsRGsypb9VOAOSs/HMrwrByh/2PFu7MQVGcM0mx5JXp QXqHPD0tIfrkFQMv70sRcYTmbQpwI4SQknYXzGA3IaF1we7SHrI8h37yJoXOGeFNeCmr L6Lw== 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=KfWRfA6BeaL8yOvlS/RBhj1/h/oh4aPUXaSbhzDCWSN1EQZZ+DjItN9AFFQYQdIzhh Z1unPLE16/cfRJq/W9oxJts1AFjCUsyJFbRZGffUGxoU17EN6dmX01vhXWkqmZgvQ9N4 5JPEhw5BuF2ztkx+3P8X/AnlJ68M+UOZqxRMJ3mrRLbKJMLpebUgiaQ07dUoN++YDzka F95gFPEAoZ1oOJxUy9M6rrwigJyJA2wNM3A6K1tnsaC7n5pA47OPxaoiqg+WCuGo3f8G izr95l2WlrLHKY/abS5LP0tXLtIXj8DL3/vc9mtJG+N0bFMxIWpNG+FlXnCgrv6MsU4b yMJA== X-Gm-Message-State: ALyK8tLoFMsMj7wWysqSH+Z8VGBzax0AXZGzZfVXSehHo0DiYJXr4vH4TPBOYZPMCZh3dzEO X-Received: by 10.194.115.230 with SMTP id jr6mr25956250wjb.125.1464599927879; Mon, 30 May 2016 02:18:47 -0700 (PDT) Received: from bark.daynix ([5.102.236.99]) by smtp.gmail.com with ESMTPSA id k127sm22753850wmf.21.2016.05.30.02.18.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 May 2016 02:18:47 -0700 (PDT) From: Leonid Bloch <leonid.bloch@ravellosystems.com> To: qemu-devel@nongnu.org Date: Mon, 30 May 2016 12:14:33 +0300 Message-Id: <1464599682-14592-9-git-send-email-leonid.bloch@ravellosystems.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1464599682-14592-1-git-send-email-leonid.bloch@ravellosystems.com> References: <1464599682-14592-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::230 Subject: [Qemu-devel] [PATCH v6 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: 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> 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