From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id CF28C1B1BA for ; Wed, 24 Jan 2018 16:36:58 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 85DB4223B5; Wed, 24 Jan 2018 10:36:58 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:36:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=kEu5E3GbHK6KnIy+p 0Qzs2xMw5qmwrOrGSXsDRUR2Fw=; b=uCVZ0zzwD9yz7fehPzcDZp4tcumopA2gt seJF/uT7EHKcvB8M1nBbac2laHg7LUpIzO39GMUfpw6Z6c438r6+CAep1nvq5Kzo 0gXsw0/dQnM9hp9hn/qItCxlhI8hSKpFtRGqYTsZaSFdxvSIG5nkBnKSWDs+dJA6 egwbKHLD9/K6lxy74PEN6Hzaymk9BI/BLyCCBIIlF0CAUaHeV6yPlV4QueQDlz9e YiapXcBb0hxQ4AqHNLEvj1+TX73GrjnIadIEZe2gCLYYSqrARqky9BZrzto9oHmZ ju9qHJo2ZdEyCHfp5y3AACE54c4jifRTDEcdmU3JwaZ83bsUc9i7w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=kEu5E3GbHK6KnIy+p0Qzs2xMw5qmwrOrGSXsDRUR2Fw=; b=BeYtHMZu NQn4i6hHnO6HEnBk4gQL9CYVAndBSljLbCwja2ID5YLTXpzKHx1RHAqLJSRQ7v7J DiAklgQ/essLw/cBwxX+Q+TLrgelHoke39CsxhZyDxmx0pf30Nh/GvE8QErsCilP TxgEwVo++VZOZxpD9+S2h9rhb/IO7eDaMJ3uBIAeMGvbfbJYED3LG1oorJxVPCvV K/UDFIEmPzBzHPWFO9r35gSx2tvWFHFxN9ERW68zRyLxfyN3HyS67MNzCOw/+PCk QAX/HjmoPyH0WpKBfBdtGIY759+tJJyPalORwdGi840o24va+FhxUWe/DNMdyeSo fyTDxTXBcuqdNg== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 6B97E7E1A2; Wed, 24 Jan 2018 10:36:56 -0500 (EST) From: Yuanhan Liu To: Nikhil Agarwal Cc: David Hunt , dpdk stable Date: Wed, 24 Jan 2018 23:31:34 +0800 Message-Id: <1516808026-25523-26-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'examples/l3fwd-power: fix Rx without interrupt' has been queued to LTS release 17.11.1 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: Wed, 24 Jan 2018 15:36:59 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 6f41a182089463c2bb81f313c138f1cad75f3069 Mon Sep 17 00:00:00 2001 From: Nikhil Agarwal Date: Tue, 12 Dec 2017 15:38:23 +0530 Subject: [PATCH] examples/l3fwd-power: fix Rx without interrupt [ upstream commit 4ffc0a883b233969ba6ce38b8c21c62153751a45 ] 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") Signed-off-by: Nikhil Agarwal Acked-by: David Hunt --- 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 @@ start_rx: 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