From patchwork Tue Aug 8 20:00:06 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: 109673 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp3413077qge; Tue, 8 Aug 2017 13:01:09 -0700 (PDT) X-Received: by 10.237.58.38 with SMTP id n35mr7502715qte.61.1502222469762; Tue, 08 Aug 2017 13:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502222469; cv=none; d=google.com; s=arc-20160816; b=xa5klafZ3X5Rry8S1H80a5zrcDeqhhLLLmDYBER1agMVmAFXy4qTHf1PuOEXmdC1z2 oxhyT4j2HL+SjsyXfXDbe3fKB9XnocP4Ke4V+5UkrK/mTitJN9dRDvPQ4GWDmLRGMI+m juOOPFHOTYBzaN51gRXKBp5W01N8QdBzbI8L40hdNrsuLNvwBzkizGoKnby2vQBjcovR BEFoflmXLMJgisZZT132Z8zJGPdcQhjoxrLfIcMlsCVfY2KsXsiH7hJhKgP+mkGaEn7t C54e7S7aznLxyTEcsd+DmQYo/yHWboiN+rvwiNsJIftxTdAroZHNzmpCg0d47MrHt8dm pGlw== 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=87dwxJnczVZcfOhZVEAS6wUKOGVR0l155/pmKQjmBkM=; b=rEgwwGOr1voGqiR4HWXpQiiEfHdLV1cZBYaEj3urBA5/Usy+0cH/tb5VrH3FxJfaWp B1vmeWsOgJeNsi5MMiU4hPe0tJxMf4Yl8S3NKwXwGc1nnfDQBOqTk2v49YmQVB7c0rI+ guSfWGSAZV/Fv9OBem4tUZ+Y8MZYIHuT0i5upzPZhnue7O2xjBcDOXo/SP14QfCpySEp cOXYbcpNeuYF47S5mSUBbNccfaJ4UsE5MtDToOXyJ/QwDA1EYQs7yzpXZu/n5oJWsK5y PuHaccAQvU0UqcjNRsmPFjcoqE8eOphSsdBF/ZgFF0hsNgQVhIq82kHzK8jPpRISR2Eu RVQw== 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 f4si1648847qtc.303.2017.08.08.13.01.09; Tue, 08 Aug 2017 13:01:09 -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 60E2060CEE; Tue, 8 Aug 2017 20:01:09 +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 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 7288260BED; Tue, 8 Aug 2017 20: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 3A50360BF5; Tue, 8 Aug 2017 20:00:29 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id CAE52608CE for ; Tue, 8 Aug 2017 20:00:27 +0000 (UTC) Received: from mxback4o.mail.yandex.net (mxback4o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1e]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 733862180E45 for ; Tue, 8 Aug 2017 23:00:26 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback4o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id GFhQyR47Es-0Qs0w1U5; Tue, 08 Aug 2017 23:00:26 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 9BRJ8cTE2V-0PqSscTG; Tue, 08 Aug 2017 23:00:25 +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 23:00:06 +0300 Message-Id: <1502222409-9574-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502222409-9574-1-git-send-email-odpbot@yandex.ru> References: <1502222409-9574-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v3 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: 4ec4664e462d336f5b34b03ec598531c07ebf235 **/ .../linux-generic/include/odp_classification_internal.h | 7 ------- platform/linux-generic/odp_classification.c | 14 +++++++++----- 2 files changed, 9 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..af8b5862 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,7 @@ 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 +934,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 +993,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; From patchwork Tue Aug 8 20:00:07 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: 109675 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp3414514qge; Tue, 8 Aug 2017 13:02:15 -0700 (PDT) X-Received: by 10.55.118.71 with SMTP id r68mr3273572qkc.234.1502222535747; Tue, 08 Aug 2017 13:02:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502222535; cv=none; d=google.com; s=arc-20160816; b=xsvmV0FOkZWp/EcF/ZZL2eJAG9Jduyvm0pgZtpvBPTmatMTrkDmV4Wt2vj9CJ7dZXC b5JVzYJUucmlSQA8N9pR6NBaNZ/1T8Ju5ViNfUkKLRMN2xjV/aS4HORlyNsfHEfWQVDA wpFOY42aROBbCv520ZTZV9ZwcuB2vLqpiNfKQvkbAwUMBdixnuxp7dzQyJsMHa0t1cQh 8ha8QttITJ7uYd1cCwnsQug2UoJ4mLZTl7qoNEOnSbMOO5lgNw9nTov+pTkIMChSuCWa JZvN0nuYqpLMX8ojoBJ0gmmEL/KWRofZWwxbh4RTyc2rP4APkoa/jSRsZ7i6CvRtobb0 ZQxw== 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=MiMoH6qv26SPywxk+3Vx3uAKdpVOlfa8QC+lN/7rKdA=; b=lDQek0gyX5T2zgjmjIRnvHlSXEZgjYWwTclQzgN0ADtJK0vI8xPySyX+X7USrmgPPA RLjOB7hndJ2U1djpx/GFnsxzUD9SH9sCr0l39kIWOGp7NaxXIOcFl0GFcsfEdaRctBzj WqaBYwof7FxapLzu5uh1+Y/e8ft1VgEWSKlm2kXXfQrqXrr9FeUIfjQVWo69SAr5mHYC VwgDMe2Q76zkT4VAsNM2RwlKg5oeqwBPE1J+m8RBb7KfoAoXUdXHwAe3U9gax4nAKVO2 nrm40KXzsFwoiMxzN1KXdAfQqcnMukjWIuLoK+MqM80SgWQbIsp9DZya+dIx4fXpv3U0 6MIA== 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 g13si1672513qtg.545.2017.08.08.13.02.15; Tue, 08 Aug 2017 13:02:15 -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 5708E60C4B; Tue, 8 Aug 2017 20:02:15 +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 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 17A0860BF7; Tue, 8 Aug 2017 20:00:40 +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 D3E52608CE; Tue, 8 Aug 2017 20:00:30 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id 5ABE460A0E for ; Tue, 8 Aug 2017 20:00:28 +0000 (UTC) Received: from mxback4o.mail.yandex.net (mxback4o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1e]) by forward105j.mail.yandex.net (Yandex) with ESMTP id E4DB9180E26 for ; Tue, 8 Aug 2017 23:00:26 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback4o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id MYtKogXZqU-0QsOgDSS; Tue, 08 Aug 2017 23:00:26 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 9BRJ8cTE2V-0Qq0MISH; Tue, 08 Aug 2017 23:00:26 +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 23:00:07 +0300 Message-Id: <1502222409-9574-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502222409-9574-1-git-send-email-odpbot@yandex.ru> References: <1502222409-9574-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v3 2/4] linux-gen: scalable sched: mark several function 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: 4ec4664e462d336f5b34b03ec598531c07ebf235 **/ .../include/odp_schedule_scalable_ordered.h | 9 --------- .../linux-generic/odp_schedule_scalable_ordered.c | 19 ++++++++++--------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/platform/linux-generic/include/odp_schedule_scalable_ordered.h b/platform/linux-generic/include/odp_schedule_scalable_ordered.h index 941304b7..1c365a2b 100644 --- a/platform/linux-generic/include/odp_schedule_scalable_ordered.h +++ b/platform/linux-generic/include/odp_schedule_scalable_ordered.h @@ -115,17 +115,8 @@ reorder_window_t *rwin_alloc(_odp_ishm_pool_t *pool, unsigned lock_count); int rwin_free(_odp_ishm_pool_t *pool, reorder_window_t *rwin); bool rwin_reserve(reorder_window_t *rwin, uint32_t *sn); -void rwin_insert(reorder_window_t *rwin, - reorder_context_t *rctx, - uint32_t sn, - void (*callback)(reorder_context_t *)); void rctx_init(reorder_context_t *rctx, uint16_t idx, reorder_window_t *rwin, uint32_t sn); -void rctx_free(const reorder_context_t *rctx); -void olock_unlock(const reorder_context_t *rctx, reorder_window_t *rwin, - uint32_t lock_index); -void olock_release(const reorder_context_t *rctx); -void rctx_retire(reorder_context_t *first); void rctx_release(reorder_context_t *rctx); int rctx_save(queue_entry_t *queue, odp_buffer_hdr_t *buf_hdr[], int num); diff --git a/platform/linux-generic/odp_schedule_scalable_ordered.c b/platform/linux-generic/odp_schedule_scalable_ordered.c index 90ddb61c..e4468a90 100644 --- a/platform/linux-generic/odp_schedule_scalable_ordered.c +++ b/platform/linux-generic/odp_schedule_scalable_ordered.c @@ -71,10 +71,10 @@ bool rwin_reserve(reorder_window_t *rwin, uint32_t *sn) return true; } -void rwin_insert(reorder_window_t *rwin, - reorder_context_t *rctx, - uint32_t sn, - void (*callback)(reorder_context_t *)) +static void rwin_insert(reorder_window_t *rwin, + reorder_context_t *rctx, + uint32_t sn, + void (*callback)(reorder_context_t *)) { /* Initialise to silence scan-build */ hc_t old = {0, 0}; @@ -172,7 +172,7 @@ void rctx_init(reorder_context_t *rctx, uint16_t idx, rctx->numevts = 0; } -inline void rctx_free(const reorder_context_t *rctx) +static inline void rctx_free(const reorder_context_t *rctx) { const reorder_context_t *const base = &rctx[-(int)rctx->idx]; const uint32_t first = rctx->idx; @@ -206,8 +206,9 @@ inline void rctx_free(const reorder_context_t *rctx) } } -inline void olock_unlock(const reorder_context_t *rctx, reorder_window_t *rwin, - uint32_t lock_index) +static inline void olock_unlock(const reorder_context_t *rctx, + reorder_window_t *rwin, + uint32_t lock_index) { if ((rctx->olock_flags & (1U << lock_index)) == 0) { /* Use relaxed ordering, we are not releasing any updates */ @@ -215,7 +216,7 @@ inline void olock_unlock(const reorder_context_t *rctx, reorder_window_t *rwin, } } -void olock_release(const reorder_context_t *rctx) +static void olock_release(const reorder_context_t *rctx) { reorder_window_t *rwin; int i; @@ -246,7 +247,7 @@ static void blocking_enqueue(queue_entry_t *q, odp_buffer_hdr_t **evts, int num) } } -void rctx_retire(reorder_context_t *first) +static void rctx_retire(reorder_context_t *first) { reorder_context_t *rctx; queue_entry_t *q; From patchwork Tue Aug 8 20:00:08 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: 109674 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp3413747qge; Tue, 8 Aug 2017 13:01:39 -0700 (PDT) X-Received: by 10.200.39.130 with SMTP id w2mr6930354qtw.244.1502222498953; Tue, 08 Aug 2017 13:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502222498; cv=none; d=google.com; s=arc-20160816; b=aTSBeGEG6fSbWpID1CfCmD4sE8n1kM0odsWXqUX/HgsnVgh7ltQjX/T4WgBK7gzcZC B3YHbCZchmxv8r9P4Xjro7RhNwbAtPMOGLRtFTap74SBfRKFgGByGaAVyUscnFZZ8l6T aZZ5fMiQqD3OTXfsYyT0YAh98afNPKgbD+OuQM8Wo70/4I08TxcKKTxGwg+nAaH68HYt +YfF3e+D6OR43tmaIw0X51GkgUTA4JLbfCiQpTsEF118mU6ZqTrcsgyvE2mzOAOUqVji t8X7U6hewNLPCta4MDqa9fGGs3lANy4xckjGqGTDSkUhoukV7BMGnkcOll0dEjHIj9Dr RclQ== 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=LWfRBhIRT/bYe3/mTSOyf9K5V+ax6OQ1iv0tV1sEwzg=; b=LXlj65xGUkVjy2akfJ5pQTSe1I+brRDAXFKjVW/lCFn0D+7ypRuJtdmQ1ojLr3jfKJ oYfkJbfzcdkMBQzgi9S9hN20cZDy6y4kNtS19yOSoDX+BX2d8RQzqz1ZQ6C9XxlC/WRe n9buLo8XxEZUrUQ60RPRlAqW/Dmi7mzrCEqrRtG95D6Mzu7jrWk5e87zthEFcDlnlTHs n2Ek1gN/DoQDab/OgOWmNIqeA8NPTfOvJq1cDdRKbs0OHH7tPdHC7+CIU1CmvfhV85Sy ejMGMIv5Ks5B3MiFh1tFU6RxD3+IO4yS/3ylANv5QwbwS+560YaFXqhh7BJw9iiqaSK2 Pjeg== 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 5si1599114qke.453.2017.08.08.13.01.38; Tue, 08 Aug 2017 13:01:38 -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 8A96D60C6A; Tue, 8 Aug 2017 20:01:38 +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 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 BBED660C09; Tue, 8 Aug 2017 20:00:36 +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 8AB1C60BED; Tue, 8 Aug 2017 20:00:30 +0000 (UTC) Received: from forward101p.mail.yandex.net (forward101p.mail.yandex.net [77.88.28.101]) by lists.linaro.org (Postfix) with ESMTPS id A172B60688 for ; Tue, 8 Aug 2017 20:00:28 +0000 (UTC) Received: from mxback9o.mail.yandex.net (mxback9o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::23]) by forward101p.mail.yandex.net (Yandex) with ESMTP id 417F16A82F52 for ; Tue, 8 Aug 2017 23:00:27 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback9o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id JfotiIZF9Z-0RMeNut4; Tue, 08 Aug 2017 23:00:27 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 9BRJ8cTE2V-0QqGEvYh; Tue, 08 Aug 2017 23:00:26 +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 23:00:08 +0300 Message-Id: <1502222409-9574-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502222409-9574-1-git-send-email-odpbot@yandex.ru> References: <1502222409-9574-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v3 3/4] linux-gen: scalable sched: mark sched_grp_lock 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: 4ec4664e462d336f5b34b03ec598531c07ebf235 **/ platform/linux-generic/odp_schedule_scalable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_schedule_scalable.c b/platform/linux-generic/odp_schedule_scalable.c index 78159b53..a289a7d7 100644 --- a/platform/linux-generic/odp_schedule_scalable.c +++ b/platform/linux-generic/odp_schedule_scalable.c @@ -87,7 +87,7 @@ ODP_STATIC_ASSERT(CHECK_IS_POWER2(ODP_CONFIG_QUEUES), static sched_group_mask_t sg_free; static sched_group_t *sg_vec[MAX_SCHED_GROUP]; /* Group lock for MT-safe APIs */ -odp_spinlock_t sched_grp_lock; +static odp_spinlock_t sched_grp_lock; #define SCHED_GROUP_JOIN 0 #define SCHED_GROUP_LEAVE 1 From patchwork Tue Aug 8 20:00:09 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: 109676 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp3415386qge; Tue, 8 Aug 2017 13:02:53 -0700 (PDT) X-Received: by 10.200.36.232 with SMTP id t37mr7857836qtt.273.1502222573749; Tue, 08 Aug 2017 13:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502222573; cv=none; d=google.com; s=arc-20160816; b=E1ANDPr4P+HCB4J8EWVDtUcTU9iyKpmEvQrm4O99WZjacalRjpAhmrYRyk0DKBKq7c NBGpbkevmNE54JpnKZsE90W8Kp8yWjW0twU78QIDoJFs8P6icDYTV/Fa87ZbCqtWvObV wcJs2F34Q9ox1IwDd571JIK+9Fuu8HgQo/onqjsJK8pqv+VwQ+3EBUtvfkncG1X9fGpa ZMbP4b90K39oXvlmC+LVHMMZ79kHtR6MFE5TV2rL5VSe5QGOEWxBCa1YHByXoSZrs9uL KtAguTvEiRX4KUeMhngjvJ1VG6X0cJU/DqhG777N9+dTGiwzomStP4+PEcf65af2lfQ2 SUJQ== 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=Qk7V6NR0V0jUVDU03HQR1o7vwPT2329/eb4i7gVD2GM=; b=BNrBfA/NkBTL4Wgc9gMpIvbPULBL/aImkGgkI0FjN7j5jutOzJ932RymMc83mi0/4i aYzuDhxl1gvp9Sb0vFlUME6B+bYXKEI2fGVFH6uBesPZQ3ch2mg2R0oFuRTJwP5nxzkY 7t3olvjfPp8x9asUUj9Ph5z1peohwYeTDdMk+ED6JAljQwjALzCFSftDfI/JNhUGx5k7 wDTXz2fkgDf/dpCHODyO+jNSR8qLYonZ82jDFN8btOmqYmo6Y96PV53h21hCFc/eJ3Ah plp9gUaW8WdZKWvhvowHOGhbjLtb1+E+/JKoWvI4tyUJfV8wz8KBEduwKvLlLhg4xPty j3vg== 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 j14si1638953qtj.553.2017.08.08.13.02.53; Tue, 08 Aug 2017 13:02:53 -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 3B28F60C1E; Tue, 8 Aug 2017 20:02:53 +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 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 5EDF860CE0; Tue, 8 Aug 2017 20:00:42 +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 1D140608CE; Tue, 8 Aug 2017 20:00:31 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id EF96F60B05 for ; Tue, 8 Aug 2017 20:00:28 +0000 (UTC) Received: from mxback5o.mail.yandex.net (mxback5o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1f]) by forward105p.mail.yandex.net (Yandex) with ESMTP id A628D4080E09 for ; Tue, 8 Aug 2017 23:00:27 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback5o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id HELH0Qt471-0RA4s6aQ; Tue, 08 Aug 2017 23:00:27 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 9BRJ8cTE2V-0Rq4kCoB; Tue, 08 Aug 2017 23:00:27 +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 23:00:09 +0300 Message-Id: <1502222409-9574-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502222409-9574-1-git-send-email-odpbot@yandex.ru> References: <1502222409-9574-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v3 4/4] linux-gen: scalable queue: mark queue_shm_pool 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: 4ec4664e462d336f5b34b03ec598531c07ebf235 **/ platform/linux-generic/odp_queue_scalable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_queue_scalable.c b/platform/linux-generic/odp_queue_scalable.c index 503b40f5..79148060 100644 --- a/platform/linux-generic/odp_queue_scalable.c +++ b/platform/linux-generic/odp_queue_scalable.c @@ -49,7 +49,7 @@ typedef struct queue_table_t { } queue_table_t; static queue_table_t *queue_tbl; -_odp_ishm_pool_t *queue_shm_pool; +static _odp_ishm_pool_t *queue_shm_pool; static inline odp_queue_t queue_from_id(uint32_t queue_id) {