From patchwork Fri Oct 13 14:00:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 115773 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp768329qgn; Fri, 13 Oct 2017 07:03:21 -0700 (PDT) X-Google-Smtp-Source: AOwi7QC3Lg+h2CIkobH2pYSHLAds6aSGers9XXLcS/em21EsHpexr1spilDxDlWkBJxdwrRyeqCW X-Received: by 10.107.153.18 with SMTP id b18mr1039167ioe.231.1507903401787; Fri, 13 Oct 2017 07:03:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507903401; cv=none; d=google.com; s=arc-20160816; b=mY58PtI+UFuZ8OglMDoOgXeMP7o5sZ0uKXVE9afmsq3Z8HrwlfN2a41M8SSKzopSjR WaAKOJHD750xMEzB48r3XkKF+lG8aYed204qWXkpZM4Gbfb4Sw082EIPRPYECjZQUBWu ueOTPN5t3yjUNwQW9pqZVTRDFleC+zJ8XaDi2iI2z3zFxGARe6c3hvfgVfiLRVLQX37Z 8wx4lUJKT9idYK/3x1lCdEt9DHjM8UUHMRtvMK3Yq9eow55sA8mup7O5lm5UHjg2RYnj aCWlZjxFjTLMulaYum6bdL9wPE9XHswzI0ZifLa3vm8FGZ3ZRENjPeOMwbVq5hoClrF/ YKLA== 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=A6Xx+9EoNy6ii4+q0nNHht6M9DaLtsWMniCvCiFJJJQ=; b=UGRG7nK9rgYq50tEWXs3YK2EbDZefOHsqZD6VI0BSfDWZ7Drs1riDkBMCbSDa4jDBn EQnHMaYypJ7domyjPv0cQIexDqg94rIuhCdUCBkKXlsyN85+FVs2rertWhM+Ty2ftQjB vPmIdpKAYgREWA1+1qikdbR0KNj+NUCJ6jyfBQj8CHP85TMJ6zgttmrIoZ456xBXXx2X /UIy61xR3Hu7NTjC7vRWl/CLYVaXJAozYVpnqz5qJxAxiBv0DBfZM3CXjoVyJaWArnCw lEzIbCie9Q3JggBiJO/NBSHSIRUJis0utYQkdGqFP7dNRy3hD/ZAb6OUBG+WV2L0SZiu oa5A== 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 p203si325651itd.41.2017.10.13.07.03.20; Fri, 13 Oct 2017 07:03:21 -0700 (PDT) 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 EC2D760CDC; Fri, 13 Oct 2017 14:03:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, 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 B717660BE9; Fri, 13 Oct 2017 14:01:19 +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 4978960933; Fri, 13 Oct 2017 14:01:02 +0000 (UTC) Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [5.45.198.247]) by lists.linaro.org (Postfix) with ESMTPS id D45E260958 for ; Fri, 13 Oct 2017 14:00:55 +0000 (UTC) Received: from mxback6o.mail.yandex.net (mxback6o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::20]) by forward104j.mail.yandex.net (Yandex) with ESMTP id 734C74168D for ; Fri, 13 Oct 2017 17:00:54 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback6o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id AdKVWVLJWp-0suawCMi; Fri, 13 Oct 2017 17:00:54 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id pgUFO1LS0d-0rGWrLA6; Fri, 13 Oct 2017 17:00:53 +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: Fri, 13 Oct 2017 17:00:09 +0300 Message-Id: <1507903211-14959-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507903211-14959-1-git-send-email-odpbot@yandex.ru> References: <1507903211-14959-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 172 Subject: [lng-odp] [PATCH API-NEXT v11 1/3] 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 172 (bala-manoharan:random_early_discard) ** https://github.com/Linaro/odp/pull/172 ** Patch: https://github.com/Linaro/odp/pull/172.patch ** Base sha: 60a1a4f1cc531d7f0117cd79daf1cbe4206e12ef ** Merge commit sha: 2474b4010dd04284d1bd9c312a3f4373d9ed5c5c **/ 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 Fri Oct 13 14:00:10 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: 115772 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp767075qgn; Fri, 13 Oct 2017 07:02:34 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RKMrCfIfw1cjBoatbZy2rO0rageJIu2uzE83OZLkr6cB+BDgDqJASlkw19iV8cubxpkhaB X-Received: by 10.107.33.17 with SMTP id h17mr1876473ioh.167.1507903354231; Fri, 13 Oct 2017 07:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507903354; cv=none; d=google.com; s=arc-20160816; b=ufKcucNDcBfZmAlMncPRnD/xE8ETH+5Z62V8gQHWpBZPHUPjWwk8XeJUTj5UtD7IEO bmbu6jb6wHEOaKfxWzb7AOkDBr/VmmAFfoj4v0uELcgw14A+XP1WjVOfIB9950dH5bXW ooNa/IXq0SSZUCa/DSpfnwTfKruY6AAdBzlglOl6mxTCVsWjKPFfFSctWcE9Jn3XsPFA Lyibq4zC15VycBSxFRII+cmvFtPW2BHcdMi5Hio43ggo8viqcK6i1OZdJiKZOuwmAANm eFchSJXJGkDz+IkGr3I2Jb5fbYvTzpyMRfwXEH31HzsaL/42TEtfXXP2cfnlHCzfKgSo hmFA== 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=01L12uX6PsTKbShaJLBglh4N/d354WGHl+J16cRQnqE=; b=XvYzVzy6/ik+MZtfcO9+NZxoD4wF5ptrxrsiJc0C+O31cSYTxnFVWcU8G4dPivRufT PJFd2INs7CAQi2tig10PXDVouGmwEqrEkv0hOgCC8HCJk6PfwhOUYeP4duU0TcMev59c rLSZuV+E+1n2G3GNK0+YpBMsgz8vGTytJZCDJ9x52WpqM32M6sByQFepy7gBLFS/cDdP fFjOU5/7KYeIRRnJ8egwikHOkwiUjRm4u8ceCtgV8CaSoi+FC3HRvYrY73p52B0Buvh6 Q/CB9AryeIqcsVv/Nhofji0XKPQB2XfrM+AB4WntMTgT+kk5rbTnHuo4h7BrHiJjIj5I UR7A== 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 132si321731itg.25.2017.10.13.07.02.32; Fri, 13 Oct 2017 07:02:34 -0700 (PDT) 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 A1B1F60CA3; Fri, 13 Oct 2017 14:02: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,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 56A73609D1; Fri, 13 Oct 2017 14:01:12 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4C73460961; Fri, 13 Oct 2017 14:00:59 +0000 (UTC) Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by lists.linaro.org (Postfix) with ESMTPS id CDEF160918 for ; Fri, 13 Oct 2017 14:00:56 +0000 (UTC) Received: from mxback6o.mail.yandex.net (mxback6o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::20]) by forward100o.mail.yandex.net (Yandex) with ESMTP id 0F0962A22F9D for ; Fri, 13 Oct 2017 17:00:55 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback6o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id EYCqMQ1gqm-0tuCVAVf; Fri, 13 Oct 2017 17:00:55 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id pgUFO1LS0d-0sGqb5db; Fri, 13 Oct 2017 17:00:54 +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: Fri, 13 Oct 2017 17:00:10 +0300 Message-Id: <1507903211-14959-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507903211-14959-1-git-send-email-odpbot@yandex.ru> References: <1507903211-14959-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 172 Subject: [lng-odp] [PATCH API-NEXT v11 2/3] api: classification: add 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 and Back pressure feature to CoS Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 172 (bala-manoharan:random_early_discard) ** https://github.com/Linaro/odp/pull/172 ** Patch: https://github.com/Linaro/odp/pull/172.patch ** Base sha: 60a1a4f1cc531d7f0117cd79daf1cbe4206e12ef ** Merge commit sha: 2474b4010dd04284d1bd9c312a3f4373d9ed5c5c **/ include/odp/api/spec/classification.h | 56 +++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/include/odp/api/spec/classification.h b/include/odp/api/spec/classification.h index 0c4a95c5f..4e6842187 100644 --- a/include/odp/api/spec/classification.h +++ b/include/odp/api/spec/classification.h @@ -135,6 +135,13 @@ typedef struct odp_cls_capability_t { /** A Boolean to denote support of PMR range */ odp_bool_t pmr_range_supported; + + /** Support for Random Early Detection */ + odp_support_t random_early_detection; + + /** Support for Back Pressure to the remote peer */ + odp_support_t back_pressure; + } odp_cls_capability_t; /** @@ -206,6 +213,55 @@ typedef struct odp_cls_cos_param { /** Drop policy associated with CoS */ odp_cls_drop_t drop_policy; + + /** 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 is logically configured in the CoS and could be implemented + * in either pool or queue linked to the CoS depending on + * platform capabilities. + * RED is controlled using maximum and minimum threshold values + * which are defined as percentage of the system resource. + * 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. */ + + /** 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; + + /** RED parameters */ + struct { + /** Threshold percentage values for RED */ + + /** Maximum threshold percentage for RED */ + odp_percent_t max_threshold; + + /** Minimum threshold percentage for RED */ + odp_percent_t min_threshold; + } red; + + /** A boolean to enable Back pressure + * When true, back pressure is enabled and configured with the BP + * parameters. Otherwise BP parameters are ignored. When back pressure + * is enabled for a particular flow, the HW can send back pressure + * information to the remote peer indicating a network congestion */ + odp_bool_t bp_enable; + + /** BP parameters */ + struct { + /** Threshold percentage values for back pressure. + * BP is enabled when pool/queue size is equal to or greater + * than the backpressure threshold. BP threshold is expressed + * as a percentage of the pool/queue size. */ + odp_percent_t bp_threshold; + } bp; } odp_cls_cos_param_t; /** From patchwork Fri Oct 13 14:00:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 115771 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp766000qgn; Fri, 13 Oct 2017 07:01:52 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RAq5rUhII7m0cVBtZXK50sCDCeYTLRWfuNYixDVsaHtjRcyVGPtqwGJLWBJBeK79UMEMCE X-Received: by 10.36.94.129 with SMTP id h123mr2433482itb.64.1507903312877; Fri, 13 Oct 2017 07:01:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507903312; cv=none; d=google.com; s=arc-20160816; b=AiuTWGST8PmMaycQMECeo/I1eXdrP1A/27HBgJ01zLIqn4Rx20IHHKyIrKjcv/4oY6 174bd5Sq/bT9u5A338HLFc66NuZcayXzJQYViizAlPEZX1EbgJGlZNUK8FH8609GVr2x He3ftRLkjURsiLFEMKI/oVI2jyRf/I5LZKjAkxWBSSmExa8qbROgnXRaISDEXj97KyG+ c9/7v4r+hUbnbvuT2sk/4qRIIibeMQcKED1Qt8SZAkqeqNqobkBDNinLtBBWLLwOkpbX I+giichVIYICH+Me/y+nhvA0122Ie4lQAF4B27dNn5ZsVfCyqXmWkEqitHStSEL0cCFR RzWA== 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=27IOXOVi5HK3EKvsCMAynJ9fDLYAf/yVZ3NIv3NvnCk=; b=Gxp8Oq6/rnDKrGSNsUrpv7LTgiUiVTV87buqfjkuVGi1a8A3/reiKnjeARRSE0KHv/ vLxeuLqmmJSmNDvq5naqPakvz5B4oW4rNPev2+0trgXMLs0qKK6VpgGEo2uPNkdqpPIj fI7yN8ZDMOh9v6zlqhJjuf6SAOJY6HieZrm7hZwEglqMHbJqtJaPrXjvXAGnszjs1ssX z9ubBt21xH1ju2mEEOgujmK/mA8ZzMtCHcjec/OGY04oG2X/fWP5PNjlGy8dIPxiH01t T/VjTybuMzGTqB8BRm9s3AyDpAIj8YAMgz3w8dJQuEz2sakUC0Ek/3rSVpt4P02G5alr xYdw== 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 j100si686858ioo.267.2017.10.13.07.01.51; Fri, 13 Oct 2017 07:01:52 -0700 (PDT) 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 294CB60AF1; Fri, 13 Oct 2017 14:01: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=-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 EA5FF60988; Fri, 13 Oct 2017 14:01:07 +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 25B1F60966; Fri, 13 Oct 2017 14:00:58 +0000 (UTC) Received: from forward103o.mail.yandex.net (forward103o.mail.yandex.net [37.140.190.177]) by lists.linaro.org (Postfix) with ESMTPS id EA8CF60933 for ; Fri, 13 Oct 2017 14:00:56 +0000 (UTC) Received: from mxback5g.mail.yandex.net (mxback5g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:166]) by forward103o.mail.yandex.net (Yandex) with ESMTP id E1BBE588316C for ; Fri, 13 Oct 2017 17:00:55 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback5g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id IekcwEuHV0-0tn4Alkf; Fri, 13 Oct 2017 17:00:55 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id pgUFO1LS0d-0tGKbD0G; Fri, 13 Oct 2017 17:00:55 +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: Fri, 13 Oct 2017 17:00:11 +0300 Message-Id: <1507903211-14959-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507903211-14959-1-git-send-email-odpbot@yandex.ru> References: <1507903211-14959-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 172 Subject: [lng-odp] [PATCH API-NEXT v11 3/3] linux-generic: classification: implement 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 Implements Random early detection and Back pressure Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 172 (bala-manoharan:random_early_discard) ** https://github.com/Linaro/odp/pull/172 ** Patch: https://github.com/Linaro/odp/pull/172.patch ** Base sha: 60a1a4f1cc531d7f0117cd79daf1cbe4206e12ef ** Merge commit sha: 2474b4010dd04284d1bd9c312a3f4373d9ed5c5c **/ platform/linux-generic/odp_classification.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/linux-generic/odp_classification.c b/platform/linux-generic/odp_classification.c index a5cba56a4..7fa125ec2 100644 --- a/platform/linux-generic/odp_classification.c +++ b/platform/linux-generic/odp_classification.c @@ -190,6 +190,8 @@ int odp_cls_capability(odp_cls_capability_t *capability) capability->supported_terms.bit.tcp_sport = 1; capability->supported_terms.bit.sip_addr = 1; capability->supported_terms.bit.dip_addr = 1; + capability->random_early_detection = ODP_SUPPORT_NO; + capability->back_pressure = ODP_SUPPORT_NO; return 0; }