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 ED328A0567; Wed, 10 Mar 2021 14:56:34 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BD8D622A6BA; Wed, 10 Mar 2021 14:56:11 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2072.outbound.protection.outlook.com [40.107.236.72]) by mails.dpdk.org (Postfix) with ESMTP id CF8A022A696; Wed, 10 Mar 2021 14:56:10 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D0x36V1ZLXr3ffj//IlCf9rH5FYesyIpR7CmiIBGRyYABKBHanouIj6FQFqQhGdPsLLZwXXl2CHd+GV/LRKc4kW9is1AUbSNHLYzF4FbJW42HRJcctGMoYXtBFbqLn6huO5zJUbwo58jrjAxdhIt6hcGZOdxaQgFW626Q7Eunk+la1SgdYOARYC/iBGblyTWi/Nwo37eX89F4votzvFS0RS/MN9uuBRMzwe6+LExWXVKxOXsbEF2euwVHW8x3hOJ/mxdfW/OGkEoIBT/matMuGobQ2kG6uq+nPmacfG7ATUv35aRnnG+VfgJKF/vkrIB9CfcWUD03LnsWI247Twpyw== 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=nUOLG4CfM4ZY3k6IjRD1zK7X0ARcNol9yzqFd0XXX+wB6YZ058fEvT/M51Julei7lA7jIY+K3EsmA8tZRMYrQcH7f2Z849p+i6Xwfek+F98vAz5vnUKWDE8+9PgqZRf9UYUJSZY1+Y2IYLLFAMcD9sGWmaLEBNzXHW/WdwcTIABsO/DeEpnR+6DYkMboosuJlDnOue12HcO33zzjh40E/BvOAw3lTF5tD8CjwXDXnb4wnUn9L+AdOYLuptRwsh0oyUVAB9cp7/HIr77CO0ReoJdAqG1syO+bmqjzKuLC+7qqavugl8fhq5I3yFJQH1qARoIHdrzr7t4b/jY/itrv+A== 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=UcIJKWnp0JOLFPZ1ZIaSyOxmXQqtCGnwl4N+e6jqpuYPQv3761k7+QsU4ZaEmhatYOz8K2WJAIrueG4/J8BRvvHpPBX2yBBqw7bzDt47P1PfZc+ZyyczByaPsS+CV/r75Q35kV3KpwDxC9G7L83yIhdBUaOGsmFdD7IArV3g0lI810kP55xPOHhv4mhxtZn2f1FWMGf0uuhknTDCPG3N3qoFPtsC6RqhqXZXD96u/4Yyv1Q9040Tob+KMSUyYpg0JBY25oSmXnOCkQcAZmFlWtitP4/U7khIwBT+ty677gNIaSIHPqlVM0QB4tOxTYIj7EPULuXbRJad089RPVeWkg== Received: from BN6PR19CA0080.namprd19.prod.outlook.com (2603:10b6:404:133::18) by DM6PR12MB3689.namprd12.prod.outlook.com (2603:10b6:5:1c7::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.20; Wed, 10 Mar 2021 13:56:09 +0000 Received: from BN8NAM11FT019.eop-nam11.prod.protection.outlook.com (2603:10b6:404:133:cafe::9d) by BN6PR19CA0080.outlook.office365.com (2603:10b6:404:133::18) 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:56:09 +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 BN8NAM11FT019.mail.protection.outlook.com (10.13.176.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.3933.31 via Frontend Transport; Wed, 10 Mar 2021 13:56:08 +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:56:06 +0000 From: Wisam Jaddo To: , , , , CC: , Date: Wed, 10 Mar 2021 15:55:43 +0200 Message-ID: <20210310135546.8680-5-wisamm@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210310135546.8680-1-wisamm@nvidia.com> References: <20210310134858.8104-2-wisamm@nvidia.com> <20210310135546.8680-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: a690e2b4-4be4-411e-9102-08d8e3cc41dd X-MS-TrafficTypeDiagnostic: DM6PR12MB3689: 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: mIEjRlSmoYkFAzL6oALwWE8NNdsJW5Ot01kBpGXzv8Vt6/Xx5tJBsGBFm0DMugZFUcsusFfTdJglD9wlx4IxDvQRdy2LBf12kG0k/uXGx9YXBWXB3FFps6KeMth5SSRhjo0pKzCtwDqykCfa1fZsY7RDMQW++fLu+IsJJygevyuDzYsNl9uarf5Ach8wcbTRwg27wHsUAgIVtq6aU2UkR8DXACejGI1k0wTdcNwwR24s5mRjk3qujW5RgAP1Vm9na5Jh3jSI5npAB9ingyNEehRHY+4TNXvFMUh9ISeQYC1BhI36t4ja2K0cMHt0L53dvz+uAHaryccMJBW0VQEXCE6G6JzW0PwO8sgKa8P+Z4HBbJ07TPOa4t9VcdzZ2EYaGx+Kg4/NPJxbtTBdhs7aYvanWVvy/Hu8xBbiOviR/vIm+SgfcVIs9pP0p0KD2Cp7XJvPqD0v8uT5Sf3QQz6htQ9TU00Ldmw/H7FY6w9g2VuldxFDqW2mZBKizVAz1lWCZaqJDcJG4h2VdkwXpK23+gjKk8nptIEd956Zd0215+4Jxp/geryeYC5144KMfoeWzuaggU5YMrW5WQaNWqaQIh62TGtF1TTyOu8MZN8DiYkjFr6P5ow58s6DtnHSMLhFA+sNoUgGoZQ4Mtipzr/ANLLGLp4eHUlsRCOXquNyUOeKkThSXFANqygtzbC9aBl3 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)(136003)(39860400002)(396003)(346002)(46966006)(36840700001)(26005)(36860700001)(7636003)(55016002)(6666004)(4744005)(36906005)(82310400003)(8676002)(2616005)(8936002)(34020700004)(2906002)(86362001)(186003)(16526019)(336012)(6286002)(478600001)(54906003)(316002)(426003)(5660300002)(82740400003)(36756003)(7696005)(356005)(47076005)(1076003)(70586007)(4326008)(70206006)(83380400001)(110136005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2021 13:56:08.9159 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a690e2b4-4be4-411e-9102-08d8e3cc41dd 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: BN8NAM11FT019.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3689 Subject: [dpdk-dev] [PATCH v3 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