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 512A2A0524; Sun, 14 Mar 2021 10:55:20 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1DD201608F9; Sun, 14 Mar 2021 10:54:55 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2074.outbound.protection.outlook.com [40.107.237.74]) by mails.dpdk.org (Postfix) with ESMTP id A62E0160878; Sun, 14 Mar 2021 10:54:51 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ih6yqboOldxKfi12LlX2u7YingLZyuDyJ+eFOTIHFHgFoEdV8w6L7Bq4dyT2gVQEZYHmEqd7+OOpIPsj0roPcmcAuYSqIABLE8K4vHUOxMo72mfSl+mC3jto8EVXiKyrsur7d8rOdenV7FoXnS3/CB1J8ZUWIq35cZThcaMXueTPlI4k8J09yuLbgj3ktvIasy77X6xKs9FQl0bNwhAywtYM4ML/V0ENDgf9xbXd0U2xaKw1tQw6BqhPTpOYikJAWM6zwA8iOMJgJNiKrR1/yiW2kWwVYpeI0M5nj3kBEr7npvyXA0HdGvdIQe5n9lmlKQi6actVXFssgLR7AC9VbQ== 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-SenderADCheck; bh=taQOyduCizbzfvsrRHby4EvFc/HnEdS2+A7DWr/FTp8=; b=n1NN8PO3PxINC78wzBM9aPZHp0/fJju34Fq73pCT6fa5LesX8lOMYaR9zbOdGm9JBmCUMTfaY+FaB13XQyp8ZNaEMtFUAKY6J8PAyKhkB91g6xEFXVikf2NeARe0v+3GRW8+r7g0wWpwuWSJQ2Er1+hZHEs/TDfUobz8HjT0SakuCtkqBQ5INBZp76+5+toPjGPm4YHLuu4VE8HGvuJwuW5yNF0VrtJ+87CJZWjlKKCAxfe/T//l/9cLifdBS5p/NNDDoh/NLrZ1JDpP9bdoNUOnq/EmBkUf8gq/D50mFF5t/GAqKUDaNabgDttqNr5YrCiH+9i6w+zURKdnNF8s4A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none 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=taQOyduCizbzfvsrRHby4EvFc/HnEdS2+A7DWr/FTp8=; b=jcSVpJSpymMb4NICtUtiDQZRRf2P2YeRJSYDM2d0Ee6yl33sYuXQYr6et1x/+DteKAowfkj7fkkHDtbxiRIWIJBtPS7f/7N7NpgNfqkEJebRJ+EIWTNtJQ4bauErdFLWsthEGcg+gBbXSckVAiuQB2TxrsBEig5puGUs+n4jAS7YcRzS0vpZNgsUoemialXvT2yMsID89BX1lfp/cvr6b0JqIiW84H9BAOoKuuumLKFlc1fFeTv4jIxCLq5QLwIXa1SEZQZJMK1TkgBfIDYdcm5A4qL+LCM7PnVufXKGcMw2IJlUhJp1gP3duqwJ8VR7KKjd2IyOMdWxeZQqiYPugA== Received: from BN6PR1701CA0014.namprd17.prod.outlook.com (2603:10b6:405:15::24) by BN9PR12MB5178.namprd12.prod.outlook.com (2603:10b6:408:11b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.31; Sun, 14 Mar 2021 09:54:50 +0000 Received: from BN8NAM11FT016.eop-nam11.prod.protection.outlook.com (2603:10b6:405:15:cafe::2c) by BN6PR1701CA0014.outlook.office365.com (2603:10b6:405:15::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.26 via Frontend Transport; Sun, 14 Mar 2021 09:54:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; 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 BN8NAM11FT016.mail.protection.outlook.com (10.13.176.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.3933.31 via Frontend Transport; Sun, 14 Mar 2021 09:54:50 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 14 Mar 2021 09:54:47 +0000 From: Wisam Jaddo To: , , , , CC: , Date: Sun, 14 Mar 2021 11:54:24 +0200 Message-ID: <20210314095427.10101-5-wisamm@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210314095427.10101-1-wisamm@nvidia.com> References: <20210310135546.8680-2-wisamm@nvidia.com> <20210314095427.10101-1-wisamm@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.145.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: 54464202-2ef9-4b22-1556-08d8e6cf3576 X-MS-TrafficTypeDiagnostic: BN9PR12MB5178: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +lhRoe7GsPGa6H5ApI0kRDZfFgwc3Yb6V9i3sSULRHvltd1+q4NHll5GI5/9NUIHJOmTwlXDzXOYLrQR1kLRRifOHt0G8QJnlkVMkLyDCKgVDzMMWWDYnxhq0JjDOW1cM3I0IcHsds46i3pXF9KzSdI7SK64QBvgWYdutfyBJo/z4Yaz1YH8HfoOn7kGTFbQCjG9227LIIBGtsDJys/B4SYzC4XUD4FG3DxgrVwVgvehr4Tl9hz4djyKXfPGSV4/1CQDfuerQex6/Jgv7NNN2JBmMQeOXj0EKZj+U1N3BA8O44M7yjHMGQjzl+2d072JmtdiGD4q8pWn8gtkw+Riqn++xInQY3tHkjT6IYhxtcrUn1JIrK1S4SBTIQzhp0KPd60yV9Kv+9vb/UDDtwPxPQAs9E9YqTxneflnxKPf/sZCZnZEgGE2q30ShdGHYNLdAJwNJPnppoBoVrVju13X4V88gPik84Qy9FrsVLOQpdzGKaCVPICFCJNInCD7ttLuIiPigYhs1fSxpEkUG2azh6nkW0M4fScv3m4GZE7wm40MBEHCCtvZx00DWJ53Yk4zPWpMZqrNVmP4Ww9hviRwZkRLAbSzz7zYsQfxMIVpIN0wL2ifDrlyzKEQqbYawfxA9UlD9pHGWVG59OOEFLuw8jPozl9l0Xur7JjcZ3esPYlxutjYqI7JoCTjedUKKT1S 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)(346002)(376002)(39860400002)(136003)(396003)(36840700001)(46966006)(36860700001)(34020700004)(82310400003)(36756003)(7636003)(2906002)(4744005)(70206006)(82740400003)(83380400001)(356005)(110136005)(86362001)(47076005)(70586007)(2616005)(55016002)(1076003)(26005)(54906003)(36906005)(426003)(6666004)(4326008)(478600001)(8936002)(16526019)(7696005)(316002)(5660300002)(6286002)(186003)(8676002)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2021 09:54:50.0965 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 54464202-2ef9-4b22-1556-08d8e6cf3576 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: BN8NAM11FT016.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5178 Subject: [dpdk-dev] [PATCH v4 4/7] app/flow-perf: fix report total stats for masked ports X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Take into consideration that the user may call portmask for any run, thus the app should always check if port is needed to collect and report or not. Fixes: 070316d01d3e ("app/flow-perf: add multi-core rule insertion and deletion") Fixes: d8099d7ecbd0 ("app/flow-perf: split dump functions") Cc: dongzhou@nvidia.com Cc: stable@dpdk.org Signed-off-by: Wisam Jaddo Acked-by: Alexander Kozyrev --- app/test-flow-perf/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-flow-perf/main.c b/app/test-flow-perf/main.c index 01607881df..e32714131c 100644 --- a/app/test-flow-perf/main.c +++ b/app/test-flow-perf/main.c @@ -1437,6 +1437,9 @@ run_rte_flow_handler_cores(void *data __rte_unused) rte_eal_mp_wait_lcore(); RTE_ETH_FOREACH_DEV(port) { + /* If port outside portmask */ + if (!((ports_mask >> port) & 0x1)) + continue; if (has_meter()) dump_used_cpu_time("Meters:", port, &mc_pool.meters_record); -- 2.17.1