From patchwork Tue Aug 15 05:00:13 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: 110083 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp5228758qge; Mon, 14 Aug 2017 22:06:19 -0700 (PDT) X-Received: by 10.237.34.204 with SMTP id q12mr34620920qtc.292.1502773579322; Mon, 14 Aug 2017 22:06:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502773579; cv=none; d=google.com; s=arc-20160816; b=f7LEedm3D5KbtVroW5xO8jnqT48qJvAeQ32YePZYrkfSH6O2QX9qJmlxYfSJbMGi0+ 8j34Iv0OeVz8idAWASi544m4ZuYI87jET5oqCORjlZDgX8WZFsBRcNd3Nd9tSn8dwEL5 pEkmretmo3dlPFibBBo80s5WcuHR9fWYwAp1rBwJrWdoXbdg5PYsfOZ7hBkh/DEcg6zA znDiYfYfqCDYVLw41tdftIiuoyQ2hrAa/46/D6iiPSgln+BZcVypsRQrrH3FfUkTGUIR 3m5Z7GiaKbX8QbG/D+Iy8AOoN1B+144e0Wwiw7M/q2t+4YBEh5slRymy/9PI8uCkggBp dCng== 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=9+YkDEB2FbUOaj4fna2MyXQubX1tLgIMAUJoQcGKJJ0=; b=e7h60QFwK+S8sMUhoEATpz5cAxK0u3BKRVtL8WFyA93s/0vYfZH5v99gCTulpXasmk ZvRsK26u2QoNd4DtKFcRvdNHlnMZXuTAb5LNosocqJIFBpBCXohbs4x4T7pbzG1ftSaF WqW/yuf4juF9ALXWVPOuSMs+3FUiYCdqGrxeYuVKmB5F8ayHbcYvU8FU2UrqCTiIiLRT LzUk2B2Cr5ZkX5PhBjhhis8kq39sbI3rXLu2FijG4IkpRAHnRJm4oCjPWId5AarXecWe ZUi+wYFTQgCBAUKCtcRPGhO5Xzr1fdzj8Voexq0CF2GmsFJ7Gu2StnTZUOLUt4WNY/2V EMWQ== 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 x10si8125727qta.192.2017.08.14.22.06.19; Mon, 14 Aug 2017 22:06:19 -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 0A0AC62C49; Tue, 15 Aug 2017 05:06:19 +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, 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 143D765BF8; Tue, 15 Aug 2017 05:01:44 +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 B549F644DD; Tue, 15 Aug 2017 05:01:37 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id 6F62E644DD for ; Tue, 15 Aug 2017 05:00:35 +0000 (UTC) Received: from mxback2o.mail.yandex.net (mxback2o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1c]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 31F584082437 for ; Tue, 15 Aug 2017 08:00:34 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback2o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id u4Hu9cQwf0-0YSStlLk; Tue, 15 Aug 2017 08:00:34 +0300 Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id uAoPgDfmtd-0X8SgmFo; Tue, 15 Aug 2017 08:00:33 +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 08:00:13 +0300 Message-Id: <1502773216-31620-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502773216-31620-1-git-send-email-odpbot@yandex.ru> References: <1502773216-31620-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v4 1/4] linux-gen: classification: mark several functions as static 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 Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 108 (lumag:symbols-cleanup) ** https://github.com/Linaro/odp/pull/108 ** Patch: https://github.com/Linaro/odp/pull/108.patch ** Base sha: 3547226b19e6982bf74fc8c258b89db2c5f6a39c ** Merge commit sha: 96b4b72d57a270b2b7ac6609852c867ee2de5a1b **/ .../linux-generic/include/odp_classification_internal.h | 7 ------- platform/linux-generic/odp_classification.c | 15 ++++++++++----- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/platform/linux-generic/include/odp_classification_internal.h b/platform/linux-generic/include/odp_classification_internal.h index 208b0f5b..8882a717 100644 --- a/platform/linux-generic/include/odp_classification_internal.h +++ b/platform/linux-generic/include/odp_classification_internal.h @@ -49,13 +49,6 @@ This function should be called during pktio initialization. **/ int pktio_classifier_init(pktio_entry_t *pktio); -void _odp_cls_update_hash_proto(cos_t *cos, - odp_pktin_hash_proto_t hash_proto); - -uint32_t packet_rss_hash(odp_packet_hdr_t *pkt_hdr, - odp_cls_hash_proto_t hash_proto, - const uint8_t *base); - #ifdef __cplusplus } #endif diff --git a/platform/linux-generic/odp_classification.c b/platform/linux-generic/odp_classification.c index f9a82a2e..a785c604 100644 --- a/platform/linux-generic/odp_classification.c +++ b/platform/linux-generic/odp_classification.c @@ -33,7 +33,7 @@ static cos_tbl_t *cos_tbl; static pmr_tbl_t *pmr_tbl; static _cls_queue_grp_tbl_t *queue_grp_tbl; -const rss_key default_rss = { +static const rss_key default_rss = { .u8 = { 0x6d, 0x5a, 0x56, 0xda, 0x25, 0x5b, 0x0e, 0xc2, 0x41, 0x67, 0x25, 0x3d, 0x43, 0xa3, 0x8f, 0xb0, @@ -191,7 +191,8 @@ int odp_cls_capability(odp_cls_capability_t *capability) return 0; } -void _odp_cls_update_hash_proto(cos_t *cos, odp_pktin_hash_proto_t hash_proto) +static void _odp_cls_update_hash_proto(cos_t *cos, + odp_pktin_hash_proto_t hash_proto) { if (hash_proto.proto.ipv4 || hash_proto.proto.ipv4_tcp || hash_proto.proto.ipv4_udp) @@ -934,6 +935,10 @@ static inline cos_t *cls_select_cos(pktio_entry_t *entry, return cls->default_cos; } +static uint32_t packet_rss_hash(odp_packet_hdr_t *pkt_hdr, + odp_cls_hash_proto_t hash_proto, + const uint8_t *base); + /** * Classify packet * @@ -989,9 +994,9 @@ int cls_classify_packet(pktio_entry_t *entry, const uint8_t *base, return 0; } -uint32_t packet_rss_hash(odp_packet_hdr_t *pkt_hdr, - odp_cls_hash_proto_t hash_proto, - const uint8_t *base) +static uint32_t packet_rss_hash(odp_packet_hdr_t *pkt_hdr, + odp_cls_hash_proto_t hash_proto, + const uint8_t *base) { thash_tuple_t tuple; const _odp_ipv4hdr_t *ipv4;