From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 80AE9A0548 for ; Sun, 28 Nov 2021 15:59:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7B1284068A; Sun, 28 Nov 2021 15:59:01 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2052.outbound.protection.outlook.com [40.107.212.52]) by mails.dpdk.org (Postfix) with ESMTP id 12B3E40E5A for ; Sun, 28 Nov 2021 15:59:00 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CK7Qo0AvkUvcrtk+L+4K/oXNXZVpU+y4faO6GMitrIlSbdEVdGaqbQG6+9U90E3tELEWF6Chq7yQooyuujR75I9WaZ2QDrAWS/ZDweD2x0btNqH1ZyJ8Q778Qi5y9NmailuhgGEWV8lLqJI0kg9o6c4UCmixHEbFpar8XBRr2648UirSL1mh31dlwodllPe5RZcVG0/pFtNIa9WiaInHv5tbiTekcVStE72bV8qeyszOV/LlclgFt42WVvlcN3R7N9SDsCb+dvfeXkZ3vC5iGXVX5yzvVmwHp08vzzMiEPrLI7hdI/VR/4xJv7Bc/hozqDUjXJK38UgH4+oPM4CENA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cjNIA6829h6ARBL7LFwu0s88x3+WcmGNZgNMz6dL81E=; b=M3BQe5uQuErC5pPTjHrvCsgjN7KU9dGUj1PjEN5UXzWg2iVAC3LBDTGNNJOyD106wNpdyxKW7Vamf06IH2FHhaYUQa8vgTlsVPkptn+h5RW+1TfFyJNmitdKwo/9oUcrx5BvdX80LFFWuWkr1DOOKu1H7x2dBJHl/z5uCoGBGxkUXOQvC0Nm4Q55eZvn/AQr997TCvjPhjm5NpldJ10jfvhoA4YyAj5+IwP18fi12a5EYpql2owVAczogqqxUhRI0DPpBsZNFKkGnngLzUGW6NyQe/hrLNJbDaycORT4mPWXfGjyFxQvKD0OSwzzohZswTlSHHSJf8LXl+S51LYrZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cjNIA6829h6ARBL7LFwu0s88x3+WcmGNZgNMz6dL81E=; b=tP8xAf0/W0mBk/xMm2NAW4ij5VZmQU7XnqmwR5lN5dgWzBlK5btGuaOzQebHUveuwW6TXYfLcKvOkcTbt4FtM63m8+AiRMyJ8luw/pHYFpBauuu53nwbsRDnKNjqbcJN0LxqhLLqeNDGNJD1hEghPzBh3yOegI34u8j8EpXMZ/eGepiuFSGH9IScuxBCjDkdFfo4Mka4xlzFbE9E4/R8wOKxb5tn2gEC6QgmxVn36LXWGP3kgwHf6Q9UuXAU/mdrgR/UrZdoJqSPWFv5Mm8fdPgmuaQ1ZGyPjEOccUw6+DkzeQzGFPoCE4abUWylG+Y1N51HtKU4Y5bVBmddgWU2YA== Received: from BN9P223CA0008.NAMP223.PROD.OUTLOOK.COM (2603:10b6:408:10b::13) by BN8PR12MB3042.namprd12.prod.outlook.com (2603:10b6:408:63::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23; Sun, 28 Nov 2021 14:58:57 +0000 Received: from BN8NAM11FT038.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10b:cafe::3b) by BN9P223CA0008.outlook.office365.com (2603:10b6:408:10b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23 via Frontend Transport; Sun, 28 Nov 2021 14:58:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT038.mail.protection.outlook.com (10.13.176.246) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4734.22 via Frontend Transport; Sun, 28 Nov 2021 14:58:57 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 28 Nov 2021 14:58:54 +0000 From: Xueming Li To: Harneet Singh CC: Luca Boccassi , Anatoly Burakov , dpdk stable Subject: patch 'examples/l3fwd-power: fix early shutdown' has been queued to stable release 20.11.4 Date: Sun, 28 Nov 2021 22:53:40 +0800 Message-ID: <20211128145423.3974892-37-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211128145423.3974892-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> <20211128145423.3974892-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d5616720-45a3-458b-7911-08d9b27f9abb X-MS-TrafficTypeDiagnostic: BN8PR12MB3042: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9L+bWB8bd8O2QzA67emkuWIsWEcqlk36b1tM8xC6Cp8z4RvhM1gIZ4/EaHjULBQHW9w1GP7jE+SliTxI6wtGWbH1ZaJHbHO30UIuLhJimJTYnTynBAaCgI6DRouanuJJ7bHafj2XEPB9Bwvve8OPhUYQpKFyt9ym9CuKKs0FoCbWtZ8KGGwyOOJBYQ7F3t9PdpM0/EoG0q0cFjSK9f4M+3jSnq2mU5gmmjgasCU6+sPXiK7XLn3c38LoJuJnDMjRsOJKVJParG4y0QSmvWpDwBsq2Lj7aiHWaLPNAKL12KssSy5y+UDXo4FdSGMy3k7KtYEeEv2gbcerrokpq+AJtZyBDgjUnwEYefZLUH0xayp/2E8CM1Nki5hirVgl8CQuB3FnuQRMUYTd3DSwidPt9Xs/yXxOAGlv3UBm0MqfjxjWNRAsJX0gnFsq4sTiH/jsSlYB2i7Acn12qDtqIQ6YjnHxS8FvS5ZqfJe9lxeoQ64akBpGEeZEVpQUjZBWn+/rQCBINBUwCjvpJkqAXXQ6B/UGZmY9hYOyyIILqWCMCaAy029yoPCqOfBJhXRYWn4u486TF0Z1nqivgy/apMkBVOYTXd7Kle/PsMkGb1b/4ArQQgWMFKmc9X2+T6gZg835XIVo90sEhIJYX3vHbB9L+tpy4CQQ6++d9p74p0fKw/SdTnlJTw7zZMSnGGrJPENY9siG++/3mxfp2HNuTqzsGCRQCdhMJV0pQQV4wgVg5XPvE0QUAHVtCBsVsUXUTdik7W5QONRPrLRCP9sUigMgvcBf13hzqQ5EuoYpB+WaRXvDzXWh7BuJ4iSaj8QD0mlK8rK1YXQt83sngFqHGUl7GA== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(8676002)(508600001)(83380400001)(16526019)(86362001)(186003)(54906003)(966005)(4326008)(70206006)(5660300002)(426003)(336012)(70586007)(55016003)(82310400004)(6286002)(47076005)(8936002)(316002)(356005)(6666004)(26005)(4001150100001)(6916009)(2616005)(1076003)(2906002)(36860700001)(36756003)(53546011)(7636003)(7696005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2021 14:58:57.3745 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d5616720-45a3-458b-7911-08d9b27f9abb X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT038.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR12MB3042 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 20.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/30/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/e4f79de95a24b9d6030957cef4826623abd664f3 Thanks. Xueming Li --- >From e4f79de95a24b9d6030957cef4826623abd664f3 Mon Sep 17 00:00:00 2001 From: Harneet Singh Date: Fri, 29 Oct 2021 14:05:56 +0000 Subject: [PATCH] examples/l3fwd-power: fix early shutdown Cc: Xueming Li [ upstream commit 19781e7a038ac3fdae4d71904268daa6ee399001 ] Currently, EAL init cannot be interrupted with SIGINT because the signal handler is already overridden by the time EAL init happens. Fix it by moving signal handler installation to after EAL initialization, to allow SIGNIT to interrupt EAL initialization. Fixes: d7937e2e3d12 ("power: initial import") Fixes: 613ce6691c0d ("examples/l3fwd-power: implement proper shutdown") Signed-off-by: Harneet Singh Acked-by: Anatoly Burakov --- examples/l3fwd-power/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index 43f14104a3..0cfcff7da0 100644 --- a/examples/l3fwd-power/main.c +++ b/examples/l3fwd-power/main.c @@ -2464,9 +2464,6 @@ main(int argc, char **argv) uint16_t portid; const char *ptr_strings[NUM_TELSTATS]; - /* catch SIGINT and restore cpufreq governor to ondemand */ - signal(SIGINT, signal_exit_now); - /* init EAL */ ret = rte_eal_init(argc, argv); if (ret < 0) @@ -2474,6 +2471,9 @@ main(int argc, char **argv) argc -= ret; argv += ret; + /* catch SIGINT and restore cpufreq governor to ondemand */ + signal(SIGINT, signal_exit_now); + /* init RTE timer library to be used late */ rte_timer_subsystem_init(); -- 2.34.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-28 22:41:05.239855636 +0800 +++ 0036-examples-l3fwd-power-fix-early-shutdown.patch 2021-11-28 22:41:03.286874917 +0800 @@ -1 +1 @@ -From 19781e7a038ac3fdae4d71904268daa6ee399001 Mon Sep 17 00:00:00 2001 +From e4f79de95a24b9d6030957cef4826623abd664f3 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 19781e7a038ac3fdae4d71904268daa6ee399001 ] @@ -14 +16,0 @@ -Cc: stable@dpdk.org @@ -23 +25 @@ -index 6988a0ed34..b8b3be2b8a 100644 +index 43f14104a3..0cfcff7da0 100644 @@ -26 +28 @@ -@@ -2540,9 +2540,6 @@ main(int argc, char **argv) +@@ -2464,9 +2464,6 @@ main(int argc, char **argv) @@ -36 +38 @@ -@@ -2550,6 +2547,9 @@ main(int argc, char **argv) +@@ -2474,6 +2471,9 @@ main(int argc, char **argv)