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 0FEAFA0562; Sun, 7 Mar 2021 10:12:55 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 09E2422A35C; Sun, 7 Mar 2021 10:12:31 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2071.outbound.protection.outlook.com [40.107.93.71]) by mails.dpdk.org (Postfix) with ESMTP id A273422A353; Sun, 7 Mar 2021 10:12:29 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nie8o1XSOTXC05Nm8LjR6uZhVv+CLRMLRO6tC8DFTEyiYV+7IbWaxWhkoNL3+VDY9ZRJD38ohUG1Qf4Ujl1eY2dtB8nkJ6rKTNF09XHSbktjo1/AKOcT5A0qhvkCaxPnMbOztodQVsyQrP+XlStaKtK8JvvpoRf4YuesYon/An/WJnf7vri27twfbbB/kFm7ZaJZ+ysjtVueee1AFL7ntUHtPbyQ53ajRjjYZNPTDMwZJ36ty9o4Yjn+RcrgC+yGqBM0aX3UUXBhHisLgnPXdjoK10jS+FIZfeebbGyT/5madmm7MPQFqaMlMj9rArtlYhpkZCr1hQoZkXlKO1XJ1Q== 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=JZN6FLzoiZn6maidqaIq8UKKoh9GE9NhfJ8pHlThlJmkZMoKHIh5hAHD4bHTPKJReI+YFEfOREiLhZcLfxbnOZ/HCOFz6ZWPS5wn+tk6NWHRkGxa88Lq5J+H3hKy96wiEe5be7R6D6+HR2y0cZWzUVqg7fRYuk+PFpy439KSRj9a/qUcdbibAs4I94eouYpc1x05LP2UDnxkgtrOa7iYkLurWo/58w+k5nUWKw0RXmxLs6ol1exbXqdKI2h/zFE8Qfs3p99I2XDcsqKKD7p5Xs3MF5jcOmho8YUSMmZLD7YFjAH2+X2CqKAnJDUi/kaH/Y3/RsduFxRgYhgHiTqXrA== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1f9K6+Ak8rvXKQOw8bb4VPkXFNgQ3U80OdRR2d/YESo=; b=E80/pI1XVT/LhHn2N5LXJkv7Uo0H97algOuJEEPNs08gqYp9lyhsOG+IVBYqe8Zu5FUzBY742ycgRZmkXmdkGK9zhGGQiGCZnAGKt2zxYDxua465saMK934MKwQA8SQrAWKuhNwa9eTtGSmTJe20SRlDN7ZedXwkXLzJ1sh78bk= Received: from DM3PR12CA0102.namprd12.prod.outlook.com (2603:10b6:0:55::22) by CY4PR12MB1861.namprd12.prod.outlook.com (2603:10b6:903:11e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.23; Sun, 7 Mar 2021 09:12:27 +0000 Received: from DM6NAM11FT032.eop-nam11.prod.protection.outlook.com (2603:10b6:0:55:cafe::64) by DM3PR12CA0102.outlook.office365.com (2603:10b6:0:55::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Sun, 7 Mar 2021 09:12:27 +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 DM6NAM11FT032.mail.protection.outlook.com (10.13.173.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.3912.17 via Frontend Transport; Sun, 7 Mar 2021 09:12:27 +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, 7 Mar 2021 09:12:24 +0000 From: Wisam Jaddo To: , , , , CC: , Date: Sun, 7 Mar 2021 11:12:01 +0200 Message-ID: <20210307091202.586-5-wisamm@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210307091202.586-1-wisamm@nvidia.com> References: <20210307091202.586-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: 393ffc90-a04f-4fed-4da1-08d8e14920cb X-MS-TrafficTypeDiagnostic: CY4PR12MB1861: 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: y0OFLlfHfxfbX2UYAKU1pabuu3hIFEjEesGiscwd20NZ/ticHVSZyfjI/VEjKkXVvv4DB15tSkT8WJT/hNC7nId7NTwsUzoFlchnYwUg88N4g8Vc7IFOslPSCcI7TVHHtmr/Wl8+VuH7/O2ZuevmO7mje46Fe4X9CsIsuDPHaWLgAsm6JBGOBNHvw1Nh+Yn16GTx9QIGGIi8/5Bv49dkg3A2PrtqC/CdAW5kUs4r1FMSu4bwDQKL7JEfE754vD0t7nJAtgUwBMuqxlv3eJb7xu9jt9EeuC5YHDg3zuYvlukfadhIBLNyBhufuaMgA2+r338uMuS8meY+3NFr/jhueuDUw2SfQ/GVeLz2A7UUuoPgLAR6n1wVv7AW3XTuBp8syihU+oC0R1HXG/LIRxuAoPQAuWIfwaS8RE784CtCD+RZq+EzVsukCf2J+lD0Ohg/3bBj2BfFJFlTsgySoCZTtQXlVUZZuzENHL89+KO1K7XsiafMJYMB5HGA6zG8EOQvDck7tM0q+Oq54Ef+RtI+LmbZ4P8nLcJzxmHPslHiirDTkOR0TX0TdP5d9a5IPIUAFOKzKHoNBWilVQJcNa18KoA2MZejlw0kLuRhtPpsYL8y4l57mJklxZpDR41QCiE/4CtaZeBV6VsqS0IBgMr8eTsDfEsifDF7w6+1KgnPW3VNivGgJX31rwiY7cH7HL6V 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)(376002)(346002)(136003)(39860400002)(396003)(36840700001)(46966006)(7636003)(70586007)(70206006)(82740400003)(356005)(86362001)(5660300002)(6666004)(4744005)(55016002)(36906005)(7696005)(83380400001)(82310400003)(6286002)(316002)(54906003)(186003)(1076003)(16526019)(110136005)(34020700004)(478600001)(2616005)(336012)(4326008)(36860700001)(426003)(8676002)(8936002)(2906002)(36756003)(47076005)(26005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2021 09:12:27.0852 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 393ffc90-a04f-4fed-4da1-08d8e14920cb 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: DM6NAM11FT032.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1861 Subject: [dpdk-dev] [PATCH 4/5] 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