From patchwork Thu Oct 5 00:00:23 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: 114817 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3703538qgn; Wed, 4 Oct 2017 17:00:39 -0700 (PDT) X-Google-Smtp-Source: AOwi7QABRD3fDo1kkPi2jNjMMzP7KTZVtV+qGTdsx+J/j41/xgnKOeEgmdvtGj6quC5F8QXWaAyh X-Received: by 10.55.146.195 with SMTP id u186mr25847668qkd.14.1507161639368; Wed, 04 Oct 2017 17:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507161639; cv=none; d=google.com; s=arc-20160816; b=DAnOGCliDNRvWTFAM8fxDFNcehDFM+ea4Cw7dR6VxMHw7LkRt/+nkLlS6FHqulhNea kJ9c+n+53CqPjEvnPoZnuT0xKS6EufAMIvY2ZIQsyJ3VhjEoSDylAPBvBHA9fcQZ7uWZ Mud/jL2hGHhSM6Wqkv3XR64pNWxSBaz82VC5N7KEyG0wjF26Vrhj9vvrxZq6FWi65RLQ FjMXfiJfc3XT/chdsFQiLZ94/5/pZTdytEp6MVBO9BPEkEnQDYDQXq756m/keFlBK6EO IdRyka01C3xiwDHr8YHeOeFxeDUjkJzVJPfj6WQ/EBJa8lc92zfUrYrK5zmlBH4T5Yjm 4Ijw== 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=etEtyV0LHDVE7N7A85IeM36cSJWJnV0yTWqSNspBfDc=; b=RolA2HbleZUaTQvuxjq773RDe8XFNg0AygI1xTmQArM/zlQcqRkMxQnqy5COyQmzOT hudh9BMwWgh6BueDf6kPzolgK/IcsrJB4sB67+6R1rrCfyCTK0Ke2sYfJjSyHWJ6q5lC RaANJv76KYCGogge9yl0dElbOXteAskYNeWbFLaIeJyzjfrgklGTLcr76FyK3CGYchXK g4m8mg/7lBes8tI94fKp4NieoXtqHT7xAdDEXX4NjOcLRSc7gigNlFWZqRqAADrOGtSW FMkwkXtzOkujXNMH/T1br2EeJ2i5h4g/0DzLzeSqanVlkvexopuVyrXSPDjuVOndDRgp dfKg== 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 t8si227539qtg.264.2017.10.04.17.00.38; Wed, 04 Oct 2017 17:00:39 -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 2FA5262C60; Thu, 5 Oct 2017 00:00:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL 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 DC1DE607D7; Thu, 5 Oct 2017 00:00: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 1863660BE8; Thu, 5 Oct 2017 00:00:31 +0000 (UTC) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [77.88.28.102]) by lists.linaro.org (Postfix) with ESMTPS id CFCCE607D7 for ; Thu, 5 Oct 2017 00:00:29 +0000 (UTC) Received: from mxback11g.mail.yandex.net (mxback11g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:90]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 4CF0D430297E for ; Thu, 5 Oct 2017 03:00:28 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback11g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id xklkuWzvGX-0SNqjYno; Thu, 05 Oct 2017 03:00:28 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id N4BOxccT5u-0RWuTR7B; Thu, 05 Oct 2017 03:00:27 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 5 Oct 2017 03:00:23 +0300 Message-Id: <1507161625-18077-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507161625-18077-1-git-send-email-odpbot@yandex.ru> References: <1507161625-18077-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 172 Subject: [lng-odp] [PATCH API-NEXT v7 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: 75cfc6f70d5b21d6f04082e1d03a7e677a895280 ** Merge commit sha: 63b45c733af2661b5e33305c895876296b6c7e74 **/ 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 00:00:24 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: 114819 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3704898qgn; Wed, 4 Oct 2017 17:02:02 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDNR2UBEHwkIfKwavwMVcwgZjomOo3NXbKvtOJiiQKYKJZVAE4JefcY+08H+lxghJ4AyhTw X-Received: by 10.200.2.147 with SMTP id p19mr29197767qtg.242.1507161722117; Wed, 04 Oct 2017 17:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507161722; cv=none; d=google.com; s=arc-20160816; b=Mlty9kIhWDHLbHyZWsnhNUxJJwEJLDRsVv9fN2mATyUZmyY2sRUFnBR4OPu8Ftp9Vv QcoLIYU87z1OyCVe212WAm/gGB2IM8G8+VvH6chiK/vjGUlyXxlvk7APaSWvP1HMy38c rEZnt21ECUs71DWctzhwAb1IdqW1GzAOdE1lNFdWuwtcQQ4SK3W7KFdZaRhZSLNbOdVF 1AFGzFKgMmsioFreXnzZ6kIJtVbKMwfPYcpUovs+XaTLKJLKhKJX2XwpF6Zy3wJr8Hda ZFsGAGV/kAlLleI2aEkqksaHBdtdWpGHTns4STHVK1GaRxsuYTdgb790RVWRZBpiqn7N R9UQ== 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=13V2GSNmyqcvds/VEWXwG2bNJiKpTe3C+WnY0m0YGNg=; b=m7DqZ9YjdmsxN+o8s+q660rxJnhnRjXOwm3Y9aqoDgwat/EpG0nEcVU8rCazKUC89E GQXjDdwk7PhqskDgOb6NLQmvoD3WcqPMLfZ6BsumzdHZLyhBtyZZ3SYUOalIsw8zKMNZ 1C0ILSPHlw8U4SAaTOASGD1OMEZLUXeA7YMDOwzEKM1AIRQILGsXcaMlHVxltq6FqW+O 06iuNDeY8ljWK6mDV4PVwA4Y1DnRbJBty1nbHnD1Gpgq7hAwEfJzBeqaoQyvVwVSR2dZ HxJgQcGGrZjisFSh0gHSaDNnljK7K/DNdxqoP6+K8sO7n5twsWnTpC0+muTQOtrF/u4D X92Q== 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 u53si415078qte.379.2017.10.04.17.02.01; Wed, 04 Oct 2017 17:02:02 -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 C308160B65; Thu, 5 Oct 2017 00:02:01 +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 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 E7EDD62C6C; Thu, 5 Oct 2017 00:00:40 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 3AA04607D7; Thu, 5 Oct 2017 00:00:33 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id 9100A607DD for ; Thu, 5 Oct 2017 00:00:30 +0000 (UTC) Received: from mxback6j.mail.yandex.net (mxback6j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10f]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 2A3B7134601D for ; Thu, 5 Oct 2017 03:00:29 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback6j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id bKB5PqtZvf-0TZqxNEM; Thu, 05 Oct 2017 03:00:29 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id N4BOxccT5u-0SWuw44h; Thu, 05 Oct 2017 03:00:28 +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 03:00:24 +0300 Message-Id: <1507161625-18077-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507161625-18077-1-git-send-email-odpbot@yandex.ru> References: <1507161625-18077-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 172 Subject: [lng-odp] [PATCH API-NEXT v7 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: 75cfc6f70d5b21d6f04082e1d03a7e677a895280 ** Merge commit sha: 63b45c733af2661b5e33305c895876296b6c7e74 **/ 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 00:00:25 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: 114818 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3704486qgn; Wed, 4 Oct 2017 17:01:35 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAM16J/VhGAIFOrXbYBx4TmVOPJup2/5Nj4mH4FAT0i+TBqaDNCX7yoI2jVyGVb4sV+ofVN X-Received: by 10.233.239.140 with SMTP id d134mr4499028qkg.308.1507161695121; Wed, 04 Oct 2017 17:01:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507161695; cv=none; d=google.com; s=arc-20160816; b=D9yb4pCeiGaKnMRP2CVIT7WccBzkmqRVvwQKErXAgllgmiieF1s5vMZJR2H+wPsWm7 RaYEzFHZ1oS8+kszh0ZBUr8DqMou8U5qcYx3RmesAruW2h7dPNIWp9Srblgu2LXYwK+X MOgMMq4Uvoqu7m3BrL4wY0pcAwCbgliPHBEOvr8ybKG4naRNefFkkUxAoShdBx+HKlLl ohjKW8eOERaMenib4oJG/rks5OWRjYgoQyCBW4ElXKVJCDKDBKd4iHISMyASWgv2ch4o x992tb54voI0pVQcybV9XwHF/ApKraR2cGwm14Mi/lDOwqnHqHTIcyfJHMQfHSZm09ne bSsQ== 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=NXNKwkcjKX1SPtBZR2jUCf5YMBzY8fU83ayWKzJXob8=; b=bO0eeDfrI5AeB2bulgVpultRtUtjVG3aSy2St8PfDfBay6Kn1O7e6qnhM21hyDtAmA 6BYj+7m3brphFouJlOzg9TdxL7Fy8XYWP6sQbim+b14n365H/5ceIvJ2jOmQ4T7+Vfm6 E5F+PCS/aGq5bkrUQTS9RGfZDzzAzHnQF++C1xWHMNNQiNm6wcThR6KmSoxKmMo7JcI1 nnzvOntxHdeUSZAnBC9bQRPwWIRa9L4yTRMMKxnPevp0XAlErwpD/gPsBEujThf3KEfj 3NaFmUZON0pwj9bTBDtMIogw/YCSSnTajC441JkraknYoaLTNBVYvlmEv9Qb8Ww72yRm /ouQ== 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 r62si7807170qkd.474.2017.10.04.17.01.34; Wed, 04 Oct 2017 17:01: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 AFBA660BE8; Thu, 5 Oct 2017 00:01:34 +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 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 8E3A1607C5; Thu, 5 Oct 2017 00: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 178A860B53; Thu, 5 Oct 2017 00:00:33 +0000 (UTC) Received: from forward104o.mail.yandex.net (forward104o.mail.yandex.net [37.140.190.179]) by lists.linaro.org (Postfix) with ESMTPS id 4D2C2607C5 for ; Thu, 5 Oct 2017 00:00:31 +0000 (UTC) Received: from mxback2o.mail.yandex.net (mxback2o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1c]) by forward104o.mail.yandex.net (Yandex) with ESMTP id E0B3D704601 for ; Thu, 5 Oct 2017 03:00:29 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback2o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id EUU4BOE9mh-0Tkuewug; Thu, 05 Oct 2017 03:00:29 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id N4BOxccT5u-0TW8MHI5; Thu, 05 Oct 2017 03:00:29 +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 03:00:25 +0300 Message-Id: <1507161625-18077-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507161625-18077-1-git-send-email-odpbot@yandex.ru> References: <1507161625-18077-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 172 Subject: [lng-odp] [PATCH API-NEXT v7 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: 75cfc6f70d5b21d6f04082e1d03a7e677a895280 ** Merge commit sha: 63b45c733af2661b5e33305c895876296b6c7e74 **/ 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; }