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 2D2C7A0567; Wed, 10 Mar 2021 14:54:44 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 82A5E22A69B; Wed, 10 Mar 2021 14:54:21 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2046.outbound.protection.outlook.com [40.107.93.46]) by mails.dpdk.org (Postfix) with ESMTP id B1A9722A685; Wed, 10 Mar 2021 14:54:19 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a+kYu9QXvpL4t6kQ4IY9K4Rjes7r5bd+13Rww5mtDKR/pGyno3vxDcEwb0HxrVkCmMOZlNI45NFkaZFqKkpoHpQrsAyuy5aC90/hKWnWn2Ool3xMKCOdPgN4rl4H0ENQuNbItUmPx9lotcLsdy8ZvlqSjB8yUiI1EISMz27BKFU97ki8yGYmoX/5It0ZkPoy44bfcRVY2Fn8Q0QCH4vhY5k7AkBEtBjDbwj2KiQXJsKmKrVdcJBUr1dhVOSuBlAX0kZDSXfsp5JYJTrpSdro+bQ8cp+/+317zRwZMJ3nOr40UOTbEK0LRMftAcbw/D40UUs+FYCVMUh+Ef8Z/x/XKA== 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=EFcOGok9TChTCVaQm3F6rjNB+OW6TuwXTWRnavWdM4vRGPzHlXiAGTn2ayQFB2hGA3aNeTdIGu+j+NdQ5jD9tg392gSf4y3pdHBHH/KbjYqhBlt6g6sWe6uogG11r1IZ6gbfyxABOwMnOMIadGCKksd24smmKJb7zUzT+cCR/gLtwPHuw9tzu2roCyGlXX+2dMVI9MbuVbMK/xDVeWv2mwie/5Ersc3+weJpivJr0TXkPeNzizgB6M9l3/gcmNJlQizCTgwBhSxzpdVT6evIeI8dwt5VjeJ/AZvpHSoKsay8wcm6hIPNOO3BR/HfayUt6oQmKaFQjj+htEOkznB6tw== 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=AehIX1KgjqkolR6JyrS5KnOE3Uz4TsFYX9CoQvxaLdeURVnUaoP+EQIDbD+JvNDzcdxvzVd+ON/ELIcuMEIGMO4eyqkWIImTRTDWeAwH3b30xC/5Kt3U1KB9rR3k1O8cwt3qTzUtZz1QpgOzYapb8m1ipjJ48bqniHQpPaf+p+qkgXEjeeaDwtEDe8cZ52SwBUfS/e0ayDkJ6qE8wJ1xFEL9OkD9OzZhr9BaGfQgqc2s/F7d5DvRAthoKhKd9wusnKBLFiNJ1vrbvgYKw8tSFqpJvm2JVHM+StUCRRrWBqw+DTDch8Aze3XEibqXvAPxnLYNO5DbAaaY4DbPj4dQHQ== Received: from BN6PR1201CA0014.namprd12.prod.outlook.com (2603:10b6:405:4c::24) by MWHPR12MB1406.namprd12.prod.outlook.com (2603:10b6:300:14::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.26; Wed, 10 Mar 2021 13:54:17 +0000 Received: from BN8NAM11FT039.eop-nam11.prod.protection.outlook.com (2603:10b6:405:4c:cafe::39) by BN6PR1201CA0014.outlook.office365.com (2603:10b6:405:4c::24) 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:54:17 +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 BN8NAM11FT039.mail.protection.outlook.com (10.13.177.169) 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:54:17 +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:54:14 +0000 From: Wisam Jaddo To: , , , , CC: , Date: Wed, 10 Mar 2021 15:53:50 +0200 Message-ID: <20210310135353.8429-5-wisamm@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210310135353.8429-1-wisamm@nvidia.com> References: <20210310134858.8104-2-wisamm@nvidia.com> <20210310135353.8429-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: dc197b83-3476-49bd-1826-08d8e3cbff62 X-MS-TrafficTypeDiagnostic: MWHPR12MB1406: 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: i4BnZwMQOOWDlPwDKSO0c3FMIBGhfXQ5oWsHyVe2O3YmjyXIJLB300Y1aUtRAEHJwsY1Sy9TgYQM8H/Zj62jSEpCBHgYmctYrdF7KQMEwbxSF3EQOrJvfXwVYIdJo6+9XG214KVtzf6f7rrevvxxJT0M/3DemFGSGYVNxXlky2KjDKnqIIjDWXuwwgSaFsDXLTztobFXTV6u+MEYpRHCZemu5DkQmwt2sa1c9iOAJmw9MpuIPtlXNnAVemRu7GlJlNTzbFjhbz20UFL9rGB1MHHmuLfIbI7FdDanTMU3lxomUcigaatG3sSj3lz1+stbl4mtIHMjh/lQs9cNQR4FbX4ic+kadr2mD3xpgtGRl7Yp8EiVUl/1zfHolCGqZqt3/IF6gRJmnwcwSyMvkEspFSbviR3dUgWYDqOJROMqLlSFEf2ahF9rexiXzhRGZm2W+mBKJgQjV2seB4PTUasuj2KYhv+tE0kFtoN4wtjksUAzz1jTu55QCyOMcGyUz4ROulLjpbl2FdwYhimcv9wdpIetgD+/9454qd4nAguNicebqVxwleDfeINTiQUrlcAsgpAvvGhxG6GyYHxHSK/7Ot9SbWbTGBc2oWjYZqyp3Z7DLC6UgTudIRP6iYoh3KtmYOLdAGKNM/i+HDDlS1SWrZ8BTszWGBOtrdPTMO4dpHgUhDxMyyiTUTgHv/Plyw77 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)(396003)(136003)(39860400002)(346002)(376002)(46966006)(36840700001)(4326008)(83380400001)(8676002)(6666004)(478600001)(8936002)(426003)(336012)(1076003)(7696005)(356005)(7636003)(26005)(54906003)(2616005)(82740400003)(5660300002)(4744005)(70206006)(6286002)(70586007)(186003)(16526019)(316002)(36756003)(55016002)(47076005)(110136005)(86362001)(2906002)(36906005)(36860700001)(34020700004)(82310400003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2021 13:54:17.3821 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dc197b83-3476-49bd-1826-08d8e3cbff62 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: BN8NAM11FT039.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1406 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