From patchwork Thu Oct 5 20:00:29 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: 114995 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp971937qgn; Thu, 5 Oct 2017 13:02:10 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCxHOhg1+AS+e5yW68TjCfw9YIdDdIm0MnJ47m9xyep9XUrtKp1HnjY5X52vkypHYZcKeGu X-Received: by 10.200.26.65 with SMTP id q1mr33582038qtk.186.1507233730526; Thu, 05 Oct 2017 13:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507233730; cv=none; d=google.com; s=arc-20160816; b=UD+cECGkyEkUzLl84QaXx5HB0QJX7VHobS7Lh1mv69rzLqDWPeK1w7cYOeAFv19S4s 6+pYbv6nyUY/GLMhdK9DhuDIW+nAlnRXs6lPE3OsIBZal2dSzNcUPeiINV2Eeu0MdSzc ktEmXQUkmDp7VZEs/3knBGo+J3LPBmtLvF/D22Lef3y2OA3+GatlgSZ9XHVqPeIlfadM 33uFrZij/hABHZyIYNzz4GkTb4YgZdT/5574PRRiuqUHliVGBYIqeyqRDXu2WzdFAQ7p BunqGLGqOi6Hk8yuqw6xCWjLmiOH+gzoVjsw0t4Ymn3Uq38IgomqZe+m5KoOWRExIMZ3 I5pg== 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=+L/gYaP9L21VklawAK0eyFue4Qe3d8uNe8p0TycQ3KM=; b=PTa67A3D0fFp7zrDEesoqK3KNvdffdW6HxlVd2n68uiBRzGWyrqxvPildHIDkXjP7+ QqdFCIwyoEdmX3QuLiPtc/7ZZ5mRO6Rn4XPL91jBz6qlfdwLyqH/R8Wspxg3qa/higPM yO7M4qMobyVB0JzJk367WzlmwG2zJn9xrgZpz2jFEVTVOgAw7vTP5VBJFbVmhJpLbdKO rhaxcPti46wqwxDgLgxZ3FEWP3+4EBOuetHfO4Qq7TE43GEtte6h7gMB04MvnVaO10rN SjlT1LIbGSm35U7+w6VBVbfauHaK6WchRVP25cj3cSj4N5Yewyp4givOTYsyiUYhOIRw HaGA== 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 l20si2956725qke.71.2017.10.05.13.02.10; Thu, 05 Oct 2017 13:02:10 -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 3824B644B4; Thu, 5 Oct 2017 20:02:10 +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_H4, 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 A6A4D644A3; Thu, 5 Oct 2017 20:01:34 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 92A9D644A0; Thu, 5 Oct 2017 20:01:27 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id 3EB8C6449E for ; Thu, 5 Oct 2017 20:00:39 +0000 (UTC) Received: from mxback15j.mail.yandex.net (mxback15j.mail.yandex.net [IPv6:2a02:6b8:0:1619::91]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 88BEF5D830AE for ; Thu, 5 Oct 2017 23:00:37 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback15j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id d1HWlde4lO-0boiEdh4; Thu, 05 Oct 2017 23:00:37 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 4tZ4rFgijo-0a5qQb48; Thu, 05 Oct 2017 23:00:37 +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: Thu, 5 Oct 2017 23:00:29 +0300 Message-Id: <1507233631-30788-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507233631-30788-1-git-send-email-odpbot@yandex.ru> References: <1507233631-30788-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 172 Subject: [lng-odp] [PATCH API-NEXT v10 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: 506bf9dcf0e071cd8b168806b1d279124551af86 ** Merge commit sha: a6d799f461c7378bd39a574a3b92cd8463d10b39 **/ 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 Thu Oct 5 20:00:30 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: 114997 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp973004qgn; Thu, 5 Oct 2017 13:03:12 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCoSsQVPFUONNZ3ZP7IIIEyP2mkXtQskR10DaDkSCaaOpT/RvFLyJ8Ss8jpSkENHVzSZUwo X-Received: by 10.107.46.163 with SMTP id u35mr36513814iou.276.1507233792041; Thu, 05 Oct 2017 13:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507233792; cv=none; d=google.com; s=arc-20160816; b=mkM09fe7QpCOjU+13xGnrZMaFDdavAtg+mxOCFC+2yV0b1AZrRDJuobPoI0SI+w9PV bbdMWdC1Q30NOOrq6T7KLQ1VH/GFuHLvAS1NFgvOrcx5FwraO9v1OLXa+/F+wjVUo4sI lu4lZlgzfb/CoT3NkzhtzRoLYlDiLi2JDgu9PGBM7Pp5+jpfd0vfaPnFO+5Atva8pv1X Qy53z0NcTOsskZIOtIS44It0CviX6Bjr2NW1PRu6xXlnshScFAfKsuCBMxzTpJtK/tFW hhI/N6X2c/T/GmPEY1aF7T9Wp/GX87o3Y9Jt84bAUKKlDoPXvssdkD42LXfT+bpfC3Iy W3Qw== 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=HrG+l9qaMK8/rUA6Y6wrWvzl3OJBj/19Wcz2E6DpUGQ=; b=obBNEIa3KT5wQ8tm7ANhghzqJGRp3VdOP9dNh11XBQYbhSFcFpLgHmWLbFC6uZDF1v kWw3vHjDpMwJXdF9rcdhTBH9wOksIHxE2hHkCch/JMd4SK3IXas69oaljAQd78ZYv5Lb vBOlfCWr9QxhbTh6a2sDaBFLtT8kYQMBK1KPgORE6Hfx1jimwyMtH2w8F9Hb6O6V0+WU DuIu+18I1h2mAGGWCMPPcYWdzpm2YV1ky73rtIYOMqYBTc69RK2LagvkIe/lyrHVOETt 344kSNgajpfSehwWmKYoMslA4ankcLTCbdZfEB3hDTpZ2qQ3WsDZC0rmTQhwH9qo1Ws2 2lsw== 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 t18si14752910ioa.129.2017.10.05.13.03.11; Thu, 05 Oct 2017 13:03:12 -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 5279D644A3; Thu, 5 Oct 2017 20:03: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=-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 4B9A560966; Thu, 5 Oct 2017 20:01:46 +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 B61486449E; Thu, 5 Oct 2017 20:01:28 +0000 (UTC) Received: from forward102o.mail.yandex.net (forward102o.mail.yandex.net [37.140.190.182]) by lists.linaro.org (Postfix) with ESMTPS id E44D9644AB for ; Thu, 5 Oct 2017 20:00:39 +0000 (UTC) Received: from mxback11g.mail.yandex.net (mxback11g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:90]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 27DFD5A0227C for ; Thu, 5 Oct 2017 23:00:38 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback11g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id IvNLtNgiRS-0cNiaZY6; Thu, 05 Oct 2017 23:00:38 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 4tZ4rFgijo-0b5eQAFq; Thu, 05 Oct 2017 23:00:37 +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: Thu, 5 Oct 2017 23:00:30 +0300 Message-Id: <1507233631-30788-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507233631-30788-1-git-send-email-odpbot@yandex.ru> References: <1507233631-30788-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 172 Subject: [lng-odp] [PATCH API-NEXT v10 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: 506bf9dcf0e071cd8b168806b1d279124551af86 ** Merge commit sha: a6d799f461c7378bd39a574a3b92cd8463d10b39 **/ 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 Thu Oct 5 20:00:31 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: 114996 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp972520qgn; Thu, 5 Oct 2017 13:02:40 -0700 (PDT) X-Google-Smtp-Source: AOwi7QD7SBpu9d9CRD1o8mMK8UH9Q1a6kkrsKiHEwp91S6xHQolsnI5jglEp+o5hdXKCvXsTRFoJ X-Received: by 10.107.34.72 with SMTP id i69mr12175323ioi.304.1507233760653; Thu, 05 Oct 2017 13:02:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507233760; cv=none; d=google.com; s=arc-20160816; b=N3H1Er0QEsimjFFf5KiaVG0TVEvTUaFPSHEhuaiyEyanePnCqtnWXx0kjxoClUtO2l blNCbGQLXfnTzzh4a5U/y8jTUjha3leMVcIqJN7xQWtfh0k+mYuHtL4KF+F/WHTyVj3f x4sf04ejuX03/c+6YqSJhsrMd5fpu+lxPdCSz883XANKJr+ICeZWToEVt6Q4+nF6/nEM AEQMfhumliclZ5V9LOoVLfWKNs3FicY8LjU3Mm3iUuzYt58OhkzhxeoDSiG9XY6abnC0 Wealn9Oq9iCvQHJYtNjAyNg0s+TV+w783z9gamn7+XcGDgPRmTYc8iTFlwCterrEEVNS tr0w== 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=nGMZ3aw4Jq33g+SDiblihnkQyidlIrUmNFNNcxq5cX8=; b=KseZZtBzzRtBfpUc/J3n+dibuwhRpOyLjlLPwzuD4uyTqn/TmznEj5S+O6guj8K6lw QETCxS/TET1hQbaWzsYqYe/isoWUAR20fgrvDh6nkRvNqIBjSbbUUysQA3uov99GTuYa V1Uu65w2EWjkuZd8cbXo/FCiiMaRhhF0p16O8ykpob/yYhNr4FoR/Hv/O9zRzlDwkok7 PZaGGF2oYEYoFRoD5uxRgRceh8VHW9I5jmTGclU9DpxYY/suzN+6Y7fdYYeJtFchTY8/ Ut4frSiCA3/dJ2ZJLG188JFj+bgncNrvBVKDCXotLhH3oPT4GKIQ7WJPlY9zVv84NBd5 IaHA== 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 e91si3538994iod.318.2017.10.05.13.02.40; Thu, 05 Oct 2017 13:02:40 -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 0EFCF644C9; Thu, 5 Oct 2017 20:02:40 +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 F2B3F60862; Thu, 5 Oct 2017 20:01:42 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1F56C6449E; Thu, 5 Oct 2017 20:01:28 +0000 (UTC) Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [5.45.198.247]) by lists.linaro.org (Postfix) with ESMTPS id A39E8644AF for ; Thu, 5 Oct 2017 20:00:40 +0000 (UTC) Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward104j.mail.yandex.net (Yandex) with ESMTP id B75AA43E44 for ; Thu, 5 Oct 2017 23:00:38 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback8o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Az0Prt4YNd-0cjOfKkg; Thu, 05 Oct 2017 23:00:38 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 4tZ4rFgijo-0c5SCXWX; Thu, 05 Oct 2017 23:00:38 +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: Thu, 5 Oct 2017 23:00:31 +0300 Message-Id: <1507233631-30788-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507233631-30788-1-git-send-email-odpbot@yandex.ru> References: <1507233631-30788-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 172 Subject: [lng-odp] [PATCH API-NEXT v10 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: 506bf9dcf0e071cd8b168806b1d279124551af86 ** Merge commit sha: a6d799f461c7378bd39a574a3b92cd8463d10b39 **/ 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; }