From patchwork Tue Aug 8 15:00:11 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: 109666 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp3063843qge; Tue, 8 Aug 2017 08:02:24 -0700 (PDT) X-Received: by 10.55.165.9 with SMTP id o9mr6076080qke.346.1502204544286; Tue, 08 Aug 2017 08:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502204544; cv=none; d=google.com; s=arc-20160816; b=SUKKvpK82PrdsLRs0Leyd2V8rBg9eyXKc2coIJ9leD90EJ8dECNWnINJ/2jQow6HKD 6bJbAZQmWL2xmvmFT5nFm/QPckK3jXptjlQIanKQpoXgQEoNqtJJ/oacHsUP+su0Fft0 7YtFJZnNXjU1lfVINPNILEoV6n/l531e3zvpNAvTyCyNVKougf/nAW9nT7BJjfdCKBXY J8Kmdst3j6GjwtK2i4c+cMbgXPZnIFUbF2/D6t4pa68IB3+rxlFwEZ+mzCqJIcQFXv3C v5lclRHqKEMQrGvQKlpjvu6ImlMM1+wtc3p2y2VMq0H4F2spWTdGeKBIBmlOLLzeELKh SIUQ== 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=oxXmQ+BSqc29n+Ak7CGNeVQiQM/UOhYktijzxtXx0Wk=; b=PFD4IosvX9o0nsnnPWVQufDpUO4X4WrMmSp9MFxAPzmQtbnc2z3lWXugOQLookykBz NxGTC9kJJGm06AYxtrzKYCNN5RxSp+rdZtaRDkZrpTiZWoZCgEzSBUlgjmPNPeyNLOdC LvoDbQy2rzIAzMgVcfx+EXUiXHhTqPbgs/+sqh3VP/7fTin32yvqEa+4zd6anUnJjOkr 0bFpVRJrcBAjTtGwf3m2hTfDHoAp9iVDf+TeXqZcMR1o8AoyDADREd/z4SR7tw8pIU3Y 2V5TPDkP7yAhi9lOpESGLynvVbX7GFGYxcjkKEaIkkWaSLrM32OMhP6FvLD+YD5VbXW/ 1yTg== 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 v126si1208600qkc.268.2017.08.08.08.02.23; Tue, 08 Aug 2017 08:02:24 -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 A7DDE60CD7; Tue, 8 Aug 2017 15:02:23 +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,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 7837160BF4; Tue, 8 Aug 2017 15:01:12 +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 5016560C5E; Tue, 8 Aug 2017 15:01:07 +0000 (UTC) Received: from forward18o.cmail.yandex.net (forward18o.cmail.yandex.net [37.9.109.216]) by lists.linaro.org (Postfix) with ESMTPS id CE08260BF7 for ; Tue, 8 Aug 2017 15:00:31 +0000 (UTC) Received: from mxback9j.mail.yandex.net (mxback9j.mail.yandex.net [IPv6:2a02:6b8:0:1619::112]) by forward18o.cmail.yandex.net (Yandex) with ESMTP id 4A2602421C for ; Tue, 8 Aug 2017 18:00:30 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback9j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id HcIPCjGFKr-0UgOTENY; Tue, 08 Aug 2017 18:00:30 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id xzJc556BXh-0T1OQQFq; Tue, 08 Aug 2017 18:00:29 +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, 8 Aug 2017 18:00:11 +0300 Message-Id: <1502204414-3697-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502204414-3697-1-git-send-email-odpbot@yandex.ru> References: <1502204414-3697-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v2 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: e420668cd3886f003c8bd6022e210bf08a0ee3b5 ** Merge commit sha: 3c45ed0f11246bba34da1ea38de6e2ffc9435299 **/ platform/linux-generic/include/odp_classification_internal.h | 7 ------- platform/linux-generic/odp_classification.c | 8 ++++++++ 2 files changed, 8 insertions(+), 7 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..8f16c8ef 100644 --- a/platform/linux-generic/odp_classification.c +++ b/platform/linux-generic/odp_classification.c @@ -33,6 +33,7 @@ static cos_tbl_t *cos_tbl; static pmr_tbl_t *pmr_tbl; static _cls_queue_grp_tbl_t *queue_grp_tbl; +static const rss_key default_rss = { .u8 = { 0x6d, 0x5a, 0x56, 0xda, 0x25, 0x5b, 0x0e, 0xc2, @@ -191,6 +192,7 @@ int odp_cls_capability(odp_cls_capability_t *capability) return 0; } +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 || @@ -934,6 +936,11 @@ 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,6 +996,7 @@ int cls_classify_packet(pktio_entry_t *entry, const uint8_t *base, return 0; } +static uint32_t packet_rss_hash(odp_packet_hdr_t *pkt_hdr, odp_cls_hash_proto_t hash_proto, const uint8_t *base)