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 27043A034F for ; Wed, 10 Nov 2021 07:45:07 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 22075410E0; Wed, 10 Nov 2021 07:45:07 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2076.outbound.protection.outlook.com [40.107.93.76]) by mails.dpdk.org (Postfix) with ESMTP id C70334014D for ; Wed, 10 Nov 2021 07:45:05 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aOf8SMRk5KVaf8AetmmnO4TzIn09+Iaqq4KDmWB7QOTiX/iY9ORRkC177WM4i1uHZr0gqnuqa24J+cRGHSZUuZSgXYYUVAGp9GgaJ3y5T6HGxjMBAyNLhWNNd+7B5Z+wkyyY9G1EYaXdlYG9tcECWpe5EG14QrAzpJ1GxPRdZ/bGir+qKmKNLIEBQ369hyxSnX3w/Js8Gbd1Riw9lUiH7lrUPs4ZG0jZTIxVOAIs2WSIlfgiQ7bqPDYnGYrfff8mhETQfkBN8XpzyQ8XUEIYtnlxJhAp6knUl31CkcC0mXuvNUv9u53zbhF5o0m6wwCCHMkXTTklKM5/m4CVHSQ+HQ== 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=ZKGSyqkLhW7lbGyUgAMACRuHKRju9I+Rjr6HujN1avU=; b=BgHwUNtX7pKDQfiJLtDaPts/laWEYh/SlHE8q/HXuIgInK0apotCP0Q6i48fTrzbcI47823ZG118oTvAyaW69Soq4+ZBuLmG1CKbMQS7sTuEO0q9eZ7RLclAqy+TfV2q/SQ3EvQuKjoPlZ7nTzkCHPcyAm96dTO+PkeJKKC4odPkpfP3FwdPMRPsdpGa8kh3ZpITQI4xmbZQKnblHHQOPPRfv4O2d/UclNCIKCFxrA45y2pMlDu/bUZP1Lo0NGdRs16jenP1CoSS/nA5nAiuOLd/GgSv1C4EAClNBWcpJvPoR8AnPeFQeNdVMO8UGJHIUN5VCbJnKVaLn8OpaMtzdQ== 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=ZKGSyqkLhW7lbGyUgAMACRuHKRju9I+Rjr6HujN1avU=; b=e2Eb0DTIabJqKi/241QyETbssWNNK5eWODCs1MH6wVmF3d+kmPZzB220ATG3JnCe6D9UZQrMUHkBpWx1cPMEGPkbSzY2LKweMC2ulBzn4dhF31+8goFXyKlTSv8bw/JjODuNjUhGKZOTu3tAiDFj3WMMqmrKyeWi7ySHbL7Nn2VPmDRf+2acG9famgHMTeSBbXAO0rzn2lKcKL22C7sV2LAUDY18w7qLDMc+ewGx5xKScv8Ek9byJrGUobyGZvPMNp+AIribx484jeeexaVCuOPvTwFYHnZMMQPMhcIni1R+C7kj+eW6oqben5qDz8OmpQI5velrC/g2jlNzPMKGRg== Received: from BN6PR22CA0058.namprd22.prod.outlook.com (2603:10b6:404:ca::20) by BY5PR12MB4083.namprd12.prod.outlook.com (2603:10b6:a03:20d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.16; Wed, 10 Nov 2021 06:45:04 +0000 Received: from BN8NAM11FT049.eop-nam11.prod.protection.outlook.com (2603:10b6:404:ca:cafe::4c) by BN6PR22CA0058.outlook.office365.com (2603:10b6:404:ca::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:45:03 +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 BN8NAM11FT049.mail.protection.outlook.com (10.13.177.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:45:03 +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; Wed, 10 Nov 2021 06:45:01 +0000 From: Xueming Li To: Narcisa Vasile CC: Luca Boccassi , Dmitry Kozlyuk , Pallavi Kadam , dpdk stable Date: Wed, 10 Nov 2021 14:29:57 +0800 Message-ID: <20211110063216.2744012-114-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211110063216.2744012-1-xuemingl@nvidia.com> References: <20211110063216.2744012-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: 40c3db25-1e74-4c8a-ca75-08d9a415a003 X-MS-TrafficTypeDiagnostic: BY5PR12MB4083: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rmHvtF6i72GwOzjgIShaUp8j6XzMqjforLpjwD1RDyjo6puqQUl7CY2lLWt6n+tFLWlBTrkKLT+lsMOGkjjaQpyiZfiF17Dgx3ADE5+OfUVp3SLe2oOkVzKqADD+2j2a/cPR9h7lFE1kUyJrjW6kDKWE22Eg1eTHuTPALZYOpeslhleXGWx8EqMq/m4S2EzWOJxc3/fkyKnWYco1m6royRVEQwFofhkMixAhr8N3G9hiPi2vULW7c9KixbCLV8BSKU8yLdsQEAQERGE/klt42S15Sx965UMgxrIvuFjYMnVfxpyTibvS/X9RV/y5A4i2Ti4bv8wsCggMYLv4jGdbwmt4nlaFe0cYCTgGBeFKY/Q04f5vFRf1EmPBN62Oy+RCEG/bWIA7UfBddv9DDXFkqz/vAtAFRWi4FoZsh2SjcgUoZtnPUD1EzNOiMuBNAaa58gkfEPVC/oPKG5Qxogn0i35ck4F7x7+Gql9qheGrOpTF4K1XonMKgTbk8uXVO1tOw33YDWOUj42y55JruyOHcAZCSgxGY7ekSL6pjEAZrDyjzn9IT+ZqCujdQh7PHiIveOBVHucH3pZV9HLRJ5iRppvebQ8okIoB8nARZ0j9AEL60YBXujqGtt2nRZcMdXJShatgcL3HJrMu1FfgU1k/j15grsGQqg7jEsmmC5ohZojNFZwMoUJu62O9Yg7WrfKOODy6QZ59If8oZCjmWUMZHq1pdCriGA6wKvAikA3cWhZ92jCR5HBt7TNTsdkNx62v/yBt89NqxmfvQiXb/AqkH75+5tgPjIc5C6LNxLkA0o//85gAxuTKZI7LZfBM9Hkm+N2aOzMSCktzOouVwKvRSQ== 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)(36860700001)(2906002)(86362001)(36756003)(4326008)(5660300002)(47076005)(356005)(45080400002)(55016002)(6286002)(7636003)(4001150100001)(966005)(426003)(54906003)(8676002)(316002)(6916009)(508600001)(83380400001)(16526019)(336012)(1076003)(8936002)(186003)(26005)(82310400003)(70206006)(53546011)(7696005)(70586007)(6666004)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:45:03.3768 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 40c3db25-1e74-4c8a-ca75-08d9a415a003 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: BN8NAM11FT049.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4083 Subject: [dpdk-stable] patch 'eal/windows: fix CPU cores counting' has been queued to stable release 20.11.4 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 Sender: "stable" 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/12/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/822f885986d147ff689f6b7c0ae55995bacbb12d Thanks. Xueming Li --- >From 822f885986d147ff689f6b7c0ae55995bacbb12d Mon Sep 17 00:00:00 2001 From: Narcisa Vasile Date: Wed, 18 Aug 2021 06:46:00 -0700 Subject: [PATCH] eal/windows: fix CPU cores counting Cc: Xueming Li [ upstream commit 694c81721ef0a04432cd725642cfe74075a32f19 ] On Windows, -l/--lcores EAL option was unable to process CPU sets containing CPUs other than 0 and 1, because CPU_COUNT() macro only checked these CPUs in the set. Fix CPU_COUNT() by enumerating all possible CPU indices. Fixes: e8428a9d89f1 ("eal/windows: add some basic functions and macros") Signed-off-by: Narcisa Vasile Acked-by: Dmitry Kozlyuk Acked-by: Pallavi Kadam --- lib/librte_eal/windows/include/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/windows/include/sched.h b/lib/librte_eal/windows/include/sched.h index ff572b5dcb..bc31cc8465 100644 --- a/lib/librte_eal/windows/include/sched.h +++ b/lib/librte_eal/windows/include/sched.h @@ -49,7 +49,7 @@ count_cpu(rte_cpuset_t *s) unsigned int _i; int count = 0; - for (_i = 0; _i < _NUM_SETS(CPU_SETSIZE); _i++) + for (_i = 0; _i < CPU_SETSIZE; _i++) if (CPU_ISSET(_i, s) != 0LL) count++; return count; -- 2.33.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:07.014519227 +0800 +++ 0113-eal-windows-fix-CPU-cores-counting.patch 2021-11-10 14:17:01.880746009 +0800 @@ -1 +1 @@ -From 694c81721ef0a04432cd725642cfe74075a32f19 Mon Sep 17 00:00:00 2001 +From 822f885986d147ff689f6b7c0ae55995bacbb12d Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 694c81721ef0a04432cd725642cfe74075a32f19 ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org @@ -18 +20 @@ - lib/eal/windows/include/sched.h | 2 +- + lib/librte_eal/windows/include/sched.h | 2 +- @@ -21 +23 @@ -diff --git a/lib/eal/windows/include/sched.h b/lib/eal/windows/include/sched.h +diff --git a/lib/librte_eal/windows/include/sched.h b/lib/librte_eal/windows/include/sched.h @@ -23,2 +25,2 @@ ---- a/lib/eal/windows/include/sched.h -+++ b/lib/eal/windows/include/sched.h +--- a/lib/librte_eal/windows/include/sched.h ++++ b/lib/librte_eal/windows/include/sched.h