From patchwork Mon Nov 6 13:00:04 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: 118032 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2743532qgn; Mon, 6 Nov 2017 05:05:37 -0800 (PST) X-Google-Smtp-Source: ABhQp+TYvpidtie3CMAcgDfJiMIO5GLUZ87MXu5KyC2aCxo0TnCukPK9UpbXJqYSpBxZJIKLILtm X-Received: by 10.55.44.3 with SMTP id s3mr8236051qkh.122.1509973537606; Mon, 06 Nov 2017 05:05:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509973537; cv=none; d=google.com; s=arc-20160816; b=zowFwOzB51f5tw0UL7JjjksisQtJh/X9/bY2GbbTUAv8HGf6+TucfmIYkOZLWnhh1z H2mipBiI/Y8YiF29hahsjLQDVzci7qYIpbA+/PckLToLrdXQYonmDS3ijLGnNwMPOtiq ppjuGkGeQuqxHMrXOGoORR1/l7AfC2NE4EoDc0fE8W0Jc6QOb0YvsThKPCyOgAnUd4rD /n42soHGZq6j5tIB2WVghghbYZqAJp2jbFRhuPfaiipaWET/CcVtz6PEGqYfNb5msWms Hi2nKF4hJXAR6gJscQujIXv6GldHsh2ZB85vlTmmtFmeQx1muYk9R/vMw4Ec8dO2w+7U 5fOQ== 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=3bFNvQ2d6o0CQe7GOXm1wNlyHQtYX4thuCs9bXPZ3JQ=; b=hwzdVknoOyIxU3SYo541Peo0U70vdrW7iCYqGt71F93eMqzLFmA7792hlrANNLJ172 qAnegVOm1+U7fGOf/sXOC6AQcpWaYmocGMOE1ocN7dn2DQ0uLhXniTVTJi7rFbWlf8sW 7aV5lzeHsTDwzMMrtby+C4sr0aY2JyaU4RUv2qhiXhAVhMcO+6X44x4rUOQXSElWSdS/ uaOerup2exia6q3LHRdvHXyk7i3s30G3M/f9yglgxSGOg3hDtFZg73r8+svs2gtauf99 urxue/+9t7QAwhjm2/QOY+KXaM8AyOA2UnPPM0ISgehga3d/+KRwbMagjxA/9p5OEtpK O9Eg== 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 j123si9459868qkd.58.2017.11.06.05.05.37; Mon, 06 Nov 2017 05:05:37 -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 4667760BFE; Mon, 6 Nov 2017 13:05:37 +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 67A9760C21; Mon, 6 Nov 2017 13:00:55 +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 E18BA60ABB; Mon, 6 Nov 2017 13:00:23 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id 2F84660455 for ; Mon, 6 Nov 2017 13:00:13 +0000 (UTC) Received: from mxback14g.mail.yandex.net (mxback14g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:93]) by forward105o.mail.yandex.net (Yandex) with ESMTP id A88804444D03 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 mxback14g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id kx1klewjik-0BBq5Hg9; Mon, 06 Nov 2017 16:00:11 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id nU8zA9xMmR-0BhekS8J; Mon, 06 Nov 2017 16:00:11 +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:04 +0300 Message-Id: <1509973206-1972-6-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 5/7] api: queue: 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 queue 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/queue.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h index 73598be06..504720e8d 100644 --- a/include/odp/api/spec/queue.h +++ b/include/odp/api/spec/queue.h @@ -21,6 +21,8 @@ extern "C" { #include #include +#include +#include /** @defgroup odp_queue ODP QUEUE * Macros and operation on a queue. @@ -114,6 +116,18 @@ typedef struct odp_queue_capability_t { /** Number of scheduling priorities */ unsigned sched_prios; + /** Support for Random Early Detection */ + odp_support_t random_early_detection; + + /** Supported threshold types for RED */ + odp_threshold_type_t threshold_red; + + /** Support for Back Pressure to the remote peer */ + odp_support_t back_pressure; + + /** Supported threshold types for BP */ + odp_threshold_type_t threshold_bp; + /** Plain queue capabilities */ struct { /** Maximum number of plain queues of the default size. */ @@ -202,6 +216,11 @@ typedef struct odp_queue_param_t { * default size. */ uint32_t size; + /* Random early detection configuration */ + odp_red_param_t red; + + /* Back Pressure configuration */ + odp_bp_param_t bp; } odp_queue_param_t; /**