From patchwork Wed Aug 2 15:00:21 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: 109229 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp2889491qge; Wed, 2 Aug 2017 08:03:55 -0700 (PDT) X-Received: by 10.55.22.100 with SMTP id g97mr32114149qkh.228.1501686235410; Wed, 02 Aug 2017 08:03:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501686235; cv=none; d=google.com; s=arc-20160816; b=FygaxPcp/y1g1OKcwDICoI9hnhxbddHM3YVtsF2zo9QFSENw8+CEsFrX3qB2tNzjBO 5kItiNPWrs+vyEE61LMfpenndQjwVNx0iqmrjQjGErqGB3GLqLbJRzygN1jCbw80ZHg/ kV/nNUcmtY4u2x/6H4iSvuJ+oqgKzKw8yz4+ItWlaqkdTHgzacssv57JV3C4TKjXIxNI B7OqqqGoZ3bGAQkoYTQYWLXEyquoybmBdamkvY2PLezgKfVVyQbz1ftTI0YHjOoBwN3E BwpT/B1OhhkB4wjnVkRBD1ZV5F670SOBx0xM4SH/Oxou2TAZA38qrgh7TXbx0smIZbWp 0WVA== 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=5CNOsQU6fhkA55iKXbCR1KNMyCy5G3AZjXv07hSqik0=; b=FJEagxkSs0x5qRDd/z9Jf7ur5oGrTyJXxNixTR/50XQlkSa//JqF1QoosITtVf7wPe DABMjj06YOoH8U+WXXSm9kXmpisIECtYp89MGW6AKxbTkYc2VJXi6S51n+sjGthGG796 l/KbfjU+LrS3n+MOpSM7Jkly5JQUTkn/AH2d0CfZdmEQyBdciz6LU/zwV2tJmrD927pE UVXPyK+DzAxc3mgD9wDGI5EUEv7wBXT+unoRiipj+EbxWvi4N8pEWlXAtmGHFoWFwuBY yXMPwme+J8R9mkJee1TWcW398NXIgOW2LGFdXbTG0QlDqlxHZFkPMlXr83G97OzYEtUV 7peQ== 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 k14si21096630qtg.204.2017.08.02.08.03.54; Wed, 02 Aug 2017 08:03:55 -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 E1F9E65C6E; Wed, 2 Aug 2017 15:03:54 +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 65C4F65C69; Wed, 2 Aug 2017 15:02:17 +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 C89A465C4F; Wed, 2 Aug 2017 15:02:10 +0000 (UTC) Received: from forward5o.cmail.yandex.net (forward5o.cmail.yandex.net [37.9.109.249]) by lists.linaro.org (Postfix) with ESMTPS id 3EA1465C6E for ; Wed, 2 Aug 2017 15:00:31 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [37.140.190.26]) by forward5o.cmail.yandex.net (Yandex) with ESMTP id 86711214A3 for ; Wed, 2 Aug 2017 18:00:29 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id 3473D1300B6E for ; Wed, 2 Aug 2017 18:00:27 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 9U6xUXzKXR-0RIC8Rju; Wed, 02 Aug 2017 18:00:27 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 2 Aug 2017 18:00:21 +0300 Message-Id: <1501686023-19256-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501686023-19256-1-git-send-email-odpbot@yandex.ru> References: <1501686023-19256-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 103 Subject: [lng-odp] [PATCH v2 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 --- /** Email created from pull request 103 (bala-manoharan:BUG3177) ** https://github.com/Linaro/odp/pull/103 ** Patch: https://github.com/Linaro/odp/pull/103.patch ** Base sha: bb0ca193f8c28036fdf8b3d6c8aa5d4f11980e6c ** Merge commit sha: d81d807fdb8eb7120a78ae604ca204800c405431 **/ 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 64c6e452..b4523389 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -1234,6 +1234,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;