From patchwork Fri Aug 4 08:59:56 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: 109374 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1878119qge; Fri, 4 Aug 2017 02:00:37 -0700 (PDT) X-Received: by 10.237.36.107 with SMTP id s40mr2278917qtc.137.1501837237002; Fri, 04 Aug 2017 02:00:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501837236; cv=none; d=google.com; s=arc-20160816; b=FxznX8w8GtCuaUeUAWbN76Qitwmwueosc7vs59QCxc71Q8PFFVXvZnettR5cRHeqdC Xv91IsdjpJFBwbm64XtGmlSKp2ijMdBrX139FFBfe1Rn1O28JAspgxJBpThayTDuWsrn PysVmiE77nK89vbjPZZQFHRy/yStMUSi9amWdFkaW26xiq2JNWcM8ZJmSXLYokscPwus b2wUGxNmv/DrcKEAxqf2Rftt1262mIevhAjMwNv0MUlLsRgj+JoxmmlNVj010RF4RtBs o3tYWqrIvuSVHYgkLOjWCdfbdRtASePWdkQxdtTgmPb7yWqZ89xRTT86QpbZkruMDXzv WGAg== 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=p6yKcqfO9P3ZaBVohdrdoj1uVwXiy7/7pyOPoXGcumU=; b=QXvsBcH2MhOi3sp8MdN7TJaViA/nR/N8nHlRpIXYEGKryyNXraVwVsfnJKMekZKXY7 H2TvINypYXOG8dgS253mbAIC3kk8RwLx3bErx7w9xG6MGdDhCYA9lkygxCNQeXCQT+K7 KKyR/6rTtYJq6lv/LTRtxaEucZvyFBJqtf2szHQZcbDlydipyPXkdMXz9/DE/ZS7cCVx IwV+3jYtu+2THZ90sG1pSuJdqc1kBaQr3w1CD7RMaR2tTlemkHsyWI/XxWg0PpD86j1A RC/4urPh8zeqM4X1baVw4g54UT6nlypxI+YFMwQVrZq5EC7rOobFceg89Jlfi0y+y/IB NxDQ== 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 s43si1084561qta.415.2017.08.04.02.00.36; Fri, 04 Aug 2017 02:00:36 -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 F24B864450; Fri, 4 Aug 2017 09:00:35 +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 0BA3062ED2; Fri, 4 Aug 2017 09:00:32 +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 6843762ECD; Fri, 4 Aug 2017 09:00:28 +0000 (UTC) Received: from forward4p.cmail.yandex.net (forward4p.cmail.yandex.net [77.88.31.19]) by lists.linaro.org (Postfix) with ESMTPS id BE43A62ECD for ; Fri, 4 Aug 2017 09:00:26 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::25]) by forward4p.cmail.yandex.net (Yandex) with ESMTP id 4C9C720EF2 for ; Fri, 4 Aug 2017 12:00:24 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id BFDCF1300E47 for ; Fri, 4 Aug 2017 12:00:20 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kkQJPUXR1g-0GG8LXWk; Fri, 04 Aug 2017 12:00:16 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 4 Aug 2017 11:59:56 +0300 Message-Id: <1501837208-7450-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> References: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v1 1/13] linux-gen: hide get_qentry 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 Replace two last index->qentry lookups with pointers to quentry, thus making it possible to make get_qentry static in odp_queue.c 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: 8390f890d4bd2babb63a24f7b15d2f4763e44050 ** Merge commit sha: 44fd671a0d2772a32395c7f0574aa545d2a9aa71 **/ platform/linux-generic/include/odp_queue_internal.h | 2 -- platform/linux-generic/odp_queue.c | 4 ++++ platform/linux-generic/odp_schedule.c | 8 +++----- platform/linux-generic/odp_schedule_iquery.c | 8 +++----- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/platform/linux-generic/include/odp_queue_internal.h b/platform/linux-generic/include/odp_queue_internal.h index 032dde88..c5ff1e7d 100644 --- a/platform/linux-generic/include/odp_queue_internal.h +++ b/platform/linux-generic/include/odp_queue_internal.h @@ -61,8 +61,6 @@ union queue_entry_u { uint8_t pad[ROUNDUP_CACHE_LINE(sizeof(struct queue_entry_s))]; }; -queue_entry_t *get_qentry(uint32_t queue_id); - void queue_lock(queue_entry_t *queue); void queue_unlock(queue_entry_t *queue); diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c index 904c9ef2..e2f8c067 100644 --- a/platform/linux-generic/odp_queue.c +++ b/platform/linux-generic/odp_queue.c @@ -43,6 +43,9 @@ typedef struct queue_table_t { static queue_table_t *queue_tbl; +static +queue_entry_t *get_qentry(uint32_t queue_id); + static inline queue_entry_t *handle_to_qentry(odp_queue_t handle) { uint32_t queue_id; @@ -56,6 +59,7 @@ static inline odp_queue_t queue_from_id(uint32_t queue_id) return _odp_cast_scalar(odp_queue_t, queue_id + 1); } +static queue_entry_t *get_qentry(uint32_t queue_id) { return &queue_tbl->queue[queue_id]; diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c index 8af27673..f52ef28c 100644 --- a/platform/linux-generic/odp_schedule.c +++ b/platform/linux-generic/odp_schedule.c @@ -130,7 +130,7 @@ ODP_STATIC_ASSERT((8 * sizeof(pri_mask_t)) >= QUEUES_PER_PRIO, /* Storage for stashed enqueue operation arguments */ typedef struct { odp_buffer_hdr_t *buf_hdr[QUEUE_MULTI_MAX]; - uint32_t queue_index; + queue_entry_t *queue_entry; int num; } ordered_stash_t; @@ -682,12 +682,10 @@ static inline void ordered_stash_release(void) for (i = 0; i < sched_local.ordered.stash_num; i++) { queue_entry_t *queue_entry; - uint32_t queue_index; odp_buffer_hdr_t **buf_hdr; int num; - queue_index = sched_local.ordered.stash[i].queue_index; - queue_entry = get_qentry(queue_index); + queue_entry = sched_local.ordered.stash[i].queue_entry; buf_hdr = sched_local.ordered.stash[i].buf_hdr; num = sched_local.ordered.stash[i].num; @@ -788,7 +786,7 @@ static int schedule_ord_enq_multi(queue_t q_int, void *buf_hdr[], return 0; } - sched_local.ordered.stash[stash_num].queue_index = dst_queue->s.index; + sched_local.ordered.stash[stash_num].queue_entry = dst_queue; sched_local.ordered.stash[stash_num].num = num; for (i = 0; i < num; i++) sched_local.ordered.stash[stash_num].buf_hdr[i] = buf_hdr[i]; diff --git a/platform/linux-generic/odp_schedule_iquery.c b/platform/linux-generic/odp_schedule_iquery.c index 44a725ab..23e36c9a 100644 --- a/platform/linux-generic/odp_schedule_iquery.c +++ b/platform/linux-generic/odp_schedule_iquery.c @@ -174,7 +174,7 @@ typedef struct { /* Storage for stashed enqueue operation arguments */ typedef struct { odp_buffer_hdr_t *buf_hdr[QUEUE_MULTI_MAX]; - uint32_t queue_index; + queue_entry_t *queue_entry; int num; } ordered_stash_t; @@ -1133,12 +1133,10 @@ static inline void ordered_stash_release(void) for (i = 0; i < thread_local.ordered.stash_num; i++) { queue_entry_t *queue_entry; - uint32_t queue_index; odp_buffer_hdr_t **buf_hdr; int num; - queue_index = thread_local.ordered.stash[i].queue_index; - queue_entry = get_qentry(queue_index); + queue_entry = thread_local.ordered.stash[i].queue_entry; buf_hdr = thread_local.ordered.stash[i].buf_hdr; num = thread_local.ordered.stash[i].num; @@ -1225,7 +1223,7 @@ static int schedule_ord_enq_multi(queue_t q_int, void *buf_hdr[], return 0; } - thread_local.ordered.stash[stash_num].queue_index = dst_queue->s.index; + thread_local.ordered.stash[stash_num].queue_entry = dst_queue; thread_local.ordered.stash[stash_num].num = num; for (i = 0; i < num; i++) thread_local.ordered.stash[stash_num].buf_hdr[i] = buf_hdr[i]; From patchwork Fri Aug 4 08:59:57 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: 109378 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1883280qge; Fri, 4 Aug 2017 02:05:33 -0700 (PDT) X-Received: by 10.55.133.195 with SMTP id h186mr1913143qkd.21.1501837533674; Fri, 04 Aug 2017 02:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501837533; cv=none; d=google.com; s=arc-20160816; b=oslL7jSFyCTB9WQQbkbyR5Ikklh8qVMdphOdyqB6qRePnq0mHZ2f5ndxc1pUW4aVns 6iuXg7QyuYmxbRi+DB5vN5cvuxyUdjwjMmE1N/HPr8K4yOaGTQY1RDDDPjTiHOT+t5x1 s5qLk7SoMeGDUQaqtTEjrV2IDPwQWF/PYgaRXkN7rFERyrMG94dc6B5SLlB+zsYweuQr Iak/3HKtJAS+/PNndA0jWBdnh9LJLpAR02+iNV1/2kCDFbHerm24rXSfpqiGru0wid2q kbmogkFj2F8+cM6NmpfClBY0kg05k91P56kIsYBZkrOfn1c/aoQlHaA6w3NvaSF1TsI+ jB7Q== 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=1d3QEsEShQJpxJaUrV4VeygGh8WQGOLwL/Kx6mfpgIE=; b=MfyuZFBK/3c13s4Z2PWZSTnbuMSi9lsc4FhVKdAAJ8xOI9Kdp2+1TdewRKH/hN05fU ULXvN3IYgdzDVYmN/tSWgjKgce/kuoskJ5F0VHOxd7PveOVXKIXxpZgCXhQ8grgAgydZ a6NtZRwJwVGW+kVoO+T9UuJZ0rVIrIqtEwEU7yNnYgxgMOOMRpVDNKsrxrCCGU7i6xIp Qhqwz8grq/dsP9CcxOF6aPL/MAwn9dRhXA2Sur+Jn5XhwhwffrFpiOxHbqJRDKFp6+GD RpKZX4kzlOzgQ+mfYviAtHvaBu7XNlsfYMYZGYQMjuP+h/dVnPRYW5GykYjnkmmfImoN bRjQ== 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 p32si1222322qtc.500.2017.08.04.02.05.33; Fri, 04 Aug 2017 02:05:33 -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 38D74644C2; Fri, 4 Aug 2017 09:05:33 +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 15CC062C7E; Fri, 4 Aug 2017 09:02:20 +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 A39F0644E1; Fri, 4 Aug 2017 09:02:17 +0000 (UTC) Received: from forward3m.cmail.yandex.net (forward3m.cmail.yandex.net [5.255.216.21]) by lists.linaro.org (Postfix) with ESMTPS id 2B29462C7E for ; Fri, 4 Aug 2017 09:00:45 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [37.140.190.26]) by forward3m.cmail.yandex.net (Yandex) with ESMTP id D970920F4D for ; Fri, 4 Aug 2017 12:00:43 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id 405BE1300E52 for ; Fri, 4 Aug 2017 12:00:22 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kkQJPUXR1g-0LG4E86E; Fri, 04 Aug 2017 12:00:21 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 4 Aug 2017 11:59:57 +0300 Message-Id: <1501837208-7450-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> References: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v1 2/13] linux-gen: pool: drop two unused functions 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: 8390f890d4bd2babb63a24f7b15d2f4763e44050 ** Merge commit sha: 44fd671a0d2772a32395c7f0574aa545d2a9aa71 **/ platform/linux-generic/include/odp_buffer_internal.h | 4 ---- platform/linux-generic/odp_pool.c | 13 ------------- 2 files changed, 17 deletions(-) diff --git a/platform/linux-generic/include/odp_buffer_internal.h b/platform/linux-generic/include/odp_buffer_internal.h index 7eb0cdf9..873822af 100644 --- a/platform/linux-generic/include/odp_buffer_internal.h +++ b/platform/linux-generic/include/odp_buffer_internal.h @@ -110,10 +110,6 @@ ODP_STATIC_ASSERT(CONFIG_PACKET_MAX_SEGS < 256, ODP_STATIC_ASSERT(BUFFER_BURST_SIZE < 256, "BUFFER_BURST_SIZE_TOO_LARGE"); -/* Forward declarations */ -int seg_alloc_tail(odp_buffer_hdr_t *buf_hdr, int segcount); -void seg_free_tail(odp_buffer_hdr_t *buf_hdr, int segcount); - #ifdef __cplusplus } #endif diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c index 3f7013b4..ade65c17 100644 --- a/platform/linux-generic/odp_pool.c +++ b/platform/linux-generic/odp_pool.c @@ -901,19 +901,6 @@ uint64_t odp_pool_to_u64(odp_pool_t hdl) return _odp_pri(hdl); } -int seg_alloc_tail(odp_buffer_hdr_t *buf_hdr, int segcount) -{ - (void)buf_hdr; - (void)segcount; - return 0; -} - -void seg_free_tail(odp_buffer_hdr_t *buf_hdr, int segcount) -{ - (void)buf_hdr; - (void)segcount; -} - int odp_buffer_is_valid(odp_buffer_t buf) { pool_t *pool; From patchwork Fri Aug 4 08:59:58 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: 109375 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1880047qge; Fri, 4 Aug 2017 02:02:21 -0700 (PDT) X-Received: by 10.237.39.142 with SMTP id a14mr2017505qtd.194.1501837341870; Fri, 04 Aug 2017 02:02:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501837341; cv=none; d=google.com; s=arc-20160816; b=dRUpT+xE73+wNaRbxD4T0qSxrEaUDynQxC48F9YAStKpEAfrT7GHOYSzwwLyxWkh76 1Ir+2IYHS4nWRwaIWnELsY0eVrRp/mODiPo7D0GTvd060f2DMr987Be9VRRuG3ZMaruS rfIeLbkB/ezQTtf6k/XDKPsHsgqO4bqlld5VZ7fAy1PZfPDGbO1+eJJ3xOASm4EMFTDA EnlwwqhnYb3V7V47DwWnsOQwl8hf898jmJw0T9CbwH4fkpDCnegqw9kql7MWSJFpXuHi MK/k+DarC9m+97tFosFUICYTe2xcwOvZEAIhgGUPs0TN8Ohcnvbo/MRfEnk7fIyPLo+B 4H1w== 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=hIQdVTk9PPlgV9V8JfEna4ORnEknej0fV4M0E56DBIg=; b=oh8Y2in5nnsE1ApXPxazMx+qyhSqlhwk35PSbHFH+BmuCP7Q/kWo1S1s1+vbQ3z0qK q2mOp/sNbO719L39ZRswzmugLgSS70g9+NZhMO+oQKwYmKCi/4bCkqM7Zz7+zdSSaZ9h AsMKNSZ8lThGPg/GDKnp5AaoLlBUdRhN7EqUnb4d5cv+WzwWPteM0NoOvBCQN0PQEzze BFFKvYgMsxFKwW77a394D+JVESuVLHPnuiTpfsSwBRYLEZ0LHtZnhKkope0OJWDkbx0i 1aChucqYNETuOaD7W4ncl8lTeZp1gs9DGgQ/+l9oSLPLyKNj8tnhKG17EW+rrqoAOU1v l9zg== 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 n13si1159147qti.20.2017.08.04.02.02.21; Fri, 04 Aug 2017 02:02:21 -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 682E5644E4; Fri, 4 Aug 2017 09:02:21 +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 C294C64450; Fri, 4 Aug 2017 09:00:47 +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 3887C64455; Fri, 4 Aug 2017 09:00:36 +0000 (UTC) Received: from forward3h.cmail.yandex.net (forward3h.cmail.yandex.net [87.250.230.18]) by lists.linaro.org (Postfix) with ESMTPS id 6724862ECD for ; Fri, 4 Aug 2017 09:00:29 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [37.140.190.26]) by forward3h.cmail.yandex.net (Yandex) with ESMTP id C857220CF3 for ; Fri, 4 Aug 2017 12:00:27 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id CF54F1300DD8 for ; Fri, 4 Aug 2017 12:00:24 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kkQJPUXR1g-0NGSVs6K; Fri, 04 Aug 2017 12:00:23 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 4 Aug 2017 11:59:58 +0300 Message-Id: <1501837208-7450-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> References: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v1 3/13] linux-gen: fdserver: mark client_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: 8390f890d4bd2babb63a24f7b15d2f4763e44050 ** Merge commit sha: 44fd671a0d2772a32395c7f0574aa545d2a9aa71 **/ platform/linux-generic/_fdserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/_fdserver.c b/platform/linux-generic/_fdserver.c index 4f74c614..d1b16f62 100644 --- a/platform/linux-generic/_fdserver.c +++ b/platform/linux-generic/_fdserver.c @@ -69,7 +69,7 @@ #endif /* when accessing the client functions, clients should be mutexed: */ -odp_spinlock_t *client_lock; +static odp_spinlock_t *client_lock; /* define the tables of file descriptors handled by this server: */ #define FDSERVER_MAX_ENTRIES 256 From patchwork Fri Aug 4 08:59:59 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: 109380 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1884438qge; Fri, 4 Aug 2017 02:06:45 -0700 (PDT) X-Received: by 10.55.42.104 with SMTP id q101mr1971456qkh.84.1501837605104; Fri, 04 Aug 2017 02:06:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501837605; cv=none; d=google.com; s=arc-20160816; b=siQBQ5vw7MyuGm9pnnnX1B8MJhagGse6GNmu6k4n78beg6U4c2YwdvtF+svyIxJWGD 9WZgAA0IBK8kDpVhKgu5f6rQJ7JOr9c46HpDFBbH9LxZBoxHjswTmdG5spnonf/0WYHG +rOwRpddrbh5EzFQ60hSSw3LH5O8W10/Uadc1w5G7LNz2dx7+5zsnAy0QI1qETn8+Q7R s5+0+A++LfJLRKiqfdKMWpvHdfqffNvy8dR3QmYJ6AksK/FZF74rMISTadT3l40KVNGm n2mufa7kc40M+nHOIO3TiFAUmEfT0DyF7UIpRUrsVjso0h5fTZLOQ6Ka5qAXX0lB3CYv sjcw== 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=3p0xFxP7jjyUOhJCQXkEMNhhW1QuINZs+awWCIani5M=; b=GIya/S9ddy7kNcxsiBkoJfUDsi6EHi7yGGWfyEehrFD49IqAg7GUCHHup5vnKubZBR lo1YK0x3n8r4hRMMku64vU4Kmtx9DrF+Vu0ry6c++pJ/2idgUp+HTkCfKQtz3V79NjBs G7Wb3Of5shc80lP5yAa31V9zeo1uYTwosVij5Rtghi3V8+7ba00zUibUzRTAfmLD+XOh dUcmh0m3eePE/t4L/bAfd8Dx0Uv6JWFfEEe3Fp2MFeikKpvL+j6Evb8ORg2XYSI8BddC BFFyPnJOFdpYZGKNRg8Hy/GlNTPCc2WUHa1vPgLatNkjTyysxSP6nRK2AioaNAczA5dn nk8A== 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 p188si1135031qkc.290.2017.08.04.02.06.44; Fri, 04 Aug 2017 02:06:45 -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 A1F91644C2; Fri, 4 Aug 2017 09:06:44 +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 542F164471; Fri, 4 Aug 2017 09:02: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 83B0B62D11; Fri, 4 Aug 2017 09:02:48 +0000 (UTC) Received: from forward2m.cmail.yandex.net (forward2m.cmail.yandex.net [5.255.216.20]) by lists.linaro.org (Postfix) with ESMTPS id 3477362D11 for ; Fri, 4 Aug 2017 09:00:45 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::25]) by forward2m.cmail.yandex.net (Yandex) with ESMTP id D5AFD2149A for ; Fri, 4 Aug 2017 12:00:43 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id 9BA1F1300D16 for ; Fri, 4 Aug 2017 12:00:26 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kkQJPUXR1g-0QGqaJcv; Fri, 04 Aug 2017 12:00:26 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 4 Aug 2017 11:59:59 +0300 Message-Id: <1501837208-7450-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> References: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v1 4/13] 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: 8390f890d4bd2babb63a24f7b15d2f4763e44050 ** Merge commit sha: 44fd671a0d2772a32395c7f0574aa545d2a9aa71 **/ .../include/odp_classification_internal.h | 84 ---------------------- platform/linux-generic/odp_classification.c | 38 ++++++++++ 2 files changed, 38 insertions(+), 84 deletions(-) diff --git a/platform/linux-generic/include/odp_classification_internal.h b/platform/linux-generic/include/odp_classification_internal.h index aca8e8c6..c8dba135 100644 --- a/platform/linux-generic/include/odp_classification_internal.h +++ b/platform/linux-generic/include/odp_classification_internal.h @@ -30,16 +30,6 @@ extern "C" { /** @internal -match_qos_cos - -Select a CoS for the given Packet based on QoS values -This function returns the COS object matching the L2 and L3 QoS -based on the l3_preference value of the pktio -**/ -cos_t *match_qos_cos(pktio_entry_t *entry, const uint8_t *pkt_addr, - odp_packet_hdr_t *hdr); -/** -@internal Packet Classifier @@ -59,39 +49,11 @@ This function should be called during pktio initialization. **/ int pktio_classifier_init(pktio_entry_t *pktio); -/** -@internal -match_pmr_cos - -Match a PMR chain with a Packet and return matching CoS -This function gets called recursively to check the chained PMR Term value -with the packet. - -**/ -cos_t *match_pmr_cos(cos_t *cos, const uint8_t *pkt_addr, pmr_t *pmr, - odp_packet_hdr_t *hdr); -/** -@internal -CoS associated with L3 QoS value - -This function returns the CoS associated with L3 QoS value -**/ -cos_t *match_qos_l3_cos(pmr_l3_cos_t *l3_cos, const uint8_t *pkt_addr, - odp_packet_hdr_t *hdr); - void _odp_cls_update_hash_proto(cos_t *cos, odp_pktin_hash_proto_t hash_proto); /** @internal -CoS associated with L2 QoS value - -This function returns the CoS associated with L2 QoS value -**/ -cos_t *match_qos_l2_cos(pmr_l2_cos_t *l2_cos, const uint8_t *pkt_addr, - odp_packet_hdr_t *hdr); -/** -@internal Flow Signature Calculation This function calculates the Flow Signature for a packet based on @@ -99,52 +61,6 @@ CoS and updates in Packet Meta Data **/ int update_flow_signature(uint8_t *pkt_addr, cos_t *cos); -/** -@internal -Allocate a odp_pmr_t Handle -*/ -odp_pmr_t alloc_pmr(pmr_t **pmr); - -/** -@internal -Pointer to pmr_t Handle -This function checks for validity of odp_pmr_t Handle -*/ -pmr_t *get_pmr_entry(odp_pmr_t pmr_id); - -/** -@internal -Pointer to pmr_t Handle -*/ -pmr_t *get_pmr_entry_internal(odp_pmr_t pmr_id); - -/** -@internal -Pointer to odp_cos_t Handle -*/ -cos_t *get_cos_entry(odp_cos_t cos_id); - -/** -@internal -Pointer to odp_cos_t Handle -This function checks for validity of odp_cos_t Handle -*/ -cos_t *get_cos_entry_internal(odp_cos_t cos_id); - -/** -@internal -Verify PMR with a Packet - -This function goes through each PMR_TERM value in pmr_t structure and -calls verification function for each term.Returns 1 if PMR matches or 0 -Otherwise. -**/ -int verify_pmr(pmr_t *pmr, const uint8_t *pkt_addr, odp_packet_hdr_t *pkt_hdr); - -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 892d2fad..78063a72 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, @@ -43,11 +44,13 @@ const rss_key default_rss = { } }; +static cos_t *get_cos_entry_internal(odp_cos_t cos_id) { return &cos_tbl->cos_entry[_odp_typeval(cos_id)]; } +static pmr_t *get_pmr_entry_internal(odp_pmr_t pmr_id) { return &pmr_tbl->pmr[_odp_typeval(pmr_id)]; @@ -273,6 +276,10 @@ odp_cos_t odp_cls_cos_create(const char *name, odp_cls_cos_param_t *param) return ODP_COS_INVALID; } +/* + * Allocate an odp_pmr_t Handle + */ +static odp_pmr_t alloc_pmr(pmr_t **pmr) { int i; @@ -293,6 +300,7 @@ odp_pmr_t alloc_pmr(pmr_t **pmr) return ODP_PMR_INVAL; } +static cos_t *get_cos_entry(odp_cos_t cos_id) { if (_odp_typeval(cos_id) >= CLS_COS_MAX_ENTRY || @@ -303,6 +311,7 @@ cos_t *get_cos_entry(odp_cos_t cos_id) return &cos_tbl->cos_entry[_odp_typeval(cos_id)]; } +static pmr_t *get_pmr_entry(odp_pmr_t pmr_id) { if (_odp_typeval(pmr_id) >= CLS_PMR_MAX_ENTRY || @@ -707,6 +716,11 @@ odp_pool_t odp_cls_cos_pool(odp_cos_t cos_id) return cos->s.pool; } +/* + * This function goes through each PMR_TERM value in pmr_t structure and calls + * verification function for each term.Returns 1 if PMR matches or 0 otherwise. + */ +static int verify_pmr(pmr_t *pmr, const uint8_t *pkt_addr, odp_packet_hdr_t *pkt_hdr) { int pmr_failure = 0; @@ -825,6 +839,12 @@ int verify_pmr(pmr_t *pmr, const uint8_t *pkt_addr, odp_packet_hdr_t *pkt_hdr) return true; } +/* + * Match a PMR chain with a Packet and return matching CoS + * This function gets called recursively to check the chained PMR Term value + * with the packet. + */ +static cos_t *match_pmr_cos(cos_t *cos, const uint8_t *pkt_addr, pmr_t *pmr, odp_packet_hdr_t *hdr) { @@ -871,6 +891,10 @@ int pktio_classifier_init(pktio_entry_t *entry) return 0; } +static +cos_t *match_qos_cos(pktio_entry_t *entry, const uint8_t *pkt_addr, + odp_packet_hdr_t *hdr); + /** Select a CoS for the given Packet based on pktio @@ -914,6 +938,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 * @@ -969,6 +998,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) @@ -1037,6 +1067,7 @@ uint32_t packet_rss_hash(odp_packet_hdr_t *pkt_hdr, return hash; } +static cos_t *match_qos_l3_cos(pmr_l3_cos_t *l3_cos, const uint8_t *pkt_addr, odp_packet_hdr_t *hdr) { @@ -1058,6 +1089,7 @@ cos_t *match_qos_l3_cos(pmr_l3_cos_t *l3_cos, const uint8_t *pkt_addr, return cos; } +static cos_t *match_qos_l2_cos(pmr_l2_cos_t *l2_cos, const uint8_t *pkt_addr, odp_packet_hdr_t *hdr) { @@ -1077,6 +1109,12 @@ cos_t *match_qos_l2_cos(pmr_l2_cos_t *l2_cos, const uint8_t *pkt_addr, return cos; } +/* + * Select a CoS for the given Packet based on QoS values + * This function returns the COS object matching the L2 and L3 QoS + * based on the l3_preference value of the pktio +*/ +static cos_t *match_qos_cos(pktio_entry_t *entry, const uint8_t *pkt_addr, odp_packet_hdr_t *hdr) { From patchwork Fri Aug 4 09:00:00 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: 109379 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1883821qge; Fri, 4 Aug 2017 02:06:06 -0700 (PDT) X-Received: by 10.200.43.177 with SMTP id m46mr2027210qtm.189.1501837566536; Fri, 04 Aug 2017 02:06:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501837566; cv=none; d=google.com; s=arc-20160816; b=xgCM+I86Fm0UpbplsrBdN+ux/nUJyyIci8QjN9KzYVXhB/f5GyO3xXzKp5vppdOV25 sdbJX4h8rE+WHmkCH4FgFPQvpIJVlt/xp+nK8vEYhc6UGDflw8XwBNJhfY4JcOTfmdrP Y1yLwhf6H/OMwmFi3BRCGF+QWv/k+qfJ44JOm384/JOYnz2NfGWd+HJWZy4oPkQsWhV5 YX0rBgm2gSOFXmoGwg+VgJG/IXHdmRtcBSJIqyQxmiCRx7WR8INymuSYH71ALuwQRkdI byn5+8q1pGZlL+F1eHeAjbJC2SkCi+e8d0QtDJY7Eu3Cii5hkNmV+9nrfXhJJ5FCLY9X gYIQ== 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=ZGTBQ5RRcMGy0tKvPLWzsBa1WIjqbwhQv6Tyz9+SURY=; b=I4ZdpaynhX4jA8GyqoWawnhWQIdAWqfdI8a7e1TsAzk0s83qFLW6xBBkSx5w/WHAwr QsWrs7SozO9H2tEziKUL0BRWAoje2b/V7Zl5Bdgq1SW871+113Zxa0ZdakW5BaBZSE03 ZM5h3L+8J65mNWY2qZewjzwsn1ZYG9wiIBs1qRjt7zI+ilS2gyEutFFDRs1WC3v9taPj bH78xxN1KTrPhAPX5tnnSrM+hgHBkIwjUR0gxy7xYoeGifA9u7m79f4WitwZePUi66FV cywPTp3mjiW9UPMxqM/5ItVv7YcDcLNeDj4hjmEr53Fq3T9TaVlLkVzon9UQxTwCWnvX SkIA== 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 p3si1145857qti.346.2017.08.04.02.06.06; Fri, 04 Aug 2017 02:06:06 -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 150AB60D6C; Fri, 4 Aug 2017 09:06:06 +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 741AA644E2; Fri, 4 Aug 2017 09:02:23 +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 39BFE644D8; Fri, 4 Aug 2017 09:02:18 +0000 (UTC) Received: from forward4o.cmail.yandex.net (forward4o.cmail.yandex.net [37.9.109.248]) by lists.linaro.org (Postfix) with ESMTPS id 0DAB760D79 for ; Fri, 4 Aug 2017 09:00:45 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [37.140.190.26]) by forward4o.cmail.yandex.net (Yandex) with ESMTP id 0618520E5E for ; Fri, 4 Aug 2017 12:00:44 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id 477611300E0A for ; Fri, 4 Aug 2017 12:00:28 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kkQJPUXR1g-0RGedHJg; Fri, 04 Aug 2017 12:00:27 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 4 Aug 2017 12:00:00 +0300 Message-Id: <1501837208-7450-6-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> References: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v1 5/13] linux-gen: scheduler: drop unused callback 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: 8390f890d4bd2babb63a24f7b15d2f4763e44050 ** Merge commit sha: 44fd671a0d2772a32395c7f0574aa545d2a9aa71 **/ platform/linux-generic/include/odp_schedule_if.h | 1 - platform/linux-generic/odp_packet_io.c | 5 ----- 2 files changed, 6 deletions(-) diff --git a/platform/linux-generic/include/odp_schedule_if.h b/platform/linux-generic/include/odp_schedule_if.h index b514c88a..657993b1 100644 --- a/platform/linux-generic/include/odp_schedule_if.h +++ b/platform/linux-generic/include/odp_schedule_if.h @@ -67,7 +67,6 @@ extern const schedule_fn_t *sched_fn; /* Interface for the scheduler */ int sched_cb_pktin_poll(int pktio_index, int num_queue, int index[]); void sched_cb_pktio_stop_finalize(int pktio_index); -int sched_cb_num_pktio(void); odp_queue_t sched_cb_queue_handle(uint32_t queue_index); void sched_cb_queue_destroy_finalize(uint32_t queue_index); int sched_cb_queue_deq_multi(uint32_t queue_index, odp_event_t ev[], int num); diff --git a/platform/linux-generic/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c index 94075567..709f9c23 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -727,11 +727,6 @@ void sched_cb_pktio_stop_finalize(int pktio_index) unlock_entry(entry); } -int sched_cb_num_pktio(void) -{ - return ODP_CONFIG_PKTIO_ENTRIES; -} - uint32_t odp_pktio_mtu(odp_pktio_t hdl) { pktio_entry_t *entry; From patchwork Fri Aug 4 09:00:01 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: 109376 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1881688qge; Fri, 4 Aug 2017 02:03:52 -0700 (PDT) X-Received: by 10.200.57.81 with SMTP id t17mr2280731qtb.45.1501837432119; Fri, 04 Aug 2017 02:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501837432; cv=none; d=google.com; s=arc-20160816; b=HuA2Sdt/rh9Ai+NXj7v8DPK3vvKxf7OqyehGF75sq7GPTzeY1bdhlHnRnNb1a5CtyN f3rmP6ps1QEHqKN/wXCnah2HrkNRSw3OJ+a1oM3NzRiV126JGXKRp+/dvGdo8s5uqqOh QtG3DpS+VuQeyvJvkGpCaaJ+eJinuaIoOKmVNYd2hRCxkV6mdOEudwGBouxaY9bCMmD8 jzVaS+itI3clq40RYSqclkvcztg8HPRKYzHKJxPsyyvVg1sDXpXSPJ9ul1klayc6WCZ2 a/ZTtNZOB4h+H0ni9VvmL1FYvKYG9yJJWxphVV05tOpSDQ7/N1w4QMbOu9RaHa+kjD3F DV5g== 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=BLMSw/gv1s8M+WWuizNADTf9VH/EEBDnVfNM6aBNGZw=; b=o2CYgidSJduU7BBzplbhkeTp+I4M3p6ckbJDSjWIxUvH2v0HCET9LOkirYZZYx6Ima kfIHwLDN7mbLnRl9E2i34gcOao9K771XSjVv+KNr7LGNv6uCD9kdpoDNE23qRChIIIYf i6aeOMsK1MBW+0KB/NwfGhgUM48xWBLT6GvUGfZgxrgwzR2w/QYR0DXIOO8Xpjhkup9k 3YAEA3Ei456MLJckaMi/qYzut5SyppYYMgJwzLC9pJEIGaPEa0bMa6KqVQ0+uzIwKhXK zGeHfqBU3Cl0kMUD8Z914IyUGKx9M7JvOqisMZ61LU1Z6ox6gCleGUr7Zo7QT56RGugT HFxA== 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 30si1217613qte.147.2017.08.04.02.03.51; Fri, 04 Aug 2017 02:03:52 -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 ACBD764486; Fri, 4 Aug 2017 09:03:51 +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 11F566358D; Fri, 4 Aug 2017 09:01:33 +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 7683F644C5; Fri, 4 Aug 2017 09:01:28 +0000 (UTC) Received: from forward1o.cmail.yandex.net (forward1o.cmail.yandex.net [37.9.109.84]) by lists.linaro.org (Postfix) with ESMTPS id 44F6062DF5 for ; Fri, 4 Aug 2017 09:00:37 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [37.140.190.26]) by forward1o.cmail.yandex.net (Yandex) with ESMTP id B22A621167 for ; Fri, 4 Aug 2017 12:00:35 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id EBE7C1300E60 for ; Fri, 4 Aug 2017 12:00:30 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kkQJPUXR1g-0TG41FYt; Fri, 04 Aug 2017 12:00:29 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 4 Aug 2017 12:00:01 +0300 Message-Id: <1501837208-7450-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> References: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v1 6/13] linux-gen: pktio: drop/staticize leftovers from single queue shim 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: 8390f890d4bd2babb63a24f7b15d2f4763e44050 ** Merge commit sha: 44fd671a0d2772a32395c7f0574aa545d2a9aa71 **/ .../linux-generic/include/odp_packet_io_internal.h | 13 ------------- platform/linux-generic/odp_packet_io.c | 21 +++++++++++---------- 2 files changed, 11 insertions(+), 23 deletions(-) diff --git a/platform/linux-generic/include/odp_packet_io_internal.h b/platform/linux-generic/include/odp_packet_io_internal.h index 20a86557..1a4e345f 100644 --- a/platform/linux-generic/include/odp_packet_io_internal.h +++ b/platform/linux-generic/include/odp_packet_io_internal.h @@ -252,19 +252,6 @@ static inline void pktio_cls_enabled_set(pktio_entry_t *entry, int ena) entry->s.cls_enabled = ena; } -/* - * Dummy single queue implementations of multi-queue API - */ -int single_capability(odp_pktio_capability_t *capa); -int single_input_queues_config(pktio_entry_t *entry, - const odp_pktin_queue_param_t *param); -int single_output_queues_config(pktio_entry_t *entry, - const odp_pktout_queue_param_t *param); -int single_recv_queue(pktio_entry_t *entry, int index, odp_packet_t packets[], - int num); -int single_send_queue(pktio_entry_t *entry, int index, - const odp_packet_t packets[], int num); - extern const pktio_if_ops_t netmap_pktio_ops; extern const pktio_if_ops_t dpdk_pktio_ops; extern const pktio_if_ops_t sock_mmsg_pktio_ops; diff --git a/platform/linux-generic/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c index 709f9c23..3a5d6d5d 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -1070,6 +1070,17 @@ int odp_pktio_term_global(void) return ret; } +static +int single_capability(odp_pktio_capability_t *capa) +{ + memset(capa, 0, sizeof(odp_pktio_capability_t)); + capa->max_input_queues = 1; + capa->max_output_queues = 1; + capa->set_op.op.promisc_mode = 1; + + return 0; +} + int odp_pktio_capability(odp_pktio_t pktio, odp_pktio_capability_t *capa) { pktio_entry_t *entry; @@ -1673,13 +1684,3 @@ int odp_pktout_send(odp_pktout_queue_t queue, const odp_packet_t packets[], return entry->s.ops->send(entry, queue.index, packets, num); } - -int single_capability(odp_pktio_capability_t *capa) -{ - memset(capa, 0, sizeof(odp_pktio_capability_t)); - capa->max_input_queues = 1; - capa->max_output_queues = 1; - capa->set_op.op.promisc_mode = 1; - - return 0; -} From patchwork Fri Aug 4 09:00:02 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: 109386 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1887862qge; Fri, 4 Aug 2017 02:10:35 -0700 (PDT) X-Received: by 10.233.237.211 with SMTP id c202mr2036632qkg.1.1501837835635; Fri, 04 Aug 2017 02:10:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501837835; cv=none; d=google.com; s=arc-20160816; b=MQL2ORvPZ1d4kNu3nf5AfowPQBTEcq694UBRK6cMxBn/IeKyfsICUIgbLpJUUeYhfN 0CGlxBklFvBFaogJGuvdjTh1UWjGR/K2C6Vs04IgMWKAJUZCrrTYncVtQiRQjswiNXRD GBJVJJ4uayCOlfvnsjPytipPDNpGNXEaiOLquRh5p5xEiO2sBRbSXLbKclv8cWThNBSy o8MTtq8QS27WrutVYNOfd9YrCVY4GZSRGp2bZmLW1HY8+tNtdhRIYXdu8ZPO1nwCr6LQ BtwNoQuKlRIaO4qozuyYs0nTqb46vdBLercM0lgS4yo299QaAzJmcALwdV5nz3mwS1ZJ C+zw== 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=SdEEcfRPER2Im8USNYMYAUtp/j4h4Jgpnv0s+ka/hI0=; b=VkUPxGnlGrdTZjxPbRCZjaW/gIgxn4ZeeLTDhOE/YbUDhe8eHo8q68+uaCoXYzQXWy 8a1PA3Hmc8GrX7Ze1iqxrDn/va3u62bdNn7/A1QJZ5PQZbVccbniATE2ZpDOpnX51EvF 7Wn8WVBcTBvtbj+1nNPubsN/eO7v1B5bdUJv9239zLN0XkfIua2iHn9saXceEw6nVVWL zMomlsdNINw6NUtB5BGHKtiixEDL6/KAGB6pXpMuRcJgDrfy/lWb9citosC7Ejaclcj5 5ssDYtzb6N+UAI/SdAJ7cb82s5WWNIEe+hNKbafloGB0ddg5VgIvlZCZlLCEnphtdUkm UIWQ== 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 q45si1169531qta.414.2017.08.04.02.10.35; Fri, 04 Aug 2017 02:10:35 -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 4C384644D6; Fri, 4 Aug 2017 09:10:35 +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 9719864496; Fri, 4 Aug 2017 09:03:55 +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 2849A64463; Fri, 4 Aug 2017 09:03:48 +0000 (UTC) Received: from forward2j.cmail.yandex.net (forward2j.cmail.yandex.net [5.255.227.20]) by lists.linaro.org (Postfix) with ESMTPS id 0AD4664496 for ; Fri, 4 Aug 2017 09:00:57 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::25]) by forward2j.cmail.yandex.net (Yandex) with ESMTP id 91C0720F41 for ; Fri, 4 Aug 2017 12:00:55 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id C62081300E66 for ; Fri, 4 Aug 2017 12:00:31 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kkQJPUXR1g-0VG4jAwk; Fri, 04 Aug 2017 12:00:31 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 4 Aug 2017 12:00:02 +0300 Message-Id: <1501837208-7450-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> References: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v1 7/13] linux-gen: pktio: mark pktio_tbl 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: 8390f890d4bd2babb63a24f7b15d2f4763e44050 ** Merge commit sha: 44fd671a0d2772a32395c7f0574aa545d2a9aa71 **/ platform/linux-generic/odp_packet_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c index 3a5d6d5d..beac1914 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -36,7 +36,7 @@ * Must be power of two. */ #define SLEEP_CHECK 32 -pktio_table_t *pktio_tbl; +static pktio_table_t *pktio_tbl; /* pktio pointer entries ( for inlines) */ void *pktio_entry_ptr[ODP_CONFIG_PKTIO_ENTRIES]; From patchwork Fri Aug 4 09:00:03 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: 109377 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1882365qge; Fri, 4 Aug 2017 02:04:35 -0700 (PDT) X-Received: by 10.55.91.135 with SMTP id p129mr1915903qkb.32.1501837475381; Fri, 04 Aug 2017 02:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501837475; cv=none; d=google.com; s=arc-20160816; b=CLi4UQ88jtbLb+lPsNqYpXnzefbSFK3IbwWvPCbT2wJ91QXW3a3OExIQIxyxzbtE2o cLF63bb5GlYtqMA69YQE9iGu7XXY6K+L6JXxBNgNBYyfWo41z/cW/NeCa84hjsde96qe U8uyyb1b7P5x32u6RHp1BDvMuvDBud0Z9aCEd2tfmHvf6owygwS+QvECKpM1UMK6jdUX JM1xJqX3xuZ7slcXHZQczEyjvuUE1litPe4v/9rx2P8TkfyfHPl9pR9LPEoE4PrpeNUH GDZA+Hx86R+7AsbBDNQvBAd6REXUFd5+L6yJP0MDRphHgAvEuJSLt/lkX39woJipWRYQ 7QGg== 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=MWySB6FZu1uiir4q0dMSfhCVwEak2p2F8ysAjGcsK6w=; b=bpZr2n8+VMoAiM5E0t1Hzx31iKIse7lFJQG0iT0xnLkbXzkVSIytSophx0fhrzs8Br gOvZqkCGRNseZcdxGrSwmDOKf1Vjo2GBIydRKJZQNICUnCWenkygHPIFjcJEKY5yOKWR me0eWoNBl/5i0wLWK8VLtaFQ8ACNLFx/cq5uiMhAotwNlxBKcBYodiZ+QOIWwwttUiOB RLlVkiL4je2GK54eLQPm1L9CmEeid+YaGB887amBJUXZteVQObNSX9jt708+b+UsLJ2T zinIzfy3vTQ5qAoea6vbCPattGBYPcKIGYJ9sZz1MboXwjuWHrBFT56gRWfrJfHPPXc3 wNLw== 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 b196si1183458qkc.469.2017.08.04.02.04.35; Fri, 04 Aug 2017 02:04:35 -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 0EAD2644C1; Fri, 4 Aug 2017 09:04:35 +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 58BDE64455; Fri, 4 Aug 2017 09:01: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 2B805644CD; Fri, 4 Aug 2017 09:01:34 +0000 (UTC) Received: from forward4o.cmail.yandex.net (forward4o.cmail.yandex.net [37.9.109.248]) by lists.linaro.org (Postfix) with ESMTPS id 7A4DD6445A for ; Fri, 4 Aug 2017 09:00:38 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [37.140.190.26]) by forward4o.cmail.yandex.net (Yandex) with ESMTP id 2F85321030 for ; Fri, 4 Aug 2017 12:00:37 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id ADEBD1300D49 for ; Fri, 4 Aug 2017 12:00:33 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kkQJPUXR1g-0XGST8Xu; Fri, 04 Aug 2017 12:00:33 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 4 Aug 2017 12:00:03 +0300 Message-Id: <1501837208-7450-9-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> References: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v1 8/13] linux-gen: queue: drop two unused functions 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: 8390f890d4bd2babb63a24f7b15d2f4763e44050 ** Merge commit sha: 44fd671a0d2772a32395c7f0574aa545d2a9aa71 **/ platform/linux-generic/include/odp_queue_internal.h | 3 --- platform/linux-generic/odp_queue.c | 10 ---------- 2 files changed, 13 deletions(-) diff --git a/platform/linux-generic/include/odp_queue_internal.h b/platform/linux-generic/include/odp_queue_internal.h index c5ff1e7d..dd846d59 100644 --- a/platform/linux-generic/include/odp_queue_internal.h +++ b/platform/linux-generic/include/odp_queue_internal.h @@ -61,9 +61,6 @@ union queue_entry_u { uint8_t pad[ROUNDUP_CACHE_LINE(sizeof(struct queue_entry_s))]; }; -void queue_lock(queue_entry_t *queue); -void queue_unlock(queue_entry_t *queue); - static inline uint32_t queue_to_id(odp_queue_t handle) { return _odp_typeval(handle) - 1; diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c index e2f8c067..7ad346ad 100644 --- a/platform/linux-generic/odp_queue.c +++ b/platform/linux-generic/odp_queue.c @@ -593,16 +593,6 @@ static int queue_init(queue_entry_t *queue, const char *name, return 0; } -void queue_lock(queue_entry_t *queue) -{ - LOCK(&queue->s.lock); -} - -void queue_unlock(queue_entry_t *queue) -{ - UNLOCK(&queue->s.lock); -} - static void queue_param_init(odp_queue_param_t *params) { memset(params, 0, sizeof(odp_queue_param_t)); From patchwork Fri Aug 4 09:00:04 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: 109384 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1886965qge; Fri, 4 Aug 2017 02:09:30 -0700 (PDT) X-Received: by 10.233.232.149 with SMTP id a143mr2082137qkg.339.1501837770247; Fri, 04 Aug 2017 02:09:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501837770; cv=none; d=google.com; s=arc-20160816; b=kSEheprml2fndYnX45V0vjwywtAsoldmBeAejHmO27d55HowylwVA+rmPurOpOpgnp JsGomEZcjt5QTFU2s0Fd7YlzkhrcSHpy9FvWOiS90LYb5kiQtnfqwqxNoUCIUkfI1kFX VcHX+vKuvpdjwop5Q/9/sOOviRu+eUeu/2mcExE2bJ+DyE2Rn0VzkI2Ig3fOJSgRnAVE z4QgG8dD2ImwhGgrwsPjDYGBeqfNL4OAXuzrMU7U4lZLAUVPIohEyQIf/o7nkCNONAGA T3nbbuDe3dyPb95deFs7bRXs+HJJDL4OtBcZ6+hssYveqKhZRzfg/9yQo4A7K8jOR+0Y Gr5Q== 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=BxZ5+mmbcVMCJ5asRjzZcWXdzr3V7RHQf/vR68XPwk8=; b=YICJjdsXSojtCHvo6fSMqZK8BBtQlQHoMP2rPoo8y1svCmwvPaT++/8U5tQ0d9N9p+ NXyfepZf3J+pABez25ccTo3S3xoua/FbO65GfsluYn+J0oPxdD9qK66t6b6rnxDMsz71 U7LzS4loRTtnQtkApRlmPBbXTxMOIQr1zO/pyF983D8MVtR/NOdbjk2ZvdkAU0RjzL80 kK9zxTNZmWL7l1L7AmFdm2/l4skwyp9+Vacav+0nmVJi3vRnbbWL4RttqYsgZFrQRAxR 66h3E2jJAu374gNiMfFXBnPeI3GjEdAFkHmdRB1NvjLSjKnfrnggxeBtS0uN+e8c+re3 SH/A== 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 v41si1150418qta.546.2017.08.04.02.09.30; Fri, 04 Aug 2017 02:09:30 -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 D6EDB644D8; Fri, 4 Aug 2017 09:09:29 +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 CC4AD62ED2; Fri, 4 Aug 2017 09:03:48 +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 B7EB262ED2; Fri, 4 Aug 2017 09:03:42 +0000 (UTC) Received: from forward3o.cmail.yandex.net (forward3o.cmail.yandex.net [37.9.109.247]) by lists.linaro.org (Postfix) with ESMTPS id 38FDB64477 for ; Fri, 4 Aug 2017 09:00:49 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::25]) by forward3o.cmail.yandex.net (Yandex) with ESMTP id C924B20E8D for ; Fri, 4 Aug 2017 12:00:47 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id 619381300D54 for ; Fri, 4 Aug 2017 12:00:35 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kkQJPUXR1g-0ZGSEMsa; Fri, 04 Aug 2017 12:00:35 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 4 Aug 2017 12:00:04 +0300 Message-Id: <1501837208-7450-10-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> References: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v1 9/13] linux-gen: sched: mark sched_local 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: 8390f890d4bd2babb63a24f7b15d2f4763e44050 ** Merge commit sha: 44fd671a0d2772a32395c7f0574aa545d2a9aa71 **/ platform/linux-generic/odp_schedule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c index f52ef28c..a696d251 100644 --- a/platform/linux-generic/odp_schedule.c +++ b/platform/linux-generic/odp_schedule.c @@ -264,7 +264,7 @@ typedef struct { static sched_global_t *sched; /* Thread local scheduler context */ -__thread sched_local_t sched_local; +static __thread sched_local_t sched_local; /* Function prototypes */ static inline void schedule_release_context(void); From patchwork Fri Aug 4 09: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: 109383 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1886107qge; Fri, 4 Aug 2017 02:08:32 -0700 (PDT) X-Received: by 10.237.37.107 with SMTP id w40mr2092653qtc.14.1501837712730; Fri, 04 Aug 2017 02:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501837712; cv=none; d=google.com; s=arc-20160816; b=prv88rVGQOu/A2ZsyFMZhn7+kkBRBArXtXU9D0FmwPhYHS7P/7+qKuLfdA3nJF+aC7 pOQV1bpqW/LTkGMJQny5BKDkQmCoAw27Gc5OCulHG0xlYdcGE/Jc9z+WXXT+pRC9JTGa /pwsLiLBFo+dbqfDfJ5HkwX1DeDNLq6PrMRfG3B1Ol8PkMYNh/EBwM/tzUcASItyCUNY k+LZqXoA3Ql/rFs1hyyKi6heVpmKqm9MxKw5AKbr4ALGDkyy0VpExCHbF6MSIpVAmFOQ tVb2twQofdPA2+UmKLIIA1yHQoXXPG8jK/wLSRJt5wohmBQoth747WiD/SM/we63Z65/ gjug== 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=ffikFagP7UNPhXP+c1rCm5cSKY2Kq3JCEVu63lDQdzA=; b=nbfiH3YcTc59z48w0xqdFyW3xRKQEMRBnuCHpHV7FCTtdozR7TrG65zKXYtpCXy3l3 EC+Gf0vA6STHGKIhBZ9tAOOcWP/KjHZwdx2n6FiRWDEK0tvLLNM1cyrXicgIpi+IX1NX xo6QtScKQELClW2ci8MBQ3P3q0FHUYd2NszLXUDS8L1Vm2vaxewoqPtoDHP0p0AKMxL+ 2PF2a9/I1QbXMSzjjA3gqgr7O6oSXoZMnhT/apTg0gTBQ4njh5gyim5RuUP7CbcKdIpN nUCuJCsBCim9voY5ZVEjZyEOcodoT25FGjwbJubvSseeXJ06FawgU6LC2PdTE69j56bF vp/A== 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 c1si1096217qkd.443.2017.08.04.02.08.32; Fri, 04 Aug 2017 02:08:32 -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 4CF3864450; Fri, 4 Aug 2017 09:08:32 +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 37E2265BBA; Fri, 4 Aug 2017 09:03:00 +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 5D23964471; Fri, 4 Aug 2017 09:02:52 +0000 (UTC) Received: from forward2m.cmail.yandex.net (forward2m.cmail.yandex.net [5.255.216.20]) by lists.linaro.org (Postfix) with ESMTPS id 3A39362D1B for ; Fri, 4 Aug 2017 09:00:45 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::25]) by forward2m.cmail.yandex.net (Yandex) with ESMTP id C028121494 for ; Fri, 4 Aug 2017 12:00:43 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id 910261300DFE for ; Fri, 4 Aug 2017 12:00:37 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kkQJPUXR1g-0aG4CSQP; Fri, 04 Aug 2017 12:00:36 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 4 Aug 2017 12:00:05 +0300 Message-Id: <1501837208-7450-11-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> References: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v1 10/13] linux-gen: sched iquery: mark thread_local 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: 8390f890d4bd2babb63a24f7b15d2f4763e44050 ** Merge commit sha: 44fd671a0d2772a32395c7f0574aa545d2a9aa71 **/ platform/linux-generic/odp_schedule_iquery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_schedule_iquery.c b/platform/linux-generic/odp_schedule_iquery.c index 23e36c9a..86f5d53e 100644 --- a/platform/linux-generic/odp_schedule_iquery.c +++ b/platform/linux-generic/odp_schedule_iquery.c @@ -230,7 +230,7 @@ struct sched_thread_local { static sched_global_t *sched; /* Thread local scheduler context */ -__thread sched_thread_local_t thread_local; +static __thread sched_thread_local_t thread_local; static int schedule_init_global(void) { From patchwork Fri Aug 4 09: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: 109385 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1887416qge; Fri, 4 Aug 2017 02:10:01 -0700 (PDT) X-Received: by 10.55.23.204 with SMTP id 73mr2057730qkx.157.1501837801185; Fri, 04 Aug 2017 02:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501837801; cv=none; d=google.com; s=arc-20160816; b=ve1Qv3vka0KXYtCaGOc7YMv0ehO7JsLSUcDno0O7jKdOWQ2z8a8DrrL0lCQO0wI5q4 5vz3uOrAqMVOSTr1TacebfYsd/Mg5X8OQ8kBXYLVrVjFcrPfaut+eGAz0bVLMrSMelF0 ZWmcOt9Q3eJhd/vCXaf/jJ5+nVfmlFTj984m0yGxrj3sYBw+OagRRmyAMeqOFI8JcGvJ ce+wNkAyJe+2V12qknox9KqwCc3/uMkFkSi6funpnCRkUegFMXRZiRSS5zdChfqj+acF FFlxLHi2HTdghN1T+clVXTwb2Fufuoicmpt5zSZ+z6V6FLvBl4949TFcxmIVaWY+eRNG mbqQ== 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=KlWAYZ2i0zfoxiqmD3LXBQAVyDYiKSYelF9MMh+pmdU=; b=T0wWK4nsALFqVc0b9ibMuny7+5zAiuLB+koLjNpVH0QZRIo8vZC9pCw7N3+Uqmg1Us 9FpEEPyNoM+IYuGrQlpvS2m1KDYkEEJ93U8Skfnzr4v/by+iDhR6yTNam9YQ8vttYmLE jbvE3MXrgLXoUIzTi38oVVywxq2NR3TpnxWHMHRzv8o4/oIpn+2aTRRruz1Mq3UcuCQl DtoRdl/MrGJFPPT7RdBK2o3kKBS1psP2wAEi9H6fkDe6U8GRhceVdz5Y1qnIw7nPaEyI 3q0DWI2PixyT1ZGvTX2MDv61SvuUspb+S7hFEwhrg0c83pmE1Owb3jX5M1evhYD950q2 4XDA== 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 20si1186147qtw.554.2017.08.04.02.10.00; Fri, 04 Aug 2017 02:10:01 -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 703ED64490; Fri, 4 Aug 2017 09:10:00 +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 34CCF64486; Fri, 4 Aug 2017 09:03: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 BD0246448F; Fri, 4 Aug 2017 09:03:45 +0000 (UTC) Received: from forward3o.cmail.yandex.net (forward3o.cmail.yandex.net [37.9.109.247]) by lists.linaro.org (Postfix) with ESMTPS id 3538B64473 for ; Fri, 4 Aug 2017 09:00:49 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::25]) by forward3o.cmail.yandex.net (Yandex) with ESMTP id 5E13820E6D for ; Fri, 4 Aug 2017 12:00:47 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id D440A1300E2C for ; Fri, 4 Aug 2017 12:00:38 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kkQJPUXR1g-0bGeBwQB; Fri, 04 Aug 2017 12:00:37 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 4 Aug 2017 12:00:06 +0300 Message-Id: <1501837208-7450-12-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> References: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v1 11/13] 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: 8390f890d4bd2babb63a24f7b15d2f4763e44050 ** Merge commit sha: 44fd671a0d2772a32395c7f0574aa545d2a9aa71 **/ platform/linux-generic/include/odp_schedule_scalable_ordered.h | 9 --------- platform/linux-generic/odp_schedule_scalable_ordered.c | 5 +++++ 2 files changed, 5 insertions(+), 9 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..59f64582 100644 --- a/platform/linux-generic/odp_schedule_scalable_ordered.c +++ b/platform/linux-generic/odp_schedule_scalable_ordered.c @@ -71,6 +71,7 @@ bool rwin_reserve(reorder_window_t *rwin, uint32_t *sn) return true; } +static void rwin_insert(reorder_window_t *rwin, reorder_context_t *rctx, uint32_t sn, @@ -172,6 +173,7 @@ void rctx_init(reorder_context_t *rctx, uint16_t idx, rctx->numevts = 0; } +static inline void rctx_free(const reorder_context_t *rctx) { const reorder_context_t *const base = &rctx[-(int)rctx->idx]; @@ -206,6 +208,7 @@ inline void rctx_free(const reorder_context_t *rctx) } } +static inline void olock_unlock(const reorder_context_t *rctx, reorder_window_t *rwin, uint32_t lock_index) { @@ -215,6 +218,7 @@ inline void olock_unlock(const reorder_context_t *rctx, reorder_window_t *rwin, } } +static void olock_release(const reorder_context_t *rctx) { reorder_window_t *rwin; @@ -246,6 +250,7 @@ static void blocking_enqueue(queue_entry_t *q, odp_buffer_hdr_t **evts, int num) } } +static void rctx_retire(reorder_context_t *first) { reorder_context_t *rctx; From patchwork Fri Aug 4 09: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: 109381 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1885231qge; Fri, 4 Aug 2017 02:07:35 -0700 (PDT) X-Received: by 10.200.48.66 with SMTP id g2mr2125904qte.119.1501837655649; Fri, 04 Aug 2017 02:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501837655; cv=none; d=google.com; s=arc-20160816; b=091IGzkYTGyqWaoaZPRnkAbHBsToToGCMrlaNl/pcHvHXY0CoQDqwE083UUyzXngUT LrbHRIe9KH9uMYWxOy30e1okx4EJATrzciFQ33hM98BGUZrGtaEEbh6o3nh0sNGf0Lnq 2rCFFFcvQ0rjr2YehE4vg+UB/Dj4nMm55lFfYg0aZQHHc45SX/j7IJR1ja0JwuG0uSo2 f6EQ/rR5PNBxJXVNUltmlqn5dtBjWYj+9XeerOW2+G42AuUM6bppyuaEf2WPRXj9ZDiw jWyUiFRiv2/bHvJJhXU8Oe9DX+1tvjXxb3Csz4FoNVXuReGnMC82vsd95KSKRyjBKN3x FpLA== 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=v0t6gIiAcqHEmPQISYCsMu7l98bbhOqTgO8bg3/c86M=; b=O9FSpX2CaMD9EFRFOpPaImCiAxcVnvGrQVPkKu+m4PgZNvb0xNvUIvXwk+IdVeM4TT eB1PcpXHP26IN4QQwHhIunQ+kaZMxkAhPsJMDsLmiH89D9PsBCQ/rmuMlIzaH3wVdAz1 GxhY7/BLtJ/s65vyMt8UQ7EaQ2h3+f40YX0HCwd3ZY8dK4yd/4ewkTUCV1BsmDK+msDA VK7uXevjOFURebdpr32ylxGAjVwHkpylOlI6MrMmHyaFhyMCoNIsdemJGLagHWQ/9fQx rtw2QheKpIOzMSRbqqUjV64RQgJmAB7LH8uMt9jKUsGltNA+qixeKpWuN2++chpxYybe CU4A== 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 x5si1103739qke.346.2017.08.04.02.07.35; Fri, 04 Aug 2017 02:07:35 -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 59712644D8; Fri, 4 Aug 2017 09:07:35 +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 93172644FC; Fri, 4 Aug 2017 09:02:55 +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 463E464490; Fri, 4 Aug 2017 09:02:50 +0000 (UTC) Received: from forward3o.cmail.yandex.net (forward3o.cmail.yandex.net [37.9.109.247]) by lists.linaro.org (Postfix) with ESMTPS id 2D8D364471 for ; Fri, 4 Aug 2017 09:00:49 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::25]) by forward3o.cmail.yandex.net (Yandex) with ESMTP id DC8D320EB4 for ; Fri, 4 Aug 2017 12:00:47 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id 61BB01300E9E for ; Fri, 4 Aug 2017 12:00:39 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kkQJPUXR1g-0dG45tt3; Fri, 04 Aug 2017 12:00:39 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 4 Aug 2017 12:00:07 +0300 Message-Id: <1501837208-7450-13-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> References: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v1 12/13] 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: 8390f890d4bd2babb63a24f7b15d2f4763e44050 ** Merge commit sha: 44fd671a0d2772a32395c7f0574aa545d2a9aa71 **/ 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 Fri Aug 4 09: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: 109382 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1885649qge; Fri, 4 Aug 2017 02:08:04 -0700 (PDT) X-Received: by 10.55.15.164 with SMTP id 36mr1914662qkp.242.1501837684122; Fri, 04 Aug 2017 02:08:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501837684; cv=none; d=google.com; s=arc-20160816; b=OCV8q1kxuXuFwlTGmaagiPCzxjTL8M/b1YNLjNVsyOIA+Z4jA2rIHeNU9f9d7l9njW lzQMwK1h/8Sjp/v3mpDYLiplK4TWB6PRsRtVKgPmPanlj2fkWTw10wJMllM8AABn/IJh o1WXLgSaQz5Wu88wf0rbR1WJljd3sVEwEEpcPSf5b6BUNqvZpgehAk75wI00t9zBtb4q YRzbIQPzg/ElFiiIJhoUWvwesDVBcekHQ4Krn9+Lg6XeAy2v99Ndp+TApB6vgi0FUxcc izFDsiDvUd0mKlcBgZ7oYed4ralsmQzerOd3hXqd+lI+DWvWMvvXDyIiEsJE738kuGWE UpMQ== 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=0EZH84Rots3iA5oHf+sQs0NVpsJPx9KsUpvdSAJR7n0=; b=zuVbcxEgydVNuKkHRza0oOBq+AUaqVruMCYjPWrM2hJ6u80HbRodyFq6RXpWVMBcFj rcFnh9NgnxpZaMmdR6gL+1BAV+Lj20ed7Rijo+zODU3liJsR5EgSDUSmlpemfqgbCpZG DDE7VeAOchTzP1HyhwQX+KLZNOMTaVaABt/y/Eb7ZJIlnK3VkkakyM9n2NfN5gPtrwZj GjIPEfGXdqhABPTlVkzktnf/dZVy038LA0cZYtLYn97xxMC6azCMGdGc+zOWlefi8Po2 /3Zqf5+07kbOcqlYNm/UyhRS39Dxbm0jXKWwj80GWTJNqsU+pCmwTtD1XMDeoJ5RHNJG EDbQ== 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 w34si1096976qtd.181.2017.08.04.02.08.03; Fri, 04 Aug 2017 02:08:04 -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 C8605644DA; Fri, 4 Aug 2017 09:08:03 +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 EE92D64492; Fri, 4 Aug 2017 09:02:57 +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 C837B6446E; Fri, 4 Aug 2017 09:02:50 +0000 (UTC) Received: from forward3o.cmail.yandex.net (forward3o.cmail.yandex.net [37.9.109.247]) by lists.linaro.org (Postfix) with ESMTPS id 2DC2A64472 for ; Fri, 4 Aug 2017 09:00:49 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::25]) by forward3o.cmail.yandex.net (Yandex) with ESMTP id 1225220EAE for ; Fri, 4 Aug 2017 12:00:47 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id D12B61300D00 for ; Fri, 4 Aug 2017 12:00:42 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kkQJPUXR1g-0fGGQrDH; Fri, 04 Aug 2017 12:00:41 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 4 Aug 2017 12:00:08 +0300 Message-Id: <1501837208-7450-14-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> References: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v1 13/13] 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: 8390f890d4bd2babb63a24f7b15d2f4763e44050 ** Merge commit sha: 44fd671a0d2772a32395c7f0574aa545d2a9aa71 **/ 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) {