From patchwork Fri Jan 19 08:00:18 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: 125106 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp181635ljf; Fri, 19 Jan 2018 00:05:29 -0800 (PST) X-Google-Smtp-Source: ACJfBoure//KGvgYEAZtNj3VoujdFphNg7cg/yHpRW1myhRwdnLmChSilfpTYyiw8oHqE18qRwcq X-Received: by 10.55.26.195 with SMTP id l64mr63624691qkh.150.1516349129541; Fri, 19 Jan 2018 00:05:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516349129; cv=none; d=google.com; s=arc-20160816; b=uh8lJJDnPf+usAzexNwzXYMZmSU41RNJM1Lv8l6yJt+nBADMVmrXXd1MTdJUGpunu9 51QTiFiucC85UpLcIh1qwP1ZusC5sVXjrwOsAvfRBhgpBKYzn07Cggrr0txcEO7X8X+j xOVP5+uxISS4nita57oyyrwr3sheVGxzkm71Z3kbSKdG+gcQ9C4jczUvPKH3Ch6g+ycu /zYjdG+JjBdiwus5GOSWfa0AMMQf06LSxOwjH2yzsa0Ep8l1PtMngoFmrtBtFet1mZSh rI84ZQ5rcdWbhqdpAYef7vDFzP953rOkb8dlBU865s1Oi2Sjdax+JPDG00LDN8yRLPaF nz5w== 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=N8ubtNfoPPMJhyWMWfMBjnQg5B0Nfg0Kow8+bFNACsU=; b=Rd9qA1Hxpcr+q5qz6fc13xwqCrcnBoFuAeXrl/Aq0C8IJI/qKNYy+mGp4eKGVEmq3w Fn7yjmc649X0qC/X980XzNvM1jEHJK+SgvpYM3frj5eYxegDIZ9Tc/eEvymrscgMOV8D us55mYNlXsVbtIdaq17ndyvnlqSXo5xtJCBpSiTmWXJWUv00w4xac+GCFzZylbvZw9Bj vaimq/YD0iEJiZU2U7xIEGugEOHBTkUHyw31xMFv013CuiFRdwx2gO/gkHtmm4j+fWfs Lw4p15lWIyE5EVEdGSZzjy1H2Gpm5SLkpC0ROtCJiMobb3PsSm/CQa3Rv2fpjWFL8J6S VEpw== 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 x12si5770306qti.341.2018.01.19.00.05.29; Fri, 19 Jan 2018 00:05:29 -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 40B9862800; Fri, 19 Jan 2018 08:05:29 +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 3193462809; Fri, 19 Jan 2018 08:01:59 +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 34BF66280C; Fri, 19 Jan 2018 08:01:43 +0000 (UTC) Received: from forward101j.mail.yandex.net (forward101j.mail.yandex.net [5.45.198.241]) by lists.linaro.org (Postfix) with ESMTPS id 917F461511 for ; Fri, 19 Jan 2018 08:00:21 +0000 (UTC) Received: from mxback20j.mail.yandex.net (mxback20j.mail.yandex.net [IPv6:2a02:6b8:0:1619::114]) by forward101j.mail.yandex.net (Yandex) with ESMTP id 942CE124144D for ; Fri, 19 Jan 2018 11:00:20 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback20j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id TverpbMZ7V-0Kxi2ZXO; Fri, 19 Jan 2018 11:00:20 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id wy8F3DGHUx-0K5ug5lP; Fri, 19 Jan 2018 11:00:20 +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: Fri, 19 Jan 2018 11:00:18 +0300 Message-Id: <1516348819-27675-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516348819-27675-1-git-send-email-odpbot@yandex.ru> References: <1516348819-27675-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 405 Subject: [lng-odp] [PATCH v2 1/2] 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: 0d984e3e700ae418eafe1fe25444d1a5508b56c0 **/ 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);