From patchwork Mon Nov 6 13:00:06 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: 118033 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2743589qgn; Mon, 6 Nov 2017 05:05:40 -0800 (PST) X-Google-Smtp-Source: ABhQp+Tzv7NkKd/7uTSdYY4l5ttjViVw6KSjqXhQegoZJGTKTcXKEkHX5uaBLFl9E8rwRhg/ivrM X-Received: by 10.37.181.10 with SMTP id p10mr9380873ybj.10.1509973540148; Mon, 06 Nov 2017 05:05:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509973540; cv=none; d=google.com; s=arc-20160816; b=tQcl7Py1C4fAAZZcMdGugOtx3GUFsdJXXUtM5wbPsb18MouzKEfg+kIo6Oly4yq15m L6PVte5G/hP1ioljfERwRqSIzAxTFBTHQVrWi92K6CClunaCiO/d8Jv6EgxhY5aYawIz rbMDPVNbQABqU3bn93X8e0pVb4XjNn1b0unEZ/+vk6R0b8BPyXAzh9QyS49cH2pTcBJi OiuqAhQe7I0j9GbhH6DW4PHfB+Bk6HJrPITKAcQEtmZVgw4KO6AxnCL8uXyvo9hyezmo VT2xNFlKUzkGjLGN+D5v9tGZTmLg+UXtglFV04xlxJTSgj70uiITp9GSBgtpk1I6rjda ILaA== 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=e38LKySkUCmohhg6Q2rDv/P3qo/eDTb0WNR/AB2ynPk=; b=YtkOGWUcUwfYpmHGIiwQFFKiVaF59k2qOpD6tFk/+hqrQm5vVmU2JY4FtCg8BqfgOi 7Fosg2dQSXPelXwQaQGEKxfr+4D5xNbgnABq4La5/ZJAirh2+VbdpKBzGgWy51hY2NGB SAi7ND3fnpf9L/t//su/peTAATShcUh6ZeyiqAKc3nvUuSb7mzocKAQSSIWNsEYbIixp K3pfUbG4E4aQMH3pp01lq0K1SOa3HMTxrkjjhf/Bd1y+A5ANb7QmH8AWvcWqh2g9rDdy LmBBvnYwSq3zO0TK1frKue314lK+w5iuk97WeHd3r2wr31t7SI9eqMEvw6dS3NpqUHTQ Qk3A== 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 v18si612913qtf.36.2017.11.06.05.05.39; Mon, 06 Nov 2017 05:05:40 -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 C57BE60C21; Mon, 6 Nov 2017 13:05:39 +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 9803F60C37; Mon, 6 Nov 2017 13:00:57 +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 04AB66069B; Mon, 6 Nov 2017 13:00:23 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id D0AD460765 for ; Mon, 6 Nov 2017 13:00:13 +0000 (UTC) Received: from mxback6j.mail.yandex.net (mxback6j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10f]) by forward100j.mail.yandex.net (Yandex) with ESMTP id BEF945D84BB3 for ; Mon, 6 Nov 2017 16:00:12 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback6j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Fwcy7SmhIx-0CpWIKnM; Mon, 06 Nov 2017 16:00:12 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id nU8zA9xMmR-0CheiEZf; Mon, 06 Nov 2017 16:00:12 +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:06 +0300 Message-Id: <1509973206-1972-8-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 7/7] linux-generic: queue: implementation for RED and BP 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 linux-generic does not support RED and BP at queue level. 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 **/ platform/linux-generic/odp_queue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c index 3f355e695..8d90bef54 100644 --- a/platform/linux-generic/odp_queue.c +++ b/platform/linux-generic/odp_queue.c @@ -151,7 +151,8 @@ static int queue_capability(odp_queue_capability_t *capa) capa->sched_prios = odp_schedule_num_prio(); capa->plain.max_num = capa->max_queues; capa->sched.max_num = capa->max_queues; - + capa->random_early_detection = ODP_SUPPORT_NO; + capa->back_pressure = ODP_SUPPORT_NO; return 0; }