From patchwork Mon Oct 9 14:00:05 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: 115241 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp2591780qgn; Mon, 9 Oct 2017 07:01:59 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCkS05zoPdpEn0224hCAu2RmQuXGTWUNrxW2HFmYb9YODtZH2+8zNX2h2xcdxw3D+hQTHPu X-Received: by 10.36.164.75 with SMTP id v11mr15039928iti.33.1507557719187; Mon, 09 Oct 2017 07:01:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507557719; cv=none; d=google.com; s=arc-20160816; b=DVlJexl5pAFpuEk6+m44vp2Jeh/JTUK7stgFWwbehsc1jeUVgXgkj/ltGFXNf1Nzm0 0YIaeXrDI9WgZi0y0Z8/7VGxMDYVLqyLIXZ1afUq3ODhGyJg1DWBpCh1DgMvOckFt38O Izq7i1VlEpNzSi7RTu+vYgbQMmsKZv36Kls1V/oqm5fTyuS2z5IdT4qbKjtGadF1pkAG z1K6GKl7o5x2LcDkfXsDBi1GIaAOd0XdbcMU971hsDUjr51TInVvUBymkYft0a94HLhw AmuNA9kzc0reaieW6Zq2DWz8Sghm9/+G2hK/3mVpXSnI0HVRPcOArTH+unb7/vtG1A11 QWXg== 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=Mt+ZNkixwC+DvfzJU1tz9Lywi+8ab/Cx6WiLVBJvP9k=; b=w86W3rUz3rF3QhQVA2thPYBXxiUoTdu1Yh7QY8A3jHGR9c0udwF97ZozvFbJf5jQlr K78qSlOBSsSQV236SaRDSQJSXWd/6T+JzUZ23F6+5mdb+EHxm1I/MB7+7nabDJreFHnf DTS7g2zAZqXPxCK44N1PHqHIK4UKOZkmM8VSwdH3Uaey4Efh2jkeviDeP9kiEYPjEqFS +lqeFOk69ipVOaB+2DE9hPDpO0g+VJsSYkOaQ/UV6meEUzvexPK120YipRsfSr+jq2Bu oMjDEjSX7pEdVLe30qdu6RqZgbG6QJZFCxQZ1VAwY9F77h9RoEiC593tNAtSshSKhtB6 alrQ== 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 a64si7196886ita.42.2017.10.09.07.01.58; Mon, 09 Oct 2017 07:01:59 -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 99B1160C39; Mon, 9 Oct 2017 14:01:58 +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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 6F32760B4B; Mon, 9 Oct 2017 14:00:53 +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 5E73960B15; Mon, 9 Oct 2017 14:00:49 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 7D95360812 for ; Mon, 9 Oct 2017 14:00:43 +0000 (UTC) Received: from mxback3j.mail.yandex.net (mxback3j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10c]) by forward100p.mail.yandex.net (Yandex) with ESMTP id D5E695102819 for ; Mon, 9 Oct 2017 17:00:41 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback3j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id FXiDzrw6Nz-0fsSqpbg; Mon, 09 Oct 2017 17:00:41 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id wSTIYzb9Br-0fdWvXGc; Mon, 09 Oct 2017 17:00:41 +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: Mon, 9 Oct 2017 17:00:05 +0300 Message-Id: <1507557617-32018-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507557617-32018-1-git-send-email-odpbot@yandex.ru> References: <1507557617-32018-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 188 Subject: [lng-odp] [PATCH v3 1/13] linux-gen: drop unused _odp_packet_cmp_data() function 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: Dmitry Eremin-Solenikov This is to fix https://bugs.linaro.org/show_bug.cgi?id=3241 Signed-off-by: Dmitry Eremin-Solenikov Reviewed-by: Bill Fischofer Signed-off-by: Maxim Uvarov --- /** Email created from pull request 188 (WonderfulVoid:master) ** https://github.com/Linaro/odp/pull/188 ** Patch: https://github.com/Linaro/odp/pull/188.patch ** Base sha: c16af6486eea240609f334b1bdc81a11404275de ** Merge commit sha: 4ad1d0615a4dcd74d4e9703090149eec1a58d7d2 **/ .../linux-generic/include/odp_packet_internal.h | 3 --- platform/linux-generic/odp_packet.c | 26 ---------------------- 2 files changed, 29 deletions(-) diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h index d76d7bf08..15cb53f41 100644 --- a/platform/linux-generic/include/odp_packet_internal.h +++ b/platform/linux-generic/include/odp_packet_internal.h @@ -321,9 +321,6 @@ int _odp_cls_parse(odp_packet_hdr_t *pkt_hdr, const uint8_t *parseptr); int _odp_packet_set_data(odp_packet_t pkt, uint32_t offset, uint8_t c, uint32_t len); -int _odp_packet_cmp_data(odp_packet_t pkt, uint32_t offset, - const void *s, uint32_t len); - #ifdef __cplusplus } #endif diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c index f4a0e0ec9..fff01ad9d 100644 --- a/platform/linux-generic/odp_packet.c +++ b/platform/linux-generic/odp_packet.c @@ -1642,32 +1642,6 @@ int _odp_packet_set_data(odp_packet_t pkt, uint32_t offset, return 0; } -int _odp_packet_cmp_data(odp_packet_t pkt, uint32_t offset, - const void *s, uint32_t len) -{ - const uint8_t *ptr = s; - void *mapaddr; - uint32_t seglen = 0; /* GCC */ - uint32_t cmplen; - int ret; - odp_packet_hdr_t *pkt_hdr = packet_hdr(pkt); - - ODP_ASSERT(offset + len <= pkt_hdr->frame_len); - - while (len > 0) { - mapaddr = packet_map(pkt_hdr, offset, &seglen, NULL); - cmplen = len > seglen ? seglen : len; - ret = memcmp(mapaddr, ptr, cmplen); - if (ret != 0) - return ret; - offset += cmplen; - len -= cmplen; - ptr += cmplen; - } - - return 0; -} - /* * * Debugging