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 E9C3C424B9; Mon, 30 Jan 2023 05:54:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0B28442F90; Mon, 30 Jan 2023 05:54:12 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2045.outbound.protection.outlook.com [40.107.223.45]) by mails.dpdk.org (Postfix) with ESMTP id A461242FA4 for ; Mon, 30 Jan 2023 05:54:09 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ETOmFCaJglstCvgAbJW/2tL1cW8UB7HjBFW3LZpJHbGOA7oi51gQ4hlTH9TO+e8Kmf6zoDLxIzI5ZTO/joNiQ/jrp5Gdqo3Mc/M/VTNRXXLIA8di6lcP5ouxLh3tCkFmg2y+SdnEjzpe0U/The5St7KL5mBcJ6VHPupzXEP6njyFi47ufccETDL66RLaUZzEBiYeMDEtftG6g2ZlfHts5dheZi56uKl3bp6FBxFtnBFvTf/pAs8dLwz4PDwaYNmAzgavkHQDrIhFCekiECq4baiC3reuBEEKPtgo3Uws0ccxIutQHF0D0cJ3enRpp7QE1+8QbJvcCoS+wUbss4w9sg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ejuPtJkC/h+fkCcrXd80wrbv0nVl7fvZdPYYpPV29aY=; b=m5HbGxMjeV809xI3BSu6B9ABMaHiW2QlXyyep/mhSsB/HpX1s6ER+OYf/7GQDFXllwlnZLcymhymccZA1VA8be4cLDrNgC/+/M5gpMDG9gTeEwwlqSn+emC/XO/a/8177NFtIi8usbCuS8HNeFJT+OLRiXgRb8lh3qmkjM6DeGdmzSEZJRcHDsCOu7tO3kWMa49b7yXoHxj/diPGalrsuStYCU94mrfcuaUP2juJ7BJKR0jxeUlFHDSVME0Hh3Zl84JLvj8bIC8wuIlNqXd0hTHmHlqvVZ5NrgEP/0FRSOw4a4vihOo2YT/nx2LjBlciJMp7VyKDKxJkb/gHWD+c1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject 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=ejuPtJkC/h+fkCcrXd80wrbv0nVl7fvZdPYYpPV29aY=; b=AnLoU9yz+tizyiFJE+w4H2aXAxfn9OlMkpFx4j0PYp5tE3HQLnf81ehr7eQwv8C3VFcD7pBnKugE1ki/gVmBWyPSsHppIFUwXyES+fAjLkKQAPdu0LjaNnD00C0nqkpGQOgToFu4hbYzKZ09A1c66ACJkLSsQuv1PlIfofL1M0Gv6SElU+D0XnRNsOhezW5Kpe3xbGdeSCizW9mhG04pPuwzd3FMMDbBCjMh+e7smkrmwqp5bdRnWYzCozws4isU/DXL9Rm55iSGW8Adj39gNq1lCV7jeSumkAAPa1AneUOnzNRIrlvBv/Ri2K8M1iF8EMuYThNjaD4eG+RF29hdPA== Received: from MW4PR03CA0256.namprd03.prod.outlook.com (2603:10b6:303:b4::21) by SJ0PR12MB5504.namprd12.prod.outlook.com (2603:10b6:a03:3ad::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36; Mon, 30 Jan 2023 04:54:08 +0000 Received: from CO1NAM11FT026.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b4:cafe::ce) by MW4PR03CA0256.outlook.office365.com (2603:10b6:303:b4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36 via Frontend Transport; Mon, 30 Jan 2023 04:54:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CO1NAM11FT026.mail.protection.outlook.com (10.13.175.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22 via Frontend Transport; Mon, 30 Jan 2023 04:54:07 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Sun, 29 Jan 2023 20:53:51 -0800 Received: from nvidia.com (10.126.230.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Sun, 29 Jan 2023 20:53:49 -0800 From: Rongwei Liu To: , , , , Aman Singh , Yuying Zhang CC: , Subject: [PATCH v3 11/11] app/testpmd: adjust cleanup sequence when quitting Date: Mon, 30 Jan 2023 06:53:02 +0200 Message-ID: <20230130045302.1560006-12-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230130045302.1560006-1-rongweil@nvidia.com> References: <3ba49f25-52d0-fe07-02e6-22a71e0fbe13@oktetlabs.ru> <20230130045302.1560006-1-rongweil@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT026:EE_|SJ0PR12MB5504:EE_ X-MS-Office365-Filtering-Correlation-Id: bb5c1aa9-cc12-4309-54ac-08db027e0510 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: J37FTpEtgspJawplAJV5u35mAppSCIdu21+i95nDqx4RSZlAM+oXMFrg9lBQ2NA6SwHk4MpwS6nKe1gx5cLOVC4xMFGD5BfMBMxO2KI3txAuc32EgZ2bnHrC+u9nwQaXrPTVbgaK9BLQV0fsCJNPPwQC35rPDWgoeD6LKNq/IoZu9oQIgfKRpEGpHqhi1/8E38s1nUjamGZVBoAo1F+gO7J7dLH02+0UTGVu+p13U9U06XMk67RJvfEfrfasCjco+iQvj2rjFfN13hfSS6TFxKUOLI220co9+0/Y+Veu2LQKGRwmpRRX+4LeZXZ7jLGm9q52qKj4NvmJjKtf1q7A9ybgggLOxcTCvrZcU6X1mI/Hi6s1gCh2zQDM3u3dNt7rdx12epSjyviqP6BXsGzMadItjoMFcF71YEYFqyGdK3MF6W5poiTaoAbdKlbSwLLAX4E0p4WQN3aBXNK3uMV6hMxMiMagEZ5xDRiwjmMvRvCVAevdYcij7ZxQ59nPq2mhg93XfExL+c2xVhspQ39Q8HPAoVKXc9Vh7ruAIAxI4FxKN4fpQH3TP7sOw+W0M7s5Ai2QX9YVueJKYr8m22dU2UY9WfR0yPdXLydTZr+YaiVFQX08mP/exa7HWjsvf3JgYD8BbV1Khldtes12jfFfaEImk9jzErZ0CCt6gYPw3EHxBnY2QPoRo9GlcnA7/LWKMHTOev0PFDmvLnvWNX0KDg== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(136003)(39860400002)(376002)(396003)(346002)(451199018)(40470700004)(46966006)(36840700001)(36756003)(54906003)(110136005)(316002)(70586007)(4326008)(8676002)(70206006)(8936002)(41300700001)(5660300002)(36860700001)(86362001)(356005)(82740400003)(7636003)(107886003)(6666004)(1076003)(186003)(26005)(16526019)(6286002)(4744005)(336012)(55016003)(82310400005)(2906002)(40460700003)(40480700001)(47076005)(478600001)(7696005)(83380400001)(426003)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2023 04:54:07.5585 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bb5c1aa9-cc12-4309-54ac-08db027e0510 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT026.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5504 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 If flex item is referenced in async flow either by pattern template or action template, currently testpmd complains "flex item has flow references". Flex items should be flushed after async flow resources cleanup. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/testpmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 134d79a555..e35f7a0e7a 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -3298,10 +3298,10 @@ flush_port_owned_resources(portid_t pi) { mcast_addr_pool_destroy(pi); port_flow_flush(pi); - port_flex_item_flush(pi); port_flow_template_table_flush(pi); port_flow_pattern_template_flush(pi); port_flow_actions_template_flush(pi); + port_flex_item_flush(pi); port_action_handle_flush(pi); } -- 2.27.0