From patchwork Wed Sep 13 14:00:22 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: 112452 Delivered-To: patch@linaro.org Received: by 10.80.202.13 with SMTP id d13csp977649edi; Wed, 13 Sep 2017 07:08:21 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAePqZ9SS9fdYw7P3mdr6flAXiK0yA35NvEadSkbjbPG3RAN0HXSsus/6HoBYdFYCilMUd7 X-Received: by 10.200.41.143 with SMTP id 15mr18046223qts.56.1505311700614; Wed, 13 Sep 2017 07:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505311700; cv=none; d=google.com; s=arc-20160816; b=0K1FMHPah/w1Nt6fEFZ1QpVt0vmErB2LUyEYP4aOfsPGzXGHmGPv8eoJ84RxsLegtD /DdBUb8S6nWpeJvtoc7268LMSYshekqX4gIf4+qtpyND6dY8+eBtPSDKKsReL+hv6MoR Lfx/YoMhcMLclJgnP+2tYxfUA+2TYfnLrTsYW8NbbDYeMMj7Su8ODeZy30kM+s5WEzAl AnUp2IZA/NfeAv18T8//drsd1XM07BEIDr08QvNL2fBqEq4xIpR4SxLPs0tBPXQUx58c QjUnh0KJWTPbi9aVTjjKnVIyAsUKhtBzbi5HkEkY+gLcCkdp5ckbExAFo1IzfZirZAxF CyqQ== 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=j5IYXneCVSug61AzlJOondtYX9wukz7fIfU2+2G7fJ8=; b=miDYOAr9pL39gYeaGEuKMpVJ+UxI0JNu4hrxLzXg1TCVEYfaCrTFbJ9/A9q8wl1WVq bPcOst1C6juPr9LpFBFyWZRLKCtIlFQfVbjx3Mz9VnOLP8R2+S+E8r36qMRb5KzarRa9 trPBf5f/uiIZHiKxamGAv7Y1cYXeup0XTQOGRbdfomrgELGaSyiWoUTrkUbvml+BMWeU qzo6CjqPZY3UaI4Ps70vwmvL/ddkWBEPcAcV23LhS2woGt+Yb15SJRGYSeZXNJpkb93o e97EKEXPBHCgU+Ha89gnBx3619ypJAj5UjkXln5pxm0BfqcrVyhyXYwIStA8DbU/YRN/ tyCA== 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 b84si13827890qkj.370.2017.09.13.07.08.20; Wed, 13 Sep 2017 07:08:20 -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 4264964491; Wed, 13 Sep 2017 14:08:20 +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 4A5CF60B3F; Wed, 13 Sep 2017 14:01:41 +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 39B0962DFD; Wed, 13 Sep 2017 14:01:32 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id 4327C60A6D for ; Wed, 13 Sep 2017 14:00:30 +0000 (UTC) Received: from mxback3j.mail.yandex.net (mxback3j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10c]) by forward101o.mail.yandex.net (Yandex) with ESMTP id B046A134543C for ; Wed, 13 Sep 2017 17:00:28 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback3j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id yRNX0Yr01z-0ScaqS9Q; Wed, 13 Sep 2017 17:00:28 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 8ylPQBpGZq-0Sb0CPGc; Wed, 13 Sep 2017 17: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: Wed, 13 Sep 2017 17:00:22 +0300 Message-Id: <1505311222-19767-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505311222-19767-1-git-send-email-odpbot@yandex.ru> References: <1505311222-19767-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 172 Subject: [lng-odp] [PATCH API-NEXT v4 2/2] 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: 6b6253c30f88c80bf632436ff06c1b000860a2f1 ** Merge commit sha: c702f85da54be2b375a378723622053244f839e5 **/ 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 a5cba56a..aad9b97a 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_discard = ODP_SUPPORT_NO; + capabilty->back_pressure = ODP_SUPPORT_NO; return 0; }