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 E857AA0567; Wed, 10 Mar 2021 14:49:50 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1E3F022A675; Wed, 10 Mar 2021 14:49:28 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-eopbgr770045.outbound.protection.outlook.com [40.107.77.45]) by mails.dpdk.org (Postfix) with ESMTP id D1E1022A670; Wed, 10 Mar 2021 14:49:26 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=COg80X0LnJBXiZo1fHeDnwPUltb/Er67r4Y81wkFgQr/8ArbQ+YKNryNUY5PmW/JNSn+aOCO6/TgrM06XoyqM8CB3d0ermj/vhQSBXHjLvqmNu3UhUIHtmKBRoagINSvdtsTa2zEFAohOiNmw46qLxo2cCD1K7PtSJSNaIHu3bVMyfH27KDpVZZEg1bjNYtJgfXQkdtR2FIyhboZ+Du94LSkNz1wfzJE1RkpMNlIL1ZKB8/H0BvxNNO86yvQU0vlYVBIJKxjLzogvhzgLb+VUr4dTamVHf75MbxR+6QbEkfw0cFeS0R6V8DnxpGyjFlkiqMGYzWxyrgJBgDFv2F+tA== 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=1f9K6+Ak8rvXKQOw8bb4VPkXFNgQ3U80OdRR2d/YESo=; b=mHV3lOmvS8H3FZIViuocWK6o99na383UVdAFMR6JOA+GYQX3Wf/fvoCsZ+yvBJNnmjy4MntPCC+q/zJg3/9jnb6xWLZhxdYPFNb2Sb6l3vmx/T41FNdO7YIxiqOG0Yc01bfvQua1x6y3WAfXPhydrmBCOtN3sflS3Nh2GxdSNXhgPqEbBTXq3N9D1TXwqL8AmnoQ4DR/4/LZ8CUGIITtWshVOURddNtHKg9zg3YVZqVCm8YD4g+16sjrQRbnavwQaFQ72kNWwINKx0xmpCyqI4LCZcUNyIwZZ+9Ko9Af1p9H2wCQJNy4cHwwVy4kgG+72NrkHBfDxdon4/tg2AacBw== 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=1f9K6+Ak8rvXKQOw8bb4VPkXFNgQ3U80OdRR2d/YESo=; b=DSkEveBDgRuDSeTlB7+4kKCeNNYnzV5XwtjzDmxMM0pU5ESeqk8ON4Zo4B2M3zsJ8Kl3AsuyNVILe7VLeVe3JBCq5PTfE9LG/OPOnOMjc95tlVK35UwIZjhr5Ssz9uyYYIQrXz1brTf2kFw15l1gqove0wJJRtHcG/t8F8mHDEuHcL00NS7Aof3eEr8nJ/3C6DJc3dpQnzS+6yTvXJJMkc6atRF/urNfLV9McucfLpRz/ChuaJnjlW2Pk+8Eg4ts+049ZCr9MuMXqVcV3Jplp0DlIg4vYk7Tc8+egRXJRrWCzZeRy72lzEm7xYXYmFK4E5mEmJEsXexH1UltZ9ebXQ== Received: from MW4PR03CA0234.namprd03.prod.outlook.com (2603:10b6:303:b9::29) by BN6PR1201MB0148.namprd12.prod.outlook.com (2603:10b6:405:55::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.18; Wed, 10 Mar 2021 13:49:24 +0000 Received: from CO1NAM11FT060.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b9:cafe::a2) by MW4PR03CA0234.outlook.office365.com (2603:10b6:303:b9::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Wed, 10 Mar 2021 13:49:24 +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 CO1NAM11FT060.mail.protection.outlook.com (10.13.175.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.3912.17 via Frontend Transport; Wed, 10 Mar 2021 13:49:24 +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; Wed, 10 Mar 2021 13:49:21 +0000 From: Wisam Jaddo To: , , , , CC: , Date: Wed, 10 Mar 2021 15:48:55 +0200 Message-ID: <20210310134858.8104-5-wisamm@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210310134858.8104-1-wisamm@nvidia.com> References: <20210307091202.586-2-wisamm@nvidia.com> <20210310134858.8104-1-wisamm@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7af4d445-428a-4a3b-eff0-08d8e3cb509e X-MS-TrafficTypeDiagnostic: BN6PR1201MB0148: 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: aeJCXXxMzAQn5F3mR5Ogo2D18w7eXQyOtnMXHrjZopezSUfqXNPw0UkFvfigs3g1yNKxnshGZEwL3TR4dVkY2oPiixbV50E0B2076Fu7Or3PwecTFRy5+u62Fpw8EwdI3qBC5RFYcsnhRsK1Tgtc7yeiy1AaFPhbeabcLnl2UBT0ls0q7v11ZJo24/HbY73MPMzU/Dw6R0Sl4FGhQtytHonSToYr7wpVIBb4UQzHgNu/rRVFlj+I73fsCcilMfnIU34k+5iAe2Q/3dWDT+csvvojr3ILlKi6YHi24ZZnvMR6ptvXiYN0JiEusQHcWJZxcygcI/6dPHK93ITCUemXwCc5W7yuYLiqNaSXiqXCPJcCK/nCzWc67ijm89m0CsSB5AVhWHvC6bSmg4d4dQTQw6d95GZC3MoxM/DDapJzLFhp2TOjLzLBph7MEfXAXmujUs2xEs4a0JEuAmuD2wgMspr7TESPE2TRN0xJ2eNbcAqyvnNnKTh8m9/q0qSZy1TSfeclaDeGm6iMnuwXWcMNgVRiMheFISbMV4DGeohBaEqp3xtWSf8u617z6gBLwtDZ0w6qRLq7fRm6smgwC7GK3ms23phDtMe4NZecwY1rhmLG6rTe6+Vp1otQCIU/a2lWRwbd2J4b928naX1TIzqkcmYNFmKXFw8qVpNsFaNw2dBXkPxfNCn0KpjDVdNg8KuA 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)(39860400002)(396003)(136003)(376002)(36840700001)(46966006)(36756003)(16526019)(34020700004)(55016002)(82310400003)(186003)(6666004)(356005)(316002)(83380400001)(70586007)(70206006)(26005)(7696005)(2906002)(4326008)(36906005)(82740400003)(54906003)(47076005)(8936002)(110136005)(478600001)(426003)(36860700001)(336012)(5660300002)(6286002)(1076003)(8676002)(7636003)(4744005)(86362001)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2021 13:49:24.2265 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7af4d445-428a-4a3b-eff0-08d8e3cb509e 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: CO1NAM11FT060.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0148 Subject: [dpdk-dev] [PATCH v2 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 --- 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