From patchwork Thu Jan 18 17:00:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 124992 Delivered-To: patch@linaro.org Received: by 10.46.64.27 with SMTP id n27csp207953lja; Thu, 18 Jan 2018 09:00:49 -0800 (PST) X-Google-Smtp-Source: ACJfBoswqA3ToEO/C4Q6YGLMAxaB+vQ0StKQujHLj0o3DihxbdBeG8HVwXmhmwdQM312NUZFEWOM X-Received: by 10.200.50.77 with SMTP id y13mr42247099qta.167.1516294849445; Thu, 18 Jan 2018 09:00:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516294849; cv=none; d=google.com; s=arc-20160816; b=XSOHD+NPOnt5oLDsXUug0uOkf24a47oVAOuooxtzI02QKRhtUArItHTS/HBlkzkz82 1fz4UeJX/agYXz0KEceh6ktxjYdVDckqqfS6O08I8V6J5GwQOe3JC/6uT9tKYYwG98AW OchbPg/VvK83WRS7YBOfhxyTBhIGQTF8slVnbLNtOpVHuY/NJ1I6oVIEgLg0lnvbWBd5 NmhvxgRU5xJDEqbJZlvZKe8z4xyxfgxTYp/HhktCC92rJh2mQ4vHfBxa46bxhf/DUTdO GxhzEUx8QWmd4OUv6TfSkRHP8xN4vFfLirz69IeIoVzQSybwmrI3vVBOx4FIkhecAto1 yC4g== 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=BG98h1WAAt6pLCE5oamE8S5cjv+NF4Qb1DO1KKdKKJ0=; b=aRMetolpKd4ooi/DStkj3rmJVZULu+B590pLFEeo03X2QNmIsHtTcF5Yk7g2WsF5Sn vZuUqXRRVNGauoIe4BMYhAYCIxZ8djn+aax1YNUTRmVVcpTLo8tp1LVM3dAF8vGHDFN7 vRQEjImkwX1enGivLfqlj99W5gVZffJmSVBqjzXItga3ifUV8vji2Ot/R5b8gr+YDpX+ KUtOGNDsNi9CdBMOlNfxnVq9byn1RdDwZSBj4Wm230Av2zYmIyky76/7uLwo0R4tAPBS vaS+H57hghO078W7VEaZ3FWQ1eKS37oz3qGO9qY1jwBNbb5ipt3daZ/GtQOyduOVa3Ol 2ASQ== 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 35si6035244qth.264.2018.01.18.09.00.49; Thu, 18 Jan 2018 09:00:49 -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 0D160619C7; Thu, 18 Jan 2018 17:00:49 +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 276ED62785; Thu, 18 Jan 2018 17:00:23 +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 B978C617DD; Thu, 18 Jan 2018 17:00:12 +0000 (UTC) Received: from forward106p.mail.yandex.net (forward106p.mail.yandex.net [77.88.28.109]) by lists.linaro.org (Postfix) with ESMTPS id 4CBA961746 for ; Thu, 18 Jan 2018 17:00:11 +0000 (UTC) Received: from mxback3o.mail.yandex.net (mxback3o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1d]) by forward106p.mail.yandex.net (Yandex) with ESMTP id 039C22D81A48 for ; Thu, 18 Jan 2018 20:00:10 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback3o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 5MOoXo2NCc-09UigYbv; Thu, 18 Jan 2018 20:00:09 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id isdepLYskv-09vKTTkR; Thu, 18 Jan 2018 20:00:09 +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, 18 Jan 2018 20:00:08 +0300 Message-Id: <1516294808-4916-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516294808-4916-1-git-send-email-odpbot@yandex.ru> References: <1516294808-4916-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 405 Subject: [lng-odp] [PATCH v1 1/1] fix: cls: invalid CoS index 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 Fixes: https://bugs.linaro.org/show_bug.cgi?id=3576 Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 405 (bala-manoharan:bug3576) ** https://github.com/Linaro/odp/pull/405 ** Patch: https://github.com/Linaro/odp/pull/405.patch ** Base sha: 77ff03881d844a9d6a4bc773086bd8aaecace541 ** Merge commit sha: fe7f186494001dc1d890cc1e04496bea0b98aa99 **/ platform/linux-generic/odp_classification.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_classification.c b/platform/linux-generic/odp_classification.c index 276430923..9b867576a 100644 --- a/platform/linux-generic/odp_classification.c +++ b/platform/linux-generic/odp_classification.c @@ -250,7 +250,7 @@ odp_cos_t odp_cls_cos_create(const char *name, odp_cls_cos_param_t *param) cos->s.num_queue = param->num_queue; _odp_cls_update_hash_proto(cos, param->hash_proto); - tbl_index = cos->s.index * CLS_COS_QUEUE_MAX; + tbl_index = i * CLS_COS_QUEUE_MAX; for (j = 0; j < CLS_COS_QUEUE_MAX; j++) { queue = odp_queue_create(NULL, &cos->s. queue_param);