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 4F1CBA0548 for ; Sun, 28 Nov 2021 15:57:25 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3F8A440E5A; Sun, 28 Nov 2021 15:57:25 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2052.outbound.protection.outlook.com [40.107.94.52]) by mails.dpdk.org (Postfix) with ESMTP id 0C22E40E5A for ; Sun, 28 Nov 2021 15:57:24 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LF98MdH9L0/13CkOZAu+UeZVclqd3jL3jhSMr3jlRy34jHNwIr1epU1g5FtbXqPO6JIc0fFvLNwOG+iqaZiKQ6XiHtu2naKj2xk5syEL4v2d1+D60OFccdL0gS+HJ604m4XB+doGKQA/c+ljr76PNailaJfV+zdpFK6eT2bWaOBau9+4gE7m71VsJFYndGkAsrFF2lRJ7o6hO5ZcqJ86YqGsIuZPVUgOt1DmJVcw8fkZweUlBiXL34EMfTtYAVWAuGG9nEITBaeO+diNUw2OOzzAlX0K7xwjk1r9MzrsP6/n3XTcBLpkTlCiFzU6s2i0CnsdHb3zrqCvJdELYCpVTQ== 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=FLCrR1VrGCegiKogOjzESaKt9WtWPVmYSzhi8W8KTp8=; b=WvkXvfCP8q/EQhjaI/Ru80UGGROwHS8QfJEzF9rzGizet3hIFX5PUsDwq639wKvM9bkQHt0/WIx1yK5EnTDdNoQC1XtMazMOQCwujEcbxGP9wENKcEOctd9GrWxLQz2SWw7XaiaP5rxM5MTCCJ6Xd8/g2LwPpozIA6ozFUjYggT0h5jgWoRO78tUdD6UP++nCAhGXjKIM/unqMEh14/5K2quMgC8HIhxsr2TH92ZpLXnAZPfgL2rXChaLSjOkRpp53ju5wQgq10btQfGs83BMonJxhPsMyRdTiRDQtJVcodh1lJ2o58YJTMuDF7PZr/YOXUjwfCxXYVF7IqVR45xHQ== 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=FLCrR1VrGCegiKogOjzESaKt9WtWPVmYSzhi8W8KTp8=; b=YvCkJ9Kv157qgKRfoIkXmqw29a4oNxSG5RUzeLXGBUjGWsJMH6/PwMC3wK0xSyPLMnelUG+Rx9OLYrFLigwlk58H9HGin5zLTwpfWgLX7p4k1/tijb6YjJbMlzZzpqo7ainMRT0iv2JV9Jk6k3cdE+otSsTdHHLpbliGF5jQ6sEggyR4r5Y9ECI1GRJj8p8OfHsi0SKzq+pqyLPeMgAjDZ5uNccGEiJLfDMI2lqLKUfPlA3QpswFBrsaK2ODxVbgBm+oMRPxaF6il4QSLfQtqrpcxpBB46Gmf55PI+1tBP4Dior0xa5CgkGErud2YXDIie9F6dRbjR9IcBpA4VF5Mg== Received: from DM5PR12CA0015.namprd12.prod.outlook.com (2603:10b6:4:1::25) by MWHPR12MB1534.namprd12.prod.outlook.com (2603:10b6:301:10::11) 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:57:21 +0000 Received: from DM6NAM11FT019.eop-nam11.prod.protection.outlook.com (2603:10b6:4:1:cafe::5) by DM5PR12CA0015.outlook.office365.com (2603:10b6:4:1::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.22 via Frontend Transport; Sun, 28 Nov 2021 14:57:21 +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 DM6NAM11FT019.mail.protection.outlook.com (10.13.172.172) 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:57:20 +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:57:18 +0000 From: Xueming Li To: Conor Walsh CC: Luca Boccassi , Liang Longfeng , Harry van Haaren , David Marchand , dpdk stable Subject: patch 'event/sw: remove unused inflight events count' has been queued to stable release 20.11.4 Date: Sun, 28 Nov 2021 22:53:25 +0800 Message-ID: <20211128145423.3974892-22-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: 17d31b11-11c3-4d8c-31d5-08d9b27f611b X-MS-TrafficTypeDiagnostic: MWHPR12MB1534: 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: HTB1KKoTkJH0aMP6T/ijM5rH+V0b1wssOYKCORTMzPXtxAWqNp3MLMbJnUtmGgl55FGKI6D5cYyVt/k0nbC7gFiM7J8b+LrtQUFpapYIyAinLkt5mwTVJ4cZBbkmIjVTvizn2weLoUFKt52rAvxkPUuKmW39MAPEAj/8sztsFst+RLXHQZwXkoJJdyIkfESuPTcKN0nSuxCxBHUcXOjL6RikFNIy7bA+FaJS0U+FVca5d9fHljM+Jn/sZen1Sksgo8IoCEWrC+KVjNf2oB98oGNqrOj+1Un3eh5iBVVnTZjhuasiKn6ZbFSG8GW2WU8JaKAGzuqjc8nwAACJdVOhAOM7fcOKHcwIzuAEJx2c930J0M2j/SrA27Umuo5bkduYz+wz7Dhih1mwC/sRlih6zSSJ+rlZLDGHA3dCtIvVgzMyUsog1QEUUcEYAnHtdeQ6F7JrXihJN8n2dGS5A5OjAZeuvFcK6SGSM03fROIM7Jo/V+a8wRV6/g3ajl1NRRFXHS7gG5QeYgGAPx7lRuDs1v8ufzgf9hmfKPjXllTl7wIbBdR9jybarQyS/tHBiV5BgoNjlk/QwbeBIH7bXTmIjuVgfML7F3n2uUwyARcY/C0sKcxgp2AkuSRT4oq3WXkZJwvJzEcB2D4gLCtYjveCrv+F+ryomBA/s3Lxixwn4hroCtI5TURGdx7FUkmrTfyLEOL2e8FaRPwr+dAij7kWxQb1rVjLFm47mNFx7ZXL/51fE9jpw4VCmapfRQKceDUxA/sgY7MeTcMjV1bTqe9n3e+MDCfHL096+ln/F/gOiN1mKJdW987sbpsXIO/FjAFB8MA/veSxAK3i7W4qYGOMsw== 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)(83380400001)(316002)(4001150100001)(336012)(36756003)(36860700001)(47076005)(6286002)(54906003)(356005)(55016003)(5660300002)(82310400004)(2906002)(426003)(8676002)(966005)(6916009)(508600001)(86362001)(1076003)(26005)(6666004)(70586007)(186003)(16526019)(8936002)(2616005)(70206006)(7696005)(4326008)(53546011)(7636003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2021 14:57:20.8249 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 17d31b11-11c3-4d8c-31d5-08d9b27f611b 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: DM6NAM11FT019.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1534 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/ae0fe7d799603111cbbf558c2d174d7e99ad1924 Thanks. Xueming Li --- >From ae0fe7d799603111cbbf558c2d174d7e99ad1924 Mon Sep 17 00:00:00 2001 From: Conor Walsh Date: Mon, 15 Nov 2021 17:58:53 +0000 Subject: [PATCH] event/sw: remove unused inflight events count Cc: Xueming Li [ upstream commit 0f66d415c467daa1a41bb5184d72e61980c8991b ] Reported by clang 13. This patch removes the inflights variable from the sw_dump function within the software section of the event driver as it is an unused but set variable. Bugzilla ID: 881 Fixes: c66baa68e453 ("event/sw: add dump function for easier debugging") Reported-by: Liang Longfeng Signed-off-by: Conor Walsh Acked-by: Harry van Haaren Reviewed-by: David Marchand --- drivers/event/sw/sw_evdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 0d8013adf7..54c7abbf93 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers/event/sw/sw_evdev.c @@ -712,7 +712,6 @@ sw_dump(struct rte_eventdev *dev, FILE *f) continue; } int affinities_per_port[SW_PORTS_MAX] = {0}; - uint32_t inflights = 0; fprintf(f, " Queue %d (%s)\n", i, q_type_strings[qid->type]); fprintf(f, "\trx %"PRIu64"\tdrop %"PRIu64"\ttx %"PRIu64"\n", @@ -733,7 +732,6 @@ sw_dump(struct rte_eventdev *dev, FILE *f) for (flow = 0; flow < RTE_DIM(qid->fids); flow++) if (qid->fids[flow].cq != -1) { affinities_per_port[qid->fids[flow].cq]++; - inflights += qid->fids[flow].pcount; } uint32_t port; -- 2.34.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-28 22:41:04.557584695 +0800 +++ 0021-event-sw-remove-unused-inflight-events-count.patch 2021-11-28 22:41:03.230209276 +0800 @@ -1 +1 @@ -From 0f66d415c467daa1a41bb5184d72e61980c8991b Mon Sep 17 00:00:00 2001 +From ae0fe7d799603111cbbf558c2d174d7e99ad1924 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 0f66d415c467daa1a41bb5184d72e61980c8991b ] @@ -13 +15,0 @@ -Cc: stable@dpdk.org @@ -24 +26 @@ -index 070a4802e9..fa72ceb949 100644 +index 0d8013adf7..54c7abbf93 100644 @@ -27 +29 @@ -@@ -711,7 +711,6 @@ sw_dump(struct rte_eventdev *dev, FILE *f) +@@ -712,7 +712,6 @@ sw_dump(struct rte_eventdev *dev, FILE *f) @@ -35 +37 @@ -@@ -732,7 +731,6 @@ sw_dump(struct rte_eventdev *dev, FILE *f) +@@ -733,7 +732,6 @@ sw_dump(struct rte_eventdev *dev, FILE *f)