Message ID | 1464769426-22276-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 D0A8560761 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 1 Jun 2016 08:34:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0CD02040D for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 1 Jun 2016 08:34:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5B0E26538; Wed, 1 Jun 2016 08:34:44 +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 433D22040D for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 1 Jun 2016 08:34:44 +0000 (UTC) Received: from localhost ([::1]:40877 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 1b81bv-00010U-6q for patchwork-qemu-devel@patchwork.kernel.org; Wed, 01 Jun 2016 04:34:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <dmitry@daynix.com>) id 1b81Rl-0000pu-Lx for qemu-devel@nongnu.org; Wed, 01 Jun 2016 04:24:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <dmitry@daynix.com>) id 1b81Rh-0000AR-5V for qemu-devel@nongnu.org; Wed, 01 Jun 2016 04:24:13 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:33374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <dmitry@daynix.com>) id 1b81Rg-0000AM-Vo for qemu-devel@nongnu.org; Wed, 01 Jun 2016 04:24:09 -0400 Received: by mail-wm0-x243.google.com with SMTP id a136so4500406wme.0 for <qemu-devel@nongnu.org>; Wed, 01 Jun 2016 01:24:08 -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=t0P5ZT8ni3xZJHsfGDqvgJif/WBF/Xnh5TSnL5uiuos=; b=j9hShxL+Eg+GKROXVTNYFGldUQIFWRrQiIbDCNMRLKIrcgcOguHzd1EWq7+HMFnkN6 Kh59x41JgzlysV9dWian0g7K3I1dYF6TQzgD/r6S3ip601lJ9m8PlLCgspV++VbJOCUY b6J5BpqfHGho9yjrRvu6ePazjyxEAUkvKQ4mYpM1wazp0jk+5+WR+T5VR27yWL+y9n9i KDi6lcDvosSGizWkrOBUhlJrN+ipqgDFFO2JKmzYArANdB5lR4glswZPgn6NikRMuuIe 1GNr/Y1M6mzuBH5J7iVCEsGcjiG+2Q8+Wtx8jcAwb0gGAjQSScpEf9yAGIxNodlXn0eQ 08cQ== 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=t0P5ZT8ni3xZJHsfGDqvgJif/WBF/Xnh5TSnL5uiuos=; b=CfyARnPGI9LWlrkT25GuRF6LiXVUpnZnUJ+rPzsUT5rU+xadRM5Gn2UUkfjMVf/MHr 6W8XaU0zveQQrtLjCGoBacfwZrx7ujsjB1ceR4Sg9wvT4jSSuxBRP1hf087VrSHTLnK/ l+8slKRBzH6tC2ExaHkIj8izZpmC/ZGKUBdhASi5CZnY+R+mRhoZULDH7VO4AjqOIO9T 493xiZfhGtsJKb9j7bhH5kpo3PNI2nitUhEJnNavovQrRcYbJDJEuM9RQbvnK2SK1Z0o 1qtXTdRBad0Ml0cFalhOb6K2g65z0LWHmjzmEvbbNlQLAEM8oUzrRIwPXxXiW4gTL8Ki He8w== X-Gm-Message-State: ALyK8tL/WFEZkgQDiaHLw5WBmhDc5szl5W2U/RD2dOci/R4EqGb1ttW14k4v2fQJIU0c+Q== X-Received: by 10.194.114.228 with SMTP id jj4mr2189128wjb.121.1464769448458; Wed, 01 Jun 2016 01:24:08 -0700 (PDT) Received: from bark.daynix ([5.102.236.99]) by smtp.gmail.com with ESMTPSA id o10sm29242719wjz.37.2016.06.01.01.24.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jun 2016 01:24:07 -0700 (PDT) From: Dmitry Fleytman <dmitry@daynix.com> To: qemu-devel@nongnu.org Date: Wed, 1 Jun 2016 11:23:37 +0300 Message-Id: <1464769426-22276-9-git-send-email-dmitry@daynix.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1464769426-22276-1-git-send-email-dmitry@daynix.com> References: <1464769426-22276-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::243 Subject: [Qemu-devel] [PATCH v8 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