From patchwork Wed Aug 2 18:00:13 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: 109276 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp3086617qge; Wed, 2 Aug 2017 11:02:19 -0700 (PDT) X-Received: by 10.237.42.226 with SMTP id t89mr31124836qtd.242.1501696939293; Wed, 02 Aug 2017 11:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501696939; cv=none; d=google.com; s=arc-20160816; b=Vr9Y0e5jCdyPkpy/2CTdFO1OH1psIpnZaQjUgQQD7EGHpMF/Tw1qtTWXFOnSTmFc7g 5r8oLYvcD6s3tYgRvsdW4C1U/R7RIUrpaIluucOdiy9U8pUXZ/i/iaoCyre9SrLv0L9l LprAS+U+eYEAXUJ89dTskgnTC7IzO3zHcWAMo50oic6uhhir00zhjfVc0aR0TIAkJRxw ccgobVpod+KtAVLNDmU3OoZaRSW4JqeRTdGOHueBQKRGiCkiLDKtqhRFpAu1APu9fDLa 6g+EAujacXNR59ICcJg53+wt8/VasveJ733JEwCdlxnJuPxSsyr22UcD3jSLkvIgVDLa fcAw== 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=7VllxxWaKbCCvYuTMVtdA4UvZao4OujSBllXvGfgVT0=; b=k8cBw0b/HifJOIZymHDAaOf4oF2hnEyBhYy2JF1CWrwrWgi5QPQVGF4zHnyj61W6+J W8fCjQyWkA1fpvJVtukrQzdScHTkI+2jUCG+dS8Uw+BFdOxT+hNahvcRV2ONeEsixatE RoD4831mG3po1y3aZUuV7leCsn6RazyPOyCT7HPXOSwLpgLaB2jBGdxal57KN1XQ+89D 6p+4mOYyaSsIW67YKbZ1w535JXbfwptCpDd2x3FuZ10lH9iXjCR8Ue83IqrxlrzrfmvH kxiotDxnFPeeYEBsfVTJD5p3NfyserIAOt2eCziWtBD0nw8lw//brRpM1JRaI7W3UeUX Txhw== 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 z35si29069682qtc.481.2017.08.02.11.02.18; Wed, 02 Aug 2017 11:02:19 -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 84809609DB; Wed, 2 Aug 2017 18:02:18 +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 02964609FB; Wed, 2 Aug 2017 18:01:27 +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 C66386091C; Wed, 2 Aug 2017 18:01:13 +0000 (UTC) Received: from forward2h.cmail.yandex.net (forward2h.cmail.yandex.net [87.250.230.17]) by lists.linaro.org (Postfix) with ESMTPS id 4F49560856 for ; Wed, 2 Aug 2017 18:00:26 +0000 (UTC) Received: from smtp2j.mail.yandex.net (smtp2j.mail.yandex.net [IPv6:2a02:6b8:0:801::ac]) by forward2h.cmail.yandex.net (Yandex) with ESMTP id BD43220EA1 for ; Wed, 2 Aug 2017 21:00:24 +0300 (MSK) Received: from smtp2j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2j.mail.yandex.net (Yandex) with ESMTP id 84B7E3EC118E for ; Wed, 2 Aug 2017 21:00:19 +0300 (MSK) Received: by smtp2j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id XO7ASlov7E-0JdCsoNp; Wed, 02 Aug 2017 21:00:19 +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 21:00:13 +0300 Message-Id: <1501696815-12605-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501696815-12605-1-git-send-email-odpbot@yandex.ru> References: <1501696815-12605-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 103 Subject: [lng-odp] [PATCH v3 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: a2040db93b114fb9e1da9aeca1d0a1ea91699448 ** Merge commit sha: 151694be43f01415fcea482cb2f33c85993f840e **/ 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;