From patchwork Tue Dec 12 10:08:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikhil Agarwal X-Patchwork-Id: 121496 Delivered-To: patch@linaro.org Received: by 10.80.152.193 with SMTP id j59csp3866679edb; Tue, 12 Dec 2017 02:12:04 -0800 (PST) X-Google-Smtp-Source: ACJfBoub9vpFabCONzAGdq7YzXjgKLb5G6oCTqAofw7WjBXsFnsklOamUBDmF0KzxJb7nRtOjuwr X-Received: by 10.28.67.68 with SMTP id q65mr1204672wma.26.1513073524256; Tue, 12 Dec 2017 02:12:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513073524; cv=none; d=google.com; s=arc-20160816; b=OrrAPEivxMnWUSwcqKDhJ70r0fgvXSUPeazQb+/E1MIFEDjNEr4jlt8M+Qnx+DSza6 M1yOB5FID1/nZ4AVPyQ1MGDVZY0sjk0UZ2OGyq0afPuhKW5WCvmT37HAdUX4d6UUBppZ Q3C1zbkaPAyNo9z88GrIGYJMvo/6vJNpywh+kLak2BHwiZttTNveDdW0rg12fhixgued fW2juWIpTWi3MsEp1cLWijvDycGN4BddK0UOeEyjamnFZoyuWuc7PxEyIaKlrP4XdKya n+5xEd40+CrDS5TeMZfswtgaluGM+hzmxVkq26cYjXUCncJ3W6521KfBZJakDeFPpsgn bp2Q== 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:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:cc:to:from :arc-authentication-results; bh=aQQ5Aejp/upCFGxDvhEwyqvDs92GxQ1CRTCzMFTt4Io=; b=m6jYlsgk8IHil5hinIguyPmvjwLrw+RTzXU4s1sNak3Un6w69p58Dzs8gCPkLToWqe DJ/Glwr06/U9fPt0tgaZw7KyAe/g5lapXf3U7bmz/flGtAAzDPfcvZPdYQfcF5panQU3 5yai8C0HydC+Rx0/WNfQ4rscBnJyGpci52kyjDZRYesDgsou+ZCJKTJyds0ESD1YvMYS m8JLLpbpqvysU+AiyVJEx3L1pqcGCCjeeKiJdyVtnYTpIHsdAxYUgrYDNdKeW4HfdZhT vdVvj55nhjIunOU5PnfNn1MK5/1I0lUrgxrcN/LemDHvtk8pxW4fHl49u9tskd0mzXHh X/hQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id l12si12448371wrl.519.2017.12.12.02.12.03; Tue, 12 Dec 2017 02:12:04 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A843F7D05; Tue, 12 Dec 2017 11:12:03 +0100 (CET) Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0079.outbound.protection.outlook.com [104.47.41.79]) by dpdk.org (Postfix) with ESMTP id E29562C55; Tue, 12 Dec 2017 11:12:01 +0100 (CET) Received: from CY4PR03CA0014.namprd03.prod.outlook.com (10.168.162.24) by BN3PR03MB2353.namprd03.prod.outlook.com (10.166.74.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Tue, 12 Dec 2017 10:12:00 +0000 Received: from BL2FFO11FD014.protection.gbl (2a01:111:f400:7c09::197) by CY4PR03CA0014.outlook.office365.com (2603:10b6:903:33::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.302.9 via Frontend Transport; Tue, 12 Dec 2017 10:12:00 +0000 Authentication-Results: spf=softfail (sender IP is 192.88.168.50) smtp.mailfrom=linaro.org; intel.com; dkim=none (message not signed) header.d=none; intel.com; dmarc=fail action=none header.from=linaro.org; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 192.88.168.50 as permitted sender) Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD014.mail.protection.outlook.com (10.173.160.222) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.282.5 via Frontend Transport; Tue, 12 Dec 2017 10:11:53 +0000 Received: from netperf2.ap.freescale.net ([10.232.133.164]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vBCABtGt014116; Tue, 12 Dec 2017 03:11:56 -0700 From: Nikhil Agarwal To: CC: , , , , Danny Zhou , Cunming Liang Date: Tue, 12 Dec 2017 15:38:23 +0530 Message-ID: <20171212100826.20550-1-nikhil.agarwal@linaro.org> X-Mailer: git-send-email 2.9.3 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131575471138609584; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(336005)(346002)(376002)(39380400002)(39860400002)(2980300002)(3190300001)(189003)(199004)(498600001)(305945005)(47776003)(105596002)(6916009)(106466001)(48376002)(1076002)(50466002)(81166006)(8676002)(6666003)(50226002)(77096006)(356003)(8936002)(5660300001)(81156014)(104016004)(4326008)(8656006)(51416003)(36756003)(316002)(68736007)(16586007)(2351001)(575784001)(54906003)(86362001)(2906002)(53936002)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2353; H:tx30smr01.am.freescale.net; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD014; 1:5OAXfiUrSw/6Xbf3xgBIYm0ktJLxoFC107EGrGP0Q6CuhB8d13OwqTh5iW87pRjIXTuCzJCD6dbKgXSCNuGRUnPcueN53oM1MrNICtwSoZW05O7BWjtDM1DYCA75RweK MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 09c0b1d3-ad52-4b42-19b0-08d54148c4d6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:BN3PR03MB2353; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2353; 3:Qput3uvS3mN6Fg5Ysd8zc0vgfkuoLCFfBW1MdI84J2lKmur9N54Hi6voYbvcCUL5Y7WQfrrC411Ub8KP5i98s9vHteW8Io1s7ZiOz2jUZx3sDzwD8tsmqizhM12efQRuCP7fshPTKo3Bhv1Lp3xTOiOjD6kK7G+3isGfllY3NLg1LiQCoY5CfQ4lmgWJeIrU6bMARB2nOr5HYuLEQYgRslXPbbOGCtAi7rueWC4ugt4Mrz1YQeu/jNcapJGZ6k844eJKJdRE+JVPHrbgzAtx0k7K5KE8yZOw68vppnUj0TKg6JswQoUuFvz5TB8VAfKXVgBc+kizENrgMUk6yOI0AG43FBEeVGatqh5NvbPyQpU=; 25:sOgBb+gh72fJKZ+/HBHWqMYGcj+3V6GPeP/QiiWtXDeHw0XIAG4JQIuUZTrMmQ3qSEhkhHUK6zV+L9PieZXBwgg1UiXw6EqDul6W2Jpns993Ek3+r3BtQxSosOGzvgTI0pHiIRvmOmLpMZMvxVxBSJMKqmMXBHcwds2eW6oa9QtPm13DGYUYSCC0XdilV65iBsjAnvzkFPekC2GOVQ3hrA/cerP5IZsKC/7W3SJZtpw+ihvDj5bnoujikgTR7vYU2mXoZ8rD24iLAWg+xYhentpeWBr1z0tYRN31pxaF9yxDAtSGwKq53IshS2C4MOlt8ZK4wfh0LmyQ/eFa4C870A== X-MS-TrafficTypeDiagnostic: BN3PR03MB2353: X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2353; 31:FVutdDmm9ZPs5Bd5/rsQ4sAMsROZmJHj3EuNzq2+dtxgjFKcOfVZeK3epT2QoOEsE/S4lOt6a0PvL3NK9bkNZMLM/2CKL10XlRZ4ntXihODgJfGh+w6Eow6Pm4lYNzCkA6dHUUh2t0z399B2P5siSEGP8dfKHQEFZXX4r6tIVv2QIpJrPV+o5p7JYJkeki7QKYHwQtoEG5JwevS8yIKdzXFmsdLLywwkVJeX5dJuhUU=; 4:1411b9xwlKMaytBMc1EUOXD9SMt95KU9kjLYTvSKkFs3T5gB9cKM0JFjgkY8CgkrRFQSa/EJ1HHeSPF/K7JtB4kuzVVaGRuOAzCDu4VuDtmIHdJ9ULEpxOu22nLtWsmMh4zyVTb33E0lkf3aRIN3DmCUD4Y7aB4UnQoI8O1QtGLYh4yr5iWRvpTAYLfJM3AT5SE3QALNd+HzYn2mKrqjexrubN6FQ8fI+ijLumA97PxdqmcymLaNo/ouE1OSYIgIB4PCSPmEJRKupo3dbzWPFg1eQDWatFyU6SmUcj8+FmoXYg2EaVQhKBUiM96qW9Mq X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231023)(10201501046)(6055026)(6096035)(20161123556025)(20161123565025)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123559100)(20161123561025)(201708071742011); SRVR:BN3PR03MB2353; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN3PR03MB2353; X-Forefront-PRVS: 051900244E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03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5HH55kX6WQLH1ru4cD8IRH1HMxcttlSLr93m9qgtLGTLS1oV/sT2Wxh+og8HXb8TQCx4JtQvBvqr5zu669Y4ChaDA7pLzKmPHy94cM0FuAxtQQ61hYQ30UcjvyLcSF5ZUbiqPa80ryr51KiySB8sWZ80tpTZ5vFiHf+PB0/U1ZJ/EQ/hKIbWf1vtzqNVYMUQuOrM7I1/gJAYIdV+wUzNiiLqL0yR5sn/aMiFLHYuaoJ28+nyvFbx9IXQrIrbYjlVHehna/nd5wT/dUu6vY339OR4pXZSXN1uA8Msa7OX7+IDnG7iTEnGVI/stQI03KREzwKjro/ifGYFKVqXUoWR7A06fn5drvIpHFpI=; 5:h++m1kq/k9cpHtJ716whnEbj+2iHEWEPTbA03fD0DJXsFnz6rcTHx9+LamfNcihLnIaro55BynI5LHPF6ifTREMyS1baHNJQlytbRIhO5LRW5gmTKHtLUsFfr1XZswk6JZppeXumI/Qz0rifCg5YGDLDeDdmLMOa3WkkpKzJVxo=; 24:hwCq5zbMfro/aDvF/Z3KQ7n5kuG4bVglqWk3YfOICduxAEdwS7e0dUn/2q+ezJXLYwYKwJ6rySYgRLtKsiDj5jRHOAf72cX1foRAzV+78Bg=; 7:+bVFnLr9crt9I3k4TDjRECwOM3zNAn5y2CzXut3tfiNYvadSVUtkqDtfPNl4A0SUFuYSjt/7Hk6ObirnaS7CMjxNuwcX3VBNsm2yapBq88qV6G5HpddrJN3rPb4nW/XW7aBu+m3jwkd1H98WH+BPhG/6BKnHEpvSh+lZWkhBTBAYmzb7/velLjrCDRBKlQ3BozMqeuTvWNnYe6bgHMRZXpagDPJcKmU5P9J18PIg3t+RqLjvv/A7syJQQJEitVP8 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2017 10:11:53.6893 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 09c0b1d3-ad52-4b42-19b0-08d54148c4d6 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB2353 Subject: [dpdk-dev] [PATCH 1/4] examples/l3fwd-power: fix non Rx intr supported platform X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This existing code cause the platform to start receiving packet immediately irrespective of interrupts available or not. If the platform does not support Rx interrupt, it shall not start receiving packets immediately. It shall let the timer management work. Fixes: aee3bc79cc34 ("examples/l3fwd-power: enable one-shot Rx interrupt and polling switch") Cc: stable@dpdk.org Cc: Danny Zhou Cc: Cunming Liang Signed-off-by: Nikhil Agarwal --- examples/l3fwd-power/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.7.4 Acked-by: David Hunt diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index 0a4ed14..d335b0d 100644 --- a/examples/l3fwd-power/main.c +++ b/examples/l3fwd-power/main.c @@ -1051,9 +1051,11 @@ main_loop(__attribute__((unused)) void *dummy) turn_on_intr(qconf); sleep_until_rx_interrupt( qconf->n_rx_queue); + /** + * start receiving packets immediately + */ + goto start_rx; } - /* start receiving packets immediately */ - goto start_rx; } stats[lcore_id].sleep_time += lcore_idle_hint; }