From patchwork Mon Nov 6 13: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: 118027 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2737059qgn; Mon, 6 Nov 2017 05:00:28 -0800 (PST) X-Google-Smtp-Source: ABhQp+Q8XwJ+f9UYHVmYFOfK7iI6cAPrj1uInHAWUUj6jGhy7dcdm69TQR89eZ/czJXXK4POau9z X-Received: by 10.237.35.244 with SMTP id k49mr22338018qtc.87.1509973227993; Mon, 06 Nov 2017 05:00:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509973227; cv=none; d=google.com; s=arc-20160816; b=0aZR+nLMKBaKZhYr1c45Iq+GBbnokdE+JPSQlVo6u6lNrZ6Qp2UirckM6olIQ9jCfb hIKias9TUNMRH58eJk+HRH24GHiVIs0RdbSKyQNuFX9MENR5TmNsZz8iYgrqob4xw4lZ k0j4hOgwRyZt0YLe41NtyofSXe9C09QpD8VY17FrES11IlYRXKygi2h2nwo2J9PaW3x0 6g0OBVS6si4rlLNXkfwodqSuI+BBPaj6uW95rwvQw9lqlQH0y5dEsNc1+3KnuMajJxSu BoceRs8nNc3Lzy10RuoPVxMi6YpUJeddH6FF8B8rI45ok+5BFDkdTR8v/nax9HRhD7iu iA9A== 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=T+dId5NDM5X8AZHSd+3Ugrv92ZbORTqpfe0wQSyHFgk=; b=xBJPDBnu3jsoTU4Z3hM3ecbRiVgBI1/pFR4eqlPVnFvdIuZQowD+ffoCF/96Dpz99E cHN79bGhuY4A9E++MEuTitw8sRgEfvCKMk+YC9M9bi2mVA/oazE1ytdWPjG7KrzmlCjg buGb9uxXVlxXeODQcso/9z4lySnMAhKA5Dr7TOPUmfxXjw0ULRNuLgYZRcclEXtY9lbO xBH6tXHQd3RosFMmSA38tI6tNK2/+ZnprdqfCzyq2VFfg6qXNpRsxAdgPvVwMcPHZzF8 eaa3jUepAQq8WA7sDj7zCqM1q6X+A1aKs8eVO3iH8g06UCIWLHk7+Bd65Gfi21KwJzOO 7YnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id q34si2545414qtg.31.2017.11.06.05.00.27; Mon, 06 Nov 2017 05:00:27 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 4008A6069B; Mon, 6 Nov 2017 13:00:27 +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,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 BB6946069F; Mon, 6 Nov 2017 13:00: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 898256069B; Mon, 6 Nov 2017 13:00:11 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id 5CE8A6069B for ; Mon, 6 Nov 2017 13:00:10 +0000 (UTC) Received: from mxback16j.mail.yandex.net (mxback16j.mail.yandex.net [IPv6:2a02:6b8:0:1619::92]) by forward100j.mail.yandex.net (Yandex) with ESMTP id D4F8D5D84BAF for ; Mon, 6 Nov 2017 16:00:08 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback16j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id oQvSL6hLKr-08YinwFh; Mon, 06 Nov 2017 16:00:08 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id nU8zA9xMmR-08h45iGA; Mon, 06 Nov 2017 16:00:08 +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: Mon, 6 Nov 2017 16:00:00 +0300 Message-Id: <1509973206-1972-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> References: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 277 Subject: [lng-odp] [PATCH API-NEXT v1 1/7] api: std_types: add odp_percent_t data type 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: Balasubramanian Manoharan odp_percent_t is used to express values which are percentages Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 277 (bala-manoharan:RED) ** https://github.com/Linaro/odp/pull/277 ** Patch: https://github.com/Linaro/odp/pull/277.patch ** Base sha: d22c949cc466bf28de559855a1cb525740578137 ** Merge commit sha: f8726f45026a85ce1dde794190c1eb35945dca3f **/ include/odp/api/spec/std_types.h | 7 +++++++ platform/linux-generic/include/odp/api/std_types.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/include/odp/api/spec/std_types.h b/include/odp/api/spec/std_types.h index ec6a6df6d..97f5ad994 100644 --- a/include/odp/api/spec/std_types.h +++ b/include/odp/api/spec/std_types.h @@ -32,6 +32,13 @@ extern "C" { */ /** + * @typedef odp_percent_t + * Use odp_percent_t for specifying fields that are percentages. It is a fixed + * point integer whose units are expressed as one-hundredth of a percent. + * Hence 100% is represented as integer value 10000. + */ + +/** * @} */ diff --git a/platform/linux-generic/include/odp/api/std_types.h b/platform/linux-generic/include/odp/api/std_types.h index b61f33f4c..2104db03d 100644 --- a/platform/linux-generic/include/odp/api/std_types.h +++ b/platform/linux-generic/include/odp/api/std_types.h @@ -29,6 +29,8 @@ extern "C" { typedef int odp_bool_t; +typedef uint16_t odp_percent_t; + /** * @} */ From patchwork Mon Nov 6 13: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: 118028 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2739201qgn; Mon, 6 Nov 2017 05:02:12 -0800 (PST) X-Google-Smtp-Source: ABhQp+SbBoIyDjeqC2RcQMZs+e9wxFt11l0IGXr3kFNKLb+3NogZtQ8Rj0Aou5jJxU6pDD51mzvm X-Received: by 10.55.92.195 with SMTP id q186mr20158811qkb.154.1509973332561; Mon, 06 Nov 2017 05:02:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509973332; cv=none; d=google.com; s=arc-20160816; b=SnyECD7TSs/NwYOvqBIWfNZibMHWCy2y62ClQlxNEz5ky1N47wB52AYtaju1jr4DJn GtrZ9Pl3d9p3eZojwFr2VrQLjv0LRAXyg9gsVsYKe+mlrg7fajqGwgE312VIKNSoBLXQ E8qj3v77NV1+U+45cFCiW9FD3wkGY9i9cvGU+DXjfHUfE0eQnvr9TgrUnxRRhQKQWyeY 456QemHy+hhi+Nz+36b2lSZptXquDvEvDgMJ4QTKRkEdD9yE4inS5LfMECZenfB2mICd 6OLXHVjYOJx3Rh5T95/NHFxS4knifqc682BVmXRjDVU1JPXcNvfJr9fwcpGjl69W4kG5 6gqQ== 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=1mUB9L5VsZiVwTYVV7IpUWj7Km3zh/Rg2uCfVvs2GVQ=; b=dIpxnWLf3SzuC2VgzFFtQNbD/Iz+Qk8r2tjkFnrodtEtxLrYKR1qw4Nn55W++oMweT d3ckIYP2/xrvFDVfSGaOYwjxxTeo1uZbWZu9WY76BHrPU0xlpjKDCGgrPL4+L+sKR75s aX9b9lqaMr1+h1tPYKv0kqHRIc5o3WjGLCL6UzeRUBu39edfg2dEk2VCgFCE6RIYjmUM cPxiRqlHzRPmkdm4yr86v3m4Ddycdm/607G0gvTmHypBC7Yx4/7IQ1XwxbsLU8XO3KNm K79cjZUyem0Z0W/vPxa+nCjdi85SP+Nl5T/Yrkz7Go0cpRQcgGs+3wId5oNWE7HKxpq/ utSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id n59si3329709qtd.474.2017.11.06.05.02.12; Mon, 06 Nov 2017 05:02:12 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id E64086069B; Mon, 6 Nov 2017 13:02:11 +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 573A16069F; Mon, 6 Nov 2017 13:00:31 +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 350DA60996; Mon, 6 Nov 2017 13:00:14 +0000 (UTC) Received: from forward103j.mail.yandex.net (forward103j.mail.yandex.net [5.45.198.246]) by lists.linaro.org (Postfix) with ESMTPS id EC8D86069F for ; Mon, 6 Nov 2017 13:00:10 +0000 (UTC) Received: from mxback17j.mail.yandex.net (mxback17j.mail.yandex.net [IPv6:2a02:6b8:0:1619::93]) by forward103j.mail.yandex.net (Yandex) with ESMTP id 8CDCC34C4D11 for ; Mon, 6 Nov 2017 16:00:09 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback17j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ouSkDJc0U4-0938m0L1; Mon, 06 Nov 2017 16:00:09 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id nU8zA9xMmR-08hSOgvK; Mon, 06 Nov 2017 16:00:08 +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: Mon, 6 Nov 2017 16:00:01 +0300 Message-Id: <1509973206-1972-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> References: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 277 Subject: [lng-odp] [PATCH API-NEXT v1 2/7] api: threshold: add odp_threshold_t parameter 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: Balasubramanian Manoharan odp_threshold_t is used to configure different threshold types Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 277 (bala-manoharan:RED) ** https://github.com/Linaro/odp/pull/277 ** Patch: https://github.com/Linaro/odp/pull/277.patch ** Base sha: d22c949cc466bf28de559855a1cb525740578137 ** Merge commit sha: f8726f45026a85ce1dde794190c1eb35945dca3f **/ include/odp/api/spec/threshold.h | 89 ++++++++++++++++++++++ platform/linux-generic/include/odp/api/threshold.h | 34 +++++++++ 2 files changed, 123 insertions(+) create mode 100644 include/odp/api/spec/threshold.h create mode 100644 platform/linux-generic/include/odp/api/threshold.h diff --git a/include/odp/api/spec/threshold.h b/include/odp/api/spec/threshold.h new file mode 100644 index 000000000..d9ee53aeb --- /dev/null +++ b/include/odp/api/spec/threshold.h @@ -0,0 +1,89 @@ +/* Copyright (c) 2017, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @file + * + * ODP threshold descriptor + */ + +#ifndef ODP_API_THRESHOLD_H_ +#define ODP_API_THRESHOLD_H_ +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Supported threshold types + * + * Supported threshold types in a bit field structure. + */ +typedef union odp_threshold_type_t { + struct { + /** Percentage of the total size of pool or queue */ + uint8_t percent:1; + /* Number of transient packets */ + uint8_t pkt_cnt:1; + /* Total size of all transient packets in bytes */ + uint8_t pkt_size:1; + }; + /** All bits of the bit field structure */ + uint8_t all_bits; +} odp_threshold_type_t; + +/** + * ODP Threshold types + * + * Different types of threshold measurements + */ +typedef enum { + /** Percentage of the total size of pool or queue */ + odp_percent_e, + /** Number of transient packets */ + odp_pkt_count_e, + /** Total size of all transient packets in bytes */ + odp_pkt_size_e +} odp_threshold_type_e; + +/** + * ODP Threshold + * + * Threshold configuration + */ +typedef struct odp_threshold_t { + /** Type of threshold */ + odp_threshold_type_e type; + union { + struct { + /** Max percentage value */ + odp_percent_t max; + /** Min percentage value */ + odp_percent_t min; + } percent; + struct { + /** Max packet count */ + uint64_t max; + /** Min packet count */ + uint64_t min; + } pkt_count; + struct { + /** Max size of all packets */ + uint64_t max; + /** Min size of all packets */ + uint64_t min; + } pkt_size; + }; +} odp_threshold_t; + +#ifdef __cplusplus +} +#endif + +#include +#endif diff --git a/platform/linux-generic/include/odp/api/threshold.h b/platform/linux-generic/include/odp/api/threshold.h new file mode 100644 index 000000000..f4f362852 --- /dev/null +++ b/platform/linux-generic/include/odp/api/threshold.h @@ -0,0 +1,34 @@ +/* Copyright (c) 2017, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @file + * + * ODP threshold API - platform specific header + */ + +#ifndef ODP_PLAT_THRESHOLD_H_ +#define ODP_PLAT_THRESHOLD_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +/** @ingroup odp_threshold + * @{ + */ + +/** + * @} + */ + +#include + +#ifdef __cplusplus +} +#endif + +#endif From patchwork Mon Nov 6 13: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: 118029 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2740521qgn; Mon, 6 Nov 2017 05:03:10 -0800 (PST) X-Google-Smtp-Source: ABhQp+T9B9+OSWgM6D2Q4v/PAF0MUqglK+Q+rVacb+eRl3ZGMVuA10s+8UjDqoKSoOGWNOC/pxFn X-Received: by 10.55.46.3 with SMTP id u3mr20877749qkh.340.1509973389997; Mon, 06 Nov 2017 05:03:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509973389; cv=none; d=google.com; s=arc-20160816; b=hG+wyN5PQk5dtraNsrfgEhq4ty/mJ8bAHZZMXio48/KD5SL/8x4AUYnX5sqJdn5FyZ J3rFqw6MEh45BHUd5O7CYrTChD/M2jtAfj20ps9vurWmm7QIm11RmOePYfZnNVMuJaiH uFPeGIyAc/LrK0pyTLvRAAOMez7d3I3BWBH1x5jHs83CEhmI+kDMOv561yjcMuk9ujb7 8NRNcQG9TwfxU6BhX/jesdYwdcFnXEwR4IvO4H1e/dGjexaxA+4+r4X4ovXrWS4hZL7d qUCrFcDvdANA1isOAx8Hfu9arqcPOun/Lw+NOnspL6Bh3enYx1Yde9r5TIMZMfOQ+Fn3 6f3Q== 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=MnsKMVtlCez45ewlXShn7Rv6yCxkB4k07D6rHhOc15g=; b=RL519XM6ZKy5DZvtxPtXUV4n0hhOYaFAciGifUuCQjGcVOrQJuAej5vB7YsO+1pwPl PZkKuubz1ORIAA4BYo099LrNs4fGgwh09m0c8qidLW7qmTwOwm6EfsxM3OqRuHsaEUU5 K2zCzBOsoeb7Qzb9Qcg7UOLL3erhVEYQElMC11DWI4jElV1g3cyYg7MparkdqNvJwkd0 NBsG36Lo38PgKeqZilc5qna5xrqGYarSVk4m9pAMVKAq0BLjYSzsjt0dX71V+JZynwNW YbU0t4idUHEss/AhRjJehqj9JMxjO6uONgYMFPxjmfSB5Ya1WARjP9T59o9e2IoUf0dO 0Heg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id l22si2382228qkj.89.2017.11.06.05.03.09; Mon, 06 Nov 2017 05:03:09 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id B3C7160C0B; Mon, 6 Nov 2017 13:03: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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 A861B60BF1; Mon, 6 Nov 2017 13:00:38 +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 48417607A0; Mon, 6 Nov 2017 13:00:18 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id CF9576069B for ; Mon, 6 Nov 2017 13:00:11 +0000 (UTC) Received: from mxback18j.mail.yandex.net (mxback18j.mail.yandex.net [IPv6:2a02:6b8:0:1619::94]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 51CDA1344CAD for ; Mon, 6 Nov 2017 16:00:10 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback18j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id LTIKUJRFLm-0AdmFrIr; Mon, 06 Nov 2017 16:00:10 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id nU8zA9xMmR-09hGruYs; Mon, 06 Nov 2017 16:00:09 +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: Mon, 6 Nov 2017 16:00:02 +0300 Message-Id: <1509973206-1972-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> References: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 277 Subject: [lng-odp] [PATCH API-NEXT v1 3/7] api: red: random early detection and back pressure 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: Balasubramanian Manoharan adds random early detection configuration parameter adds back pressure configuration parameter Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 277 (bala-manoharan:RED) ** https://github.com/Linaro/odp/pull/277 ** Patch: https://github.com/Linaro/odp/pull/277.patch ** Base sha: d22c949cc466bf28de559855a1cb525740578137 ** Merge commit sha: f8726f45026a85ce1dde794190c1eb35945dca3f **/ include/odp/api/spec/red.h | 79 ++++++++++++++++++++++++++++ platform/linux-generic/include/odp/api/red.h | 30 +++++++++++ 2 files changed, 109 insertions(+) create mode 100644 include/odp/api/spec/red.h create mode 100644 platform/linux-generic/include/odp/api/red.h diff --git a/include/odp/api/spec/red.h b/include/odp/api/spec/red.h new file mode 100644 index 000000000..c1aee238c --- /dev/null +++ b/include/odp/api/spec/red.h @@ -0,0 +1,79 @@ +/* Copyright (c) 2017, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @file + * + * ODP RED + */ + +#ifndef ODP_API_RED_H_ +#define ODP_API_RED_H_ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include + +/** Random Early Detection (RED) + * Random Early Detection is enabled to initiate a drop probability + * for the incoming packet when the packets in the queue/pool reaches + * a specified threshold. + * When RED is enabled for a particular flow then further incoming + * packets are assigned a drop probability based on the size of the + * pool/queue and the drop probability becomes 100% when the queue/pool + * is full. + * RED can be configured either in pool or queue depending on the platform + * capabilities. + */ +typedef struct odp_red_param_t { + /** A boolean to enable RED + * When true, RED is enabled and configured with RED parameters. + * Otherwise, RED parameters are ignored. */ + odp_bool_t red_enable; + + /** Threshold parameters for RED + * RED is enabled when the resource limit is equal to or greater than + * the maximum threshold value and is disabled when resource limit + * is less than or equal to minimum threshold value. */ + odp_threshold_t red_threshold; +} odp_red_param_t; + +/** Back pressure (BP) + * When back pressure is enabled for a particular flow, the HW can send + * back pressure information to the remote peer indicating a network congestion. + * Back pressure can be configured either in the pool or queue based on the + * platform capabilities. + */ + +typedef struct odp_bp_param_t { + /** A boolean to enable Back pressure + * When true, back pressure is enabled and configured with the BP + * parameters. Otherwise BP parameters are ignored. + */ + odp_bool_t bp_enable; + + /** Threshold value for back pressure. + * BP is enabled when queue or pool value is equal to or greater + * than the max backpressure threshold. + * Min threshold parameters are ignored for BP configuration. + */ + odp_threshold_t bp_threshold; +} odp_bp_param_t; + +/** + * @} + */ + +#ifdef __cplusplus +} +#endif + +#include +#endif diff --git a/platform/linux-generic/include/odp/api/red.h b/platform/linux-generic/include/odp/api/red.h new file mode 100644 index 000000000..8bd1596e5 --- /dev/null +++ b/platform/linux-generic/include/odp/api/red.h @@ -0,0 +1,30 @@ +/* Copyright (c) 2017, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @file + * + * ODP RED + */ + +#ifndef ODP_PLAT_RED_H_ +#define ODP_PLAT_RED_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @} + */ + +#include + +#ifdef __cplusplus +} +#endif + +#endif From patchwork Mon Nov 6 13: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: 118030 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2741500qgn; Mon, 6 Nov 2017 05:03:58 -0800 (PST) X-Google-Smtp-Source: ABhQp+SwYcBOsTHB0X64jYghQg4Rr2H3Ewx+K4NT5efdMlAgbdLOFV/qt+AEtYp5GcQVl4xN2Xo1 X-Received: by 10.200.35.42 with SMTP id a39mr23299766qta.9.1509973438417; Mon, 06 Nov 2017 05:03:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509973438; cv=none; d=google.com; s=arc-20160816; b=gc5K2UHygiVoccKB5p0h6wOZUVOq3ZRxCivTVE7lMiBvVEsMDLXjmGRmNBviExv4Ea 9SR9l4TH4Ob6X349JdDDEVMgH9u/cGdrSdPsKA34lI07LIXkk/ivRUYPIGtcCQgznu5p OiNC5vdbAxU+k44ub2clRQqrRJYe0PiGXZ+QZsfAvjl7PfxWUm0QOV8geBTWuKVjgQPI OsP1BAL765r/yTgai7VMmKc4qjD3MlmFv3c8UhKi22hFur1KJyCvRN9Hc3mS+cQuv6nj fejNplMIMNnTUyYcoOfhZmkhocciHGJpa0I1bN1foHudp3rPghftyOzErpA6aN3DQ0FA PPlg== 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=sEbsa8kbnAJ+u4qU5x1gI6ERw4SsfDo61XoA21HVrYg=; b=PrmwOu7I9g8f7Lb7KXxAen9hwVlURL5AuoOLDMeyRxGRkNBt6nbT0Os3spJQzbzbGa sLC+skYpnu/6RmPHmushKS7+qDRNC4DAooUD8aAcSyFR7zVQUGLJQDWKASVI6kUC9qe2 ctN9FDm4+wFD+ey8sGdr/3+fhKSAC0Px3Du+lAnk76gSx83TMxWPw8+2KmpLxut6o89x vcaBG7r1puWMZCVlQsRmdvXv6gdDibajvYUFYov473/d6UjzE2JLAcpPypni/pDSUGnV LTYCfb/atWai6K6SF7uly0SAfjlIuXCHiV98rSK9Frg2KBRPT+mHPKI8BOk1nz+iGQ/A OPQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id p88si336044qkl.102.2017.11.06.05.03.58; Mon, 06 Nov 2017 05:03:58 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 032F160C0B; Mon, 6 Nov 2017 13:03:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 DCD1960BF6; Mon, 6 Nov 2017 13:00:45 +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 26D696069F; Mon, 6 Nov 2017 13:00:19 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id 17AAA60756 for ; Mon, 6 Nov 2017 13:00:12 +0000 (UTC) Received: from mxback1j.mail.yandex.net (mxback1j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10a]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 01E061344CBC for ; Mon, 6 Nov 2017 16:00:11 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback1j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 2VgPmrEhaD-0ACaablK; Mon, 06 Nov 2017 16:00:10 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id nU8zA9xMmR-0AheNbFY; Mon, 06 Nov 2017 16:00:10 +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: Mon, 6 Nov 2017 16:00:03 +0300 Message-Id: <1509973206-1972-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> References: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 277 Subject: [lng-odp] [PATCH API-NEXT v1 4/7] api: pool: add RED and BP configuration 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: Balasubramanian Manoharan adds random early detection and back pressure configuration to pool Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 277 (bala-manoharan:RED) ** https://github.com/Linaro/odp/pull/277 ** Patch: https://github.com/Linaro/odp/pull/277.patch ** Base sha: d22c949cc466bf28de559855a1cb525740578137 ** Merge commit sha: f8726f45026a85ce1dde794190c1eb35945dca3f **/ include/odp/api/spec/pool.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/include/odp/api/spec/pool.h b/include/odp/api/spec/pool.h index 35f783775..beb2612e6 100644 --- a/include/odp/api/spec/pool.h +++ b/include/odp/api/spec/pool.h @@ -20,6 +20,8 @@ extern "C" { #endif #include +#include +#include /** @defgroup odp_pool ODP POOL * Operations on a pool. @@ -134,6 +136,19 @@ typedef struct odp_pool_capability_t { * The value of zero means that limited only by the available * memory size for the pool. */ uint32_t max_uarea_size; + + /** Support for Random Early Detection */ + odp_support_t random_early_detection; + + /** Supported threshold type for RED */ + odp_threshold_type_t threshold_red; + + /** Support for Back Pressure to the remote peer */ + odp_support_t back_pressure; + + /** Supported threshold type for BP */ + odp_threshold_type_t threshold_bp; + } pkt; /** Timeout pool capabilities */ @@ -228,6 +243,12 @@ typedef struct odp_pool_param_t { capability pkt.max_headroom. Use zero if headroom is not needed. */ uint32_t headroom; + + /* Random Early Detection configuration */ + odp_red_param_t red; + + /* Back Pressure configuration */ + odp_bp_param_t bp; } pkt; /** Parameters for timeout pools */ From patchwork Mon Nov 6 13: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: 118032 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2743532qgn; Mon, 6 Nov 2017 05:05:37 -0800 (PST) X-Google-Smtp-Source: ABhQp+TYvpidtie3CMAcgDfJiMIO5GLUZ87MXu5KyC2aCxo0TnCukPK9UpbXJqYSpBxZJIKLILtm X-Received: by 10.55.44.3 with SMTP id s3mr8236051qkh.122.1509973537606; Mon, 06 Nov 2017 05:05:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509973537; cv=none; d=google.com; s=arc-20160816; b=zowFwOzB51f5tw0UL7JjjksisQtJh/X9/bY2GbbTUAv8HGf6+TucfmIYkOZLWnhh1z H2mipBiI/Y8YiF29hahsjLQDVzci7qYIpbA+/PckLToLrdXQYonmDS3ijLGnNwMPOtiq ppjuGkGeQuqxHMrXOGoORR1/l7AfC2NE4EoDc0fE8W0Jc6QOb0YvsThKPCyOgAnUd4rD /n42soHGZq6j5tIB2WVghghbYZqAJp2jbFRhuPfaiipaWET/CcVtz6PEGqYfNb5msWms Hi2nKF4hJXAR6gJscQujIXv6GldHsh2ZB85vlTmmtFmeQx1muYk9R/vMw4Ec8dO2w+7U 5fOQ== 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=3bFNvQ2d6o0CQe7GOXm1wNlyHQtYX4thuCs9bXPZ3JQ=; b=hwzdVknoOyIxU3SYo541Peo0U70vdrW7iCYqGt71F93eMqzLFmA7792hlrANNLJ172 qAnegVOm1+U7fGOf/sXOC6AQcpWaYmocGMOE1ocN7dn2DQ0uLhXniTVTJi7rFbWlf8sW 7aV5lzeHsTDwzMMrtby+C4sr0aY2JyaU4RUv2qhiXhAVhMcO+6X44x4rUOQXSElWSdS/ uaOerup2exia6q3LHRdvHXyk7i3s30G3M/f9yglgxSGOg3hDtFZg73r8+svs2gtauf99 urxue/+9t7QAwhjm2/QOY+KXaM8AyOA2UnPPM0ISgehga3d/+KRwbMagjxA/9p5OEtpK O9Eg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id j123si9459868qkd.58.2017.11.06.05.05.37; Mon, 06 Nov 2017 05:05:37 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 4667760BFE; Mon, 6 Nov 2017 13:05:37 +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=-5.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, 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 67A9760C21; Mon, 6 Nov 2017 13:00: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 E18BA60ABB; Mon, 6 Nov 2017 13:00:23 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id 2F84660455 for ; Mon, 6 Nov 2017 13:00:13 +0000 (UTC) Received: from mxback14g.mail.yandex.net (mxback14g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:93]) by forward105o.mail.yandex.net (Yandex) with ESMTP id A88804444D03 for ; Mon, 6 Nov 2017 16:00:11 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback14g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id kx1klewjik-0BBq5Hg9; Mon, 06 Nov 2017 16:00:11 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id nU8zA9xMmR-0BhekS8J; Mon, 06 Nov 2017 16:00:11 +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: Mon, 6 Nov 2017 16:00:04 +0300 Message-Id: <1509973206-1972-6-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> References: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 277 Subject: [lng-odp] [PATCH API-NEXT v1 5/7] api: queue: add RED and BP configuration 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: Balasubramanian Manoharan adds random early detection and back pressure configuration to queue Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 277 (bala-manoharan:RED) ** https://github.com/Linaro/odp/pull/277 ** Patch: https://github.com/Linaro/odp/pull/277.patch ** Base sha: d22c949cc466bf28de559855a1cb525740578137 ** Merge commit sha: f8726f45026a85ce1dde794190c1eb35945dca3f **/ include/odp/api/spec/queue.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h index 73598be06..504720e8d 100644 --- a/include/odp/api/spec/queue.h +++ b/include/odp/api/spec/queue.h @@ -21,6 +21,8 @@ extern "C" { #include #include +#include +#include /** @defgroup odp_queue ODP QUEUE * Macros and operation on a queue. @@ -114,6 +116,18 @@ typedef struct odp_queue_capability_t { /** Number of scheduling priorities */ unsigned sched_prios; + /** Support for Random Early Detection */ + odp_support_t random_early_detection; + + /** Supported threshold types for RED */ + odp_threshold_type_t threshold_red; + + /** Support for Back Pressure to the remote peer */ + odp_support_t back_pressure; + + /** Supported threshold types for BP */ + odp_threshold_type_t threshold_bp; + /** Plain queue capabilities */ struct { /** Maximum number of plain queues of the default size. */ @@ -202,6 +216,11 @@ typedef struct odp_queue_param_t { * default size. */ uint32_t size; + /* Random early detection configuration */ + odp_red_param_t red; + + /* Back Pressure configuration */ + odp_bp_param_t bp; } odp_queue_param_t; /** From patchwork Mon Nov 6 13: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: 118031 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2742544qgn; Mon, 6 Nov 2017 05:04:48 -0800 (PST) X-Google-Smtp-Source: ABhQp+RTH2dsqmMS30cGeNfnbuq2YZqDNnDxeNLLyv4bEjRGifcPm8d1PFDGqogH3MYPs/mV51hg X-Received: by 10.107.20.209 with SMTP id 200mr18735750iou.219.1509973488343; Mon, 06 Nov 2017 05:04:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509973488; cv=none; d=google.com; s=arc-20160816; b=MSl/v37FS2s9CsPPTBX66MVStRRAowsBmdARuEmJdX9IoT8yGlKIKAgKKp4CSv7Bk7 WLpwTWK2IsK/i1FekyyhXVJIBIXKsy3pwQdf4rUWp9OMymXCBK02148CmReMQ5q6WMq5 EmyfjI2FsyA00ye+ZE8vToKGuBzhQ1fAKoSBqIT/5mqOmme8gPwBiWpCPP1z0CNQgfL5 X34rDPSBv8Re+ahKw7HwqpD8qOlsDmwY+CD87aTSFY5OcKo9f2k+vlC2Jk0VblbFCwjl J1uwlDqqu794fj8QYo0dObsRgrSH7fRRPZyxqEC2wR1Fqut50L8YHFCruG7ytzxqYQDK AxRw== 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=07oDVu6TrZiWif022g9d0y6YgB9RNLw8h8prdzxaKvg=; b=T+mgXJ3IN5ftBvk5agPR1JRiCFAU2v344kbbYs53gi71qx4GGFR4Ml+y83AhPVwsyW RjeIEi3lo0QEim+hHpQxyWclKgp/Wwl1FMlaH0g56iM4oc2/Ra91W5iz5aULxvvLxJ2R +f7vm1vBxpBEawoIKiZr9jvKe0PDgw41Ur1a7Uhvhl1Aw/ETeVkCtsdwU5Vae6RHd5WR Emj7elSA4cyMN5esq1+8VeGIf/NZZR8RNOTT2t/smZWSosxDrotv1gr6KXhsh1ZIvtgr 6VL62a+KR1T5elaZVl8PADP98WA1hNJfj1lK7OBLCZW/bS5BoIO/4hiMF9oo/t7T0cXD 5+zg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id 123si7886507itm.139.2017.11.06.05.04.48; Mon, 06 Nov 2017 05:04:48 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id D204260C01; Mon, 6 Nov 2017 13:04:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 0ABA960C18; Mon, 6 Nov 2017 13:00:50 +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 6652A6069F; Mon, 6 Nov 2017 13:00:20 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id B33DF60762 for ; Mon, 6 Nov 2017 13:00:13 +0000 (UTC) Received: from mxback3j.mail.yandex.net (mxback3j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10c]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 4693740849A0 for ; Mon, 6 Nov 2017 16:00:12 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback3j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 36fhXNy5wQ-0Ci4Odv0; Mon, 06 Nov 2017 16:00:12 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id nU8zA9xMmR-0BhqD9cZ; Mon, 06 Nov 2017 16:00:11 +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: Mon, 6 Nov 2017 16:00:05 +0300 Message-Id: <1509973206-1972-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> References: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 277 Subject: [lng-odp] [PATCH API-NEXT v1 6/7] linux-generic: pool: implementation for RED and BP 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: Balasubramanian Manoharan linux-generic does not support RED and BP at pool level Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 277 (bala-manoharan:RED) ** https://github.com/Linaro/odp/pull/277 ** Patch: https://github.com/Linaro/odp/pull/277.patch ** Base sha: d22c949cc466bf28de559855a1cb525740578137 ** Merge commit sha: f8726f45026a85ce1dde794190c1eb35945dca3f **/ platform/linux-generic/odp_pool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c index 40114093a..f3262bae1 100644 --- a/platform/linux-generic/odp_pool.c +++ b/platform/linux-generic/odp_pool.c @@ -928,6 +928,8 @@ int odp_pool_capability(odp_pool_capability_t *capa) capa->pkt.min_seg_len = CONFIG_PACKET_SEG_LEN_MIN; capa->pkt.max_seg_len = max_seg_len; capa->pkt.max_uarea_size = MAX_SIZE; + capa->pkt.random_early_detection = ODP_SUPPORT_NO; + capa->pkt.back_pressure = ODP_SUPPORT_NO; /* Timeout pools */ capa->tmo.max_pools = ODP_CONFIG_POOLS; From patchwork Mon Nov 6 13: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: 118033 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2743589qgn; Mon, 6 Nov 2017 05:05:40 -0800 (PST) X-Google-Smtp-Source: ABhQp+Tzv7NkKd/7uTSdYY4l5ttjViVw6KSjqXhQegoZJGTKTcXKEkHX5uaBLFl9E8rwRhg/ivrM X-Received: by 10.37.181.10 with SMTP id p10mr9380873ybj.10.1509973540148; Mon, 06 Nov 2017 05:05:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509973540; cv=none; d=google.com; s=arc-20160816; b=tQcl7Py1C4fAAZZcMdGugOtx3GUFsdJXXUtM5wbPsb18MouzKEfg+kIo6Oly4yq15m L6PVte5G/hP1ioljfERwRqSIzAxTFBTHQVrWi92K6CClunaCiO/d8Jv6EgxhY5aYawIz rbMDPVNbQABqU3bn93X8e0pVb4XjNn1b0unEZ/+vk6R0b8BPyXAzh9QyS49cH2pTcBJi OiuqAhQe7I0j9GbhH6DW4PHfB+Bk6HJrPITKAcQEtmZVgw4KO6AxnCL8uXyvo9hyezmo VT2xNFlKUzkGjLGN+D5v9tGZTmLg+UXtglFV04xlxJTSgj70uiITp9GSBgtpk1I6rjda ILaA== 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=e38LKySkUCmohhg6Q2rDv/P3qo/eDTb0WNR/AB2ynPk=; b=YtkOGWUcUwfYpmHGIiwQFFKiVaF59k2qOpD6tFk/+hqrQm5vVmU2JY4FtCg8BqfgOi 7Fosg2dQSXPelXwQaQGEKxfr+4D5xNbgnABq4La5/ZJAirh2+VbdpKBzGgWy51hY2NGB SAi7ND3fnpf9L/t//su/peTAATShcUh6ZeyiqAKc3nvUuSb7mzocKAQSSIWNsEYbIixp K3pfUbG4E4aQMH3pp01lq0K1SOa3HMTxrkjjhf/Bd1y+A5ANb7QmH8AWvcWqh2g9rDdy LmBBvnYwSq3zO0TK1frKue314lK+w5iuk97WeHd3r2wr31t7SI9eqMEvw6dS3NpqUHTQ Qk3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id v18si612913qtf.36.2017.11.06.05.05.39; Mon, 06 Nov 2017 05:05:40 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id C57BE60C21; Mon, 6 Nov 2017 13:05:39 +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 9803F60C37; Mon, 6 Nov 2017 13:00: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 04AB66069B; Mon, 6 Nov 2017 13:00:23 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id D0AD460765 for ; Mon, 6 Nov 2017 13:00:13 +0000 (UTC) Received: from mxback6j.mail.yandex.net (mxback6j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10f]) by forward100j.mail.yandex.net (Yandex) with ESMTP id BEF945D84BB3 for ; Mon, 6 Nov 2017 16:00:12 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback6j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Fwcy7SmhIx-0CpWIKnM; Mon, 06 Nov 2017 16:00:12 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id nU8zA9xMmR-0CheiEZf; Mon, 06 Nov 2017 16:00:12 +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: Mon, 6 Nov 2017 16:00:06 +0300 Message-Id: <1509973206-1972-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> References: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 277 Subject: [lng-odp] [PATCH API-NEXT v1 7/7] linux-generic: queue: implementation for RED and BP 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: Balasubramanian Manoharan linux-generic does not support RED and BP at queue level. Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 277 (bala-manoharan:RED) ** https://github.com/Linaro/odp/pull/277 ** Patch: https://github.com/Linaro/odp/pull/277.patch ** Base sha: d22c949cc466bf28de559855a1cb525740578137 ** Merge commit sha: f8726f45026a85ce1dde794190c1eb35945dca3f **/ platform/linux-generic/odp_queue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c index 3f355e695..8d90bef54 100644 --- a/platform/linux-generic/odp_queue.c +++ b/platform/linux-generic/odp_queue.c @@ -151,7 +151,8 @@ static int queue_capability(odp_queue_capability_t *capa) capa->sched_prios = odp_schedule_num_prio(); capa->plain.max_num = capa->max_queues; capa->sched.max_num = capa->max_queues; - + capa->random_early_detection = ODP_SUPPORT_NO; + capa->back_pressure = ODP_SUPPORT_NO; return 0; }