Message ID | 1463320189-14108-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 E62739F1D3 for <patchwork-qemu-devel@patchwork.kernel.org>; Sun, 15 May 2016 13:56:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 490FC202C8 for <patchwork-qemu-devel@patchwork.kernel.org>; Sun, 15 May 2016 13:56:52 +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 9F502202AE for <patchwork-qemu-devel@patchwork.kernel.org>; Sun, 15 May 2016 13:56:51 +0000 (UTC) Received: from localhost ([::1]:40449 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 1b1wXL-0001A8-08 for patchwork-qemu-devel@patchwork.kernel.org; Sun, 15 May 2016 09:56:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <leonid.bloch@ravellosystems.com>) id 1b1wR7-0007ZJ-AF for qemu-devel@nongnu.org; Sun, 15 May 2016 09:50:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <leonid.bloch@ravellosystems.com>) id 1b1wR2-0007Wx-NX for qemu-devel@nongnu.org; Sun, 15 May 2016 09:50:25 -0400 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:37904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <leonid.bloch@ravellosystems.com>) id 1b1wR2-0007Ws-GF for qemu-devel@nongnu.org; Sun, 15 May 2016 09:50:20 -0400 Received: by mail-wm0-x22c.google.com with SMTP id g17so98337544wme.1 for <qemu-devel@nongnu.org>; Sun, 15 May 2016 06:50:20 -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=hQ0Ki3edn/t+t5MVYa+HlbnnqZ66Xfs+YryUOPxnDPsS1YxGQS++ZaiMgjbdZwkxjb 52m5Dqub8zgKpfQPgJReiyP0OQHrKCeKbVFuUqm6gApVWeIcFGJ6hFqsJWOtXWpAQ45v gonoPtusKfkTK85+VLHlgsr48ZWaaGXVlyzXzUhdbFeaeIgb66JRCJTT3bfagJ4OS8RV 4uL15aqglepuejDxzHdqvECUZ3y+k82Ob+6QRnzTB4Xpi9B4vJCmhM6+YegKErozo4Wl owU+GvFIeF0Nou7tLOC46kFffJsh5XadDaYYUKB+IERvcWzWH6poffBnkHnOstJeXV0i nOmQ== 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=YWvSBOkwYJGw1ezok2kRFB0gsKpRTr5/gI5BO9ZRBOQ6fkomOG+ReWVziPQiEOA4td saJkrcGxaMeIx057Z+2SOqi5jCN0xSJJRmuhBVRCiIf5Llqscud2H9X32CJW1T31pOOw v90+aR5xMAFOvUwgIEoH0ca298lNYYTrAs2VopoJBV6B9BT1wapzwFsPw0B/DFisxl62 ywLLW4kk/5xMpUwdOwBMPzBPicg9Qo43Css+bAh6r047Od8f6otUMHUlX868QiGmejya A05Ok9KtfaGTmA2yc+IiitU04Zd9/q6d0azZ3LDMrx4O8NQ/OrmnbpmZZjLrApgLdx1L /4Bg== X-Gm-Message-State: AOPr4FXwPZ0rMfsiRhGJfaaAK0P8yOW607C6VQ5EZ72ebF8FU5+HcxSkG+X/70n2dxkIS2pX X-Received: by 10.194.69.106 with SMTP id d10mr25083614wju.165.1463320219820; Sun, 15 May 2016 06:50:19 -0700 (PDT) Received: from bark.daynix ([5.102.236.99]) by smtp.gmail.com with ESMTPSA id c4sm28742403wjm.24.2016.05.15.06.50.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 May 2016 06:50:18 -0700 (PDT) From: Leonid Bloch <leonid.bloch@ravellosystems.com> To: qemu-devel@nongnu.org Date: Sun, 15 May 2016 16:49:40 +0300 Message-Id: <1463320189-14108-8-git-send-email-leonid.bloch@ravellosystems.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1463320189-14108-1-git-send-email-leonid.bloch@ravellosystems.com> References: <1463320189-14108-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::22c Subject: [Qemu-devel] [PATCH v5 07/16] 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-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