From patchwork Sat Jan 13 23:00:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 124430 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp230502lje; Sat, 13 Jan 2018 15:02:20 -0800 (PST) X-Google-Smtp-Source: ACJfBosSTgI4X0P+E382Tx+/bPS3vZozFqaOFHd3E2qXK9ovgDsMrVt4vtKkZikT9GXIcfwwbq6S X-Received: by 10.237.55.71 with SMTP id i65mr17077005qtb.224.1515884540781; Sat, 13 Jan 2018 15:02:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515884540; cv=none; d=google.com; s=arc-20160816; b=LpE7A7TXTLgAvIY2QlVG3YfnqRC4Ws3Jw6qS9Cp8vQvRBEOVgWPztrtquZgLXDZD15 GF34zbmKS0io0u5xCKnXHtpuiU61jyCy3KOgFL2YtyPz0y93GYaxHF2Y3jNliWQ7kh59 l80AKyFFqxTaDLDHX+DYacyeNAxkgt2BgvLbJ5x8vK/OsfPxuC+69hE6sCq0TtzfSTue jK5xwXeAvBX9iuStx59wa4P9mg+/EQhatlnOjkYNF6VLEj0GdM2cL8oCgCGcGPulvrEq KdUa/KoLC1vu4+WdL1b5NXHo+m+f98LMMmoiR3phOwmPe2/ikkxKspFhDG1NpB8/7w2H 2UcQ== 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=PRWp+MVMvnS4Rr5PCOVhrik//bNo1Kmp00Wj82SJgmo=; b=oHFxbxaZYo6YxnfRgzLoyhoh+OtmaeN88fK38800zwe1kyflvVRVmzFbN4/g0jfYVc QaPK+KqPqNuBTh9+aNp+uvDV/ADD6tXGb2F/TdeKm+jVGV/hsh4/mN3WoQrdlSrrcwsz uUNW0PIaBMtzhrZ7/NOfJMOz0npWnYUsHBdrINkHsDJVhfYF+3XCiUqcFsdzlwJlVrMn 9EfdvMBpEuVSKdQBJyslzPVkfnPmiKNpo5nzaVCKU0t/1fnWfRc9I6ULHmNtYK5+ICjB Gi4H/TP3q5NzhiNN1DaswiFowpUOIHvHsJ1V/gsSa2QQj7UqaydTvVyCPffU3Byijci/ RqEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id m2si3437662qkf.457.2018.01.13.15.02.20; Sat, 13 Jan 2018 15:02:20 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 6F0046173A; Sat, 13 Jan 2018 23:02:20 +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_H2 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 7653061744; Sat, 13 Jan 2018 23:00:34 +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 2F72760997; Sat, 13 Jan 2018 23:00:23 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 17B6760975 for ; Sat, 13 Jan 2018 23:00:18 +0000 (UTC) Received: from mxback1o.mail.yandex.net (mxback1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1b]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 9D8B651039E2 for ; Sun, 14 Jan 2018 02:00:16 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback1o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id HE8HvSKPuq-0GTqFDZi; Sun, 14 Jan 2018 02:00:16 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id OeJ5YhkKll-0FxOsMPp; Sun, 14 Jan 2018 02:00:15 +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: Sun, 14 Jan 2018 02:00:08 +0300 Message-Id: <1515884413-15125-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515884413-15125-1-git-send-email-odpbot@yandex.ru> References: <1515884413-15125-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 389 Subject: [lng-odp] [PATCH v3][WIP 2/7] linux-gen: packet: drop unused 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 Drop unused packet_parse_l3_l4() function Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 389 (lumag:parse-checksums) ** https://github.com/Linaro/odp/pull/389 ** Patch: https://github.com/Linaro/odp/pull/389.patch ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea ** Merge commit sha: e6a448356c90f142122e5b5d4796bdf19e04e8c6 **/ platform/linux-generic/include/odp_packet_internal.h | 6 ------ platform/linux-generic/odp_packet.c | 16 ---------------- 2 files changed, 22 deletions(-) diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h index 62888f8a5..43c8da5cb 100644 --- a/platform/linux-generic/include/odp_packet_internal.h +++ b/platform/linux-generic/include/odp_packet_internal.h @@ -298,12 +298,6 @@ int packet_alloc_multi(odp_pool_t pool_hdl, uint32_t len, int packet_parse_layer(odp_packet_hdr_t *pkt_hdr, odp_proto_layer_t layer); -/* Perform L3 and L4 parsing up to a given protocol layer */ -int packet_parse_l3_l4(odp_packet_hdr_t *pkt_hdr, - odp_proto_layer_t layer, - uint32_t l3_offset, - uint16_t ethtype); - /* Reset parser metadata for a new parse */ void packet_parse_reset(odp_packet_hdr_t *pkt_hdr); diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c index 83a880947..a0bc8911a 100644 --- a/platform/linux-generic/odp_packet.c +++ b/platform/linux-generic/odp_packet.c @@ -2312,22 +2312,6 @@ int packet_parse_layer(odp_packet_hdr_t *pkt_hdr, seg_len, layer); } -int packet_parse_l3_l4(odp_packet_hdr_t *pkt_hdr, - odp_proto_layer_t layer, - uint32_t l3_offset, - uint16_t ethtype) -{ - uint32_t seg_len = 0; - void *base = packet_map(pkt_hdr, l3_offset, &seg_len, NULL); - - if (seg_len == 0) - return -1; - - return packet_parse_common_l3_l4(&pkt_hdr->p, base, l3_offset, - pkt_hdr->frame_len, seg_len, - layer, ethtype); -} - int odp_packet_parse(odp_packet_t pkt, uint32_t offset, const odp_packet_parse_param_t *param) {