Message ID | 1493568934-3099-2-git-send-email-qdy220091330@gmail.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wGCP84fRDz9s7r for <incoming@patchwork.ozlabs.org>; Mon, 1 May 2017 02:16:52 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Hq1nhERE"; dkim-atps=neutral Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id B875C7AA; Sun, 30 Apr 2017 16:16:19 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id A5A6171F for <dev@openvswitch.org>; Sun, 30 Apr 2017 16:16:18 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 9559A15B for <dev@openvswitch.org>; Sun, 30 Apr 2017 16:16:17 +0000 (UTC) Received: by mail-pf0-f195.google.com with SMTP id b23so8941252pfc.0 for <dev@openvswitch.org>; Sun, 30 Apr 2017 09:16:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4rk87U5AhYqidgKUngQJ5A/3axH+iV0h0hFVoSDXBzw=; b=Hq1nhERETv4hfRmUN9Mv1gRT6AcBizRcfI3eWLiOBcUbxPxniYB3x1/NXilubMpezz WWWaQZK3Y7X4+VkOCUzWE/gyR4p8OfNEt9REIon4+8XBJ0YD1cQTxH4Lw3v+jXC0dkB+ Bjc8LHDU+G4o8CMuzVI+Uc3hCs1gRrv1K2pDiCS0DjRwB7CzMuL2E9HQL27BRBtethjY quii4lQc8E5sTq7M/Iu7yfCu/EvYVdHf8dVYtD6ghAxEpIRYdJk6OpvdB39dM4hYlt+m GWY3j8Q3lLr4qjwzrCD/jdA8bzNKaKedm6ktvttYTY4nXO35QtEKuytUk/Mc/3hy6l+/ 8rPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4rk87U5AhYqidgKUngQJ5A/3axH+iV0h0hFVoSDXBzw=; b=q1lZg4gwR7925i9dTwoEPCpImUbCdKuJfkF2IrI4OglSKgJTNXC4Z1sg6Kjmu0WN0E X1wGogi2GP/eSPDoxYcpjO+rDiGjVbkduemg/V8I7S8SGkEo1V9RAqvAHSprPK0drbaF CDOXSjwKwlUu8LfLr4m/JphH2vUiFSBxb/3dBbxYGLnrardpehLAfKERx5/4JgbLYWxH gGlnauyOS8ttpeEyjZWxRYzzwrF2JYNnkNb0dzPLI6f2oGiLGxkoMLwbILkAG6LDUa6w FqyRrf1A4CRl0Nu+IP24D8Q3KJ4grc50UdQjgV28K4DQCtUyPYKB2qEGlfptLmYKp3V4 DgNw== X-Gm-Message-State: AN3rC/43sAYvHY4/YnPkFNDJ6i4aRkNtpwdqW2pCTS14U1SVTVxPoTHI u3WoWN7h9SJixA== X-Received: by 10.99.6.17 with SMTP id 17mr18788625pgg.201.1493568977253; Sun, 30 Apr 2017 09:16:17 -0700 (PDT) Received: from localhost.localdomain (softbank060067191191.bbtec.net. [60.67.191.191]) by smtp.gmail.com with ESMTPSA id b74sm20900540pfl.58.2017.04.30.09.16.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Apr 2017 09:16:16 -0700 (PDT) From: Michael Qiu <qdy220091330@gmail.com> To: dev@openvswitch.org Date: Mon, 1 May 2017 00:15:30 +0800 Message-Id: <1493568934-3099-2-git-send-email-qdy220091330@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1493568934-3099-1-git-send-email-qdy220091330@gmail.com> References: <1493568934-3099-1-git-send-email-qdy220091330@gmail.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Michael Qiu <qiudayu@chinac.com> Subject: [ovs-dev] [PATCH 1/5] lib/dp-packet: init the mbuf to zero when build with DPDK X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org |
diff --git a/lib/dp-packet.c b/lib/dp-packet.c index 8e7defc..4108cfa 100644 --- a/lib/dp-packet.c +++ b/lib/dp-packet.c @@ -131,6 +131,9 @@ struct dp_packet * dp_packet_new(size_t size) { struct dp_packet *b = xmalloc(sizeof *b); +#ifdef DPDK_NETDEV + memset(&(b->mbuf), 0, sizeof(struct rte_mbuf)); +#endif dp_packet_init(b, size); return b; }