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 */