From patchwork Mon Aug 14 22:00:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 110066 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp4896612qge; Mon, 14 Aug 2017 15:00:31 -0700 (PDT) X-Received: by 10.55.148.134 with SMTP id w128mr31640624qkd.36.1502748031700; Mon, 14 Aug 2017 15:00:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502748031; cv=none; d=google.com; s=arc-20160816; b=FhKOgQ6hDwBs4pKozeqnGj1IO4r9UsZBhT4SWfqKWGn+IEnohD4Gge51osfSNpgfvN C0E6a3RIGIe18QVOZZ4weTA63N/Z7O/t34eIZT7aqglY06dEXFZk7vF81ccGP0WHLGDz tgjpvvygY92Q48z+t2KBafls2H809terCyQJynMtsHx4VxdTZRK2SzH44xv5gjrvgY3/ q+Tyh1aZ4Krij40gPpJFlUtGEkL1RxtYwwElvyhWH7zbueyKj42WzhjHWpvQeb2DipVv Tx9U2qpod1nY/MogmOYqzm4GNTuyfQfbDg+afMuJgwjm8GdYInNzA6J5VboBBy8TZWns 5Jag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=46nO+XLNlv5K4CoVylNGGHGqnZaoZk5eWqt9GtF28bg=; b=OdHldptVJEPseLJEJFsdMQ6HA9117akNCSwqzkhK/568Npp0co9hqbND9Kabqs/50Z 7ax3jzQS9/dgjS77DS9E3o1XWOrxlRkD2PDpjkhg4hKmJOI7j4geXyJaYbnsfzQA/Zc+ Z9uoc/uR8j0OUTP+2nrdBsOJMmfejQv0TtyEUV0Kbc/ZPfZbkSaSjZ/zg9JG//j2EH1O 6RzQb6ZmCcTSG4Y+E6PN+DH7Ee5sUiArTcaZua/NRyU7hw7hhV7lzcqXpXaCREv/rBhs jOmWJee5M8IJN9L69uJNTm3NDfELljNcOozMjk38w7erJvJn/n00p1YJpOQgjHqoEgxn tdtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id q22si7208753qki.270.2017.08.14.15.00.31; Mon, 14 Aug 2017 15:00:31 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id EA3EB65BE3; Mon, 14 Aug 2017 22:00:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 34006644D8; Mon, 14 Aug 2017 22:00:27 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 55476644DC; Mon, 14 Aug 2017 22:00:24 +0000 (UTC) Received: from forward103j.mail.yandex.net (forward103j.mail.yandex.net [5.45.198.246]) by lists.linaro.org (Postfix) with ESMTPS id 1C081644B6 for ; Mon, 14 Aug 2017 22:00:23 +0000 (UTC) Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10b]) by forward103j.mail.yandex.net (Yandex) with ESMTP id A984D34C34B5 for ; Tue, 15 Aug 2017 01:00:21 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id t3L8QY9Z02-0LeC5gTT; Tue, 15 Aug 2017 01:00:21 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Ilh82pUDMK-0LFSdv0o; Tue, 15 Aug 2017 01:00:21 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 15 Aug 2017 01:00:03 +0300 Message-Id: <1502748005-17591-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502748005-17591-1-git-send-email-odpbot@yandex.ru> References: <1502748005-17591-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 125 Subject: [lng-odp] [PATCH v2 1/3] linux-generic: packet: improve packet_init() performance X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Bill Fischofer Streamline packet_init() performance by eliminating the redundant initialization of the unshared_len field of the packet hdr. This field is initialized when references are created so this processing is not required here. Signed-off-by: Bill Fischofer --- /** Email created from pull request 125 (Bill-Fischofer-Linaro:pktrefs-opt) ** https://github.com/Linaro/odp/pull/125 ** Patch: https://github.com/Linaro/odp/pull/125.patch ** Base sha: 90d4ce1b3b25ca18446131906007571cc0ed0191 ** Merge commit sha: 6d464aeb30e24833ae787e3997a411103c16c70c **/ platform/linux-generic/include/odp_packet_internal.h | 1 - 1 file changed, 1 deletion(-) diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h index d923ee23..48c2463f 100644 --- a/platform/linux-generic/include/odp_packet_internal.h +++ b/platform/linux-generic/include/odp_packet_internal.h @@ -269,7 +269,6 @@ static inline void packet_init(odp_packet_hdr_t *pkt_hdr, uint32_t len) pkt_hdr->input = ODP_PKTIO_INVALID; /* By default packet has no references */ - pkt_hdr->unshared_len = len; pkt_hdr->ref_hdr = NULL; }