From patchwork Mon Aug 14 17: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: 110057 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp4588991qge; Mon, 14 Aug 2017 10:00:59 -0700 (PDT) X-Received: by 10.55.183.197 with SMTP id h188mr32769644qkf.206.1502730059345; Mon, 14 Aug 2017 10:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502730059; cv=none; d=google.com; s=arc-20160816; b=lQBJokq3TjYiIEvieWfbGbSGnGjEUiYpsNNfjq06Z2L+dFqsD6NHk9WHCkv7Xh75dP VWfremJHSBySGOqUryDnvQC0XAb0EmILG6djZvQqirgE1ZTwdAeFQtalVDJH03JQIy0E YmaGmzwH1KkiKqm1Q3AzV28unrvbdbjEk84VmaMcoTfaH/uZqERv0U3RbTih8Cm7pIKi K+cz6b9HvT3P6NqVoF+9Qs0OBd/QQ8pb1A+hqYKFxYjb/r7A11GrSe9eGqNlI7a8BUIc CmkyoVum0syCSeQt/IS/bQu1JI3HZ3G2rNKUjlr+DE4Anx2sCbLs2g9ehddyS/Yyspcm GNfQ== 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=55Nz8KsK877S4jQivfXnzawh7juTOBnAI1y+AjCn6ZY=; b=g55y7tzvicyKBR1QgClhZANiplu3wuGRwwT1xPjQIbJ14jghn72MVpDxFBjDeSTKEN X5E/5lEqBLPR33g9N7OJQOkgFYWrm/iFCar6+87/hUa0fPCSzhk+nbEmL7IBV/jmRruH +R7wclBNdoFOWCPB4l41E5fXlGRMrhVG41OYD7vT8CYweDJseDLVgKKmX/Sd2pOMrQsZ h6KlSKiBZZmfM1XF1AOZwf+obbzIn5Iw7gB2aah0VTt+LKmHYWIdB2sTNdImYW0EE2fI yKR6svRFHu2Tcius7NRGSnTCg85q49uQCeiQLuFieG4xBRodVRGyOL//Oae4YBW2F0WZ /60A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 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 (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r60si6850357qtd.134.2017.08.14.10.00.59; Mon, 14 Aug 2017 10:00:59 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 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 144D060B25; Mon, 14 Aug 2017 17:00:59 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 713B36444A; Mon, 14 Aug 2017 17:00:29 +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 C618E64486; Mon, 14 Aug 2017 17:00:24 +0000 (UTC) Received: from forward102o.mail.yandex.net (forward102o.mail.yandex.net [37.140.190.182]) by lists.linaro.org (Postfix) with ESMTPS id 84D5B6444A for ; Mon, 14 Aug 2017 17:00:22 +0000 (UTC) Received: from mxback7o.mail.yandex.net (mxback7o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::21]) by forward102o.mail.yandex.net (Yandex) with ESMTP id E49AA5A01740 for ; Mon, 14 Aug 2017 20:00:20 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback7o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id uC02leLhh9-0KRGLWBX; Mon, 14 Aug 2017 20:00:20 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id mlYyN0Wfya-0Koimu0X; Mon, 14 Aug 2017 20: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: Mon, 14 Aug 2017 20:00:03 +0300 Message-Id: <1502730005-8444-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502730005-8444-1-git-send-email-odpbot@yandex.ru> References: <1502730005-8444-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 126 Subject: [lng-odp] [PATCH v1 1/3] linux-generic: pktio: update classifier enable boolean 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 sets classifer enable based on boolean setting on odp_pktin_queue_param_t Fixes https://bugs.linaro.org/show_bug.cgi?id=3177 Signed-off-by: Balasubramanian Manoharan Signed-off-by: Maxim Uvarov --- /** Email created from pull request 126 (muvarov:monarch_lts) ** https://github.com/Linaro/odp/pull/126 ** Patch: https://github.com/Linaro/odp/pull/126.patch ** Base sha: 759b6d5da6617af244765983d0b8bfbb26f41890 ** Merge commit sha: 2c095e7e4fe1c0fc39b552b84d2374988f5920ca **/ platform/linux-generic/odp_packet_io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/linux-generic/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c index 0b9939bd..9f8bade2 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -1216,6 +1216,8 @@ int odp_pktin_queue_config(odp_pktio_t pktio, return -1; } + pktio_cls_enabled_set(entry, param->classifier_enable); + if (num_queues > capa.max_input_queues) { ODP_DBG("pktio %s: too many input queues\n", entry->s.name); return -1;