From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Content-Type: text/plain 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/j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cj8+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; BN3PR03MB2353; 23:7WHdFDlZMtIZLt1oMp9SEJBoceNrmatK7KyNjykt+?= =?us-ascii?Q?CwpdWSg+h4CWk1vR6T2LZwMVdoYYtTLxcD+pXvLNC/SQgjBiNDVEScCNK2+C?= =?us-ascii?Q?/HaSQlz2CEfLZOSnyHN54jt8pn+HFj13B0JCcW089NhgL6lbTBHx7FYBORqg?= =?us-ascii?Q?2J8k+irKIKuHrGcIauoYSHs6DrFEeYZZX/F9PRDj3jb/8/8s7sNrFWoYZTko?= =?us-ascii?Q?HPMpne4X2eLzf4mWqiA/vT32fX3zTziHiV0WY+otdxvdFRyTgocZzohF54t1?= =?us-ascii?Q?Dk6F+BPA+GQvgOObL5gWNoVqAiwjl4BoxylUtJoXZ6whQbUiI1fD06FW55TD?= =?us-ascii?Q?xlH1m4MGRXqQU83fjGpVo6VG+Ht4nkaMYZ1kqOoTe/KvAazjdbEudcIJXUCU?= =?us-ascii?Q?JMuhApyjBmxjSYIwNAlRvC1XDMjf4adiXpxnV6F/qerZ/E8+1rHguZiQ5aPL?= =?us-ascii?Q?Eh928GTUzmeJWn5NISLV8P766dbJDAQU8pzvtu0pcHOk2Wd3jqLuj99WPPJe?= =?us-ascii?Q?xgQ4bKmwvr1nV7BIY0Y7fQxmbvkxOW8CcDay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NJQlytbRIhO5LRW5gmTKHtLUsFfr1XZswk6JZppeXumI/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-stable] [PATCH 1/4] examples/l3fwd-power: fix non Rx intr supported platform X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Dec 2017 10:12:02 -0000 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(-) 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; } -- 2.7.4