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 0864E41B81; Mon, 30 Jan 2023 14:21:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3A62242D7C; Mon, 30 Jan 2023 14:21:02 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2056.outbound.protection.outlook.com [40.107.93.56]) by mails.dpdk.org (Postfix) with ESMTP id 2ACDC42D5A for ; Mon, 30 Jan 2023 14:20:58 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bF8lo9laqZjC+b61nvo1Mh+zMl2eoDXrSHEnl41dBkdxzDOLRQQOsDPB+KOKUL+fD6ZPcsmX+FeCj6Rfvmu//05yPrkfDGtkJ4RgiY/t082TB0VfleyeQvPSPg3hELX1J8jSI57STmJiUD3CbW1jZNzt58DCdIn20D2d4LS6zpgt3128HQBSJHvYtyWHZUG8RPBbpQ1dJaz2Z+qxb1+qttsOaiAlTNgqm6+Gzpju7hAuGSQwVly7fEUpQikQb0Z7Ud9wmeCsZRNX28+f/cLgAes2xUrkz/uYqQE1M8ggK0jOYjQ+2w2kaLqUDP/YAfBr8x24TvDvn5GN4N/6t1vhRQ== 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=MPmeAFRBykQdGyJYhAR7xCL8f+ZEJQTb3GDinUrNlQcDnzHTrgk6JUHBy3sj2CJ3AhsqBn2VJ2XVK2DEY/1Xo0wtrP9hvm/lxvCHWI+1ET0N+uRwIsI8DAzb/Aq5wa8V43hMF30PbrnU/orBQCyzTtmMP3ZAudphtFjqBQKUFbUD8biiv+A1LWpAJA4xp0YdUObunUHCl9VPd8xIrmGCJaU4CmGwfElmQbYruU3XheL/cGm6DOc4NHSMe4aWahZkXbHq8gw2pQvbOv2P2f3Jva0t469NzISSbK/1VHWHqRMib+8Kr+6pAIllsOd+Sz4vI8aV2mGEelB5BqnhmU2pyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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=knx7DaXdt80BD43Z6Ij8rfxWoPAfJBwx3P/mQRTGmN15/Ds2YgBtUI0MaUyzI2yeYaeXZmC0uwkuA71csY7zYWuKGn/jIXGKE4msUzicSrOENoCsQbeoz4Rc7xpx04ngbW/9eExFqbhuHwPrdfvlmx6W05qmQA5CVU0HYiwHMA92lB7o06lUEfyE1p+E7ZeNjJWXEWp6xgDILT2RJALaXdxuQWlQqghXDd6aTUxLuaVi7V0xXYBz3b19hx159Of+iNsMVp7/03NK/JZDNd0GFA6WoDgGvxJb68j2TGBunOWODsL5+6kAkwSDeZLOAhGJ9yU9Lx1EJjUU+6K1gRIZgA== Received: from BN1PR10CA0015.namprd10.prod.outlook.com (2603:10b6:408:e0::20) by SJ0PR12MB5439.namprd12.prod.outlook.com (2603:10b6:a03:3ae::18) 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 13:20:56 +0000 Received: from BN8NAM11FT025.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e0:cafe::e1) by BN1PR10CA0015.outlook.office365.com (2603:10b6:408:e0::20) 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 13:20:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT025.mail.protection.outlook.com (10.13.177.136) 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 13:20:55 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 30 Jan 2023 05:20:45 -0800 Received: from nvidia.com (10.126.231.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; Mon, 30 Jan 2023 05:20:42 -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 15:20:00 +0200 Message-ID: <20230130132000.1715473-12-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230130132000.1715473-1-rongweil@nvidia.com> References: <3ba49f25-52d0-fe07-02e6-22a71e0fbe13@oktetlabs.ru> <20230130132000.1715473-1-rongweil@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.37] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT025:EE_|SJ0PR12MB5439:EE_ X-MS-Office365-Filtering-Correlation-Id: e49574d2-a858-44de-a36f-08db02c4d1da 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: 0jCqpIW+r+7102BasUngmzWaVqtqx5HYGP1lTGY+qnVjhTr0ovv8jiU7nvvPyeoLskStc7IHvFJjWLWP8UoN4dUfPBGpCNVwdsV5yHqwTwhFHYNmca2+xqXtEHQEmE4NKBtkfUQbky4PmPVzfZHTlaHXMVEatYayMpETiCfbFQEe1if1VZHYl9iDQmrjVRr1sqzC2sPYC1K0rJHyhDtlEWc1MBTm3K4jg+MKpRnhYtNJYuYdKDi8QzOPfMn7H053hSC8yFlRa3Rx26SSgnXIlfCdpKlglXKBGQxRMTwXzMHBkGzwZFA44/0NqJ+CCG9+2XTZuigiPrbZSyo/R4t7elnkdUscOD1edchDbCvwPERx+3qxsv52aRFwDN6gZGGj3SzG+2RD04da+HPsWUK6wHEBPP7HEU9z3dtQItEniSCs9ZJ2kvlpx00wNQYZcG33arhfkgjs/MF9F0peQZxFn09nq91Gz/JzmelzUX8smD+jaDl/3TSM57qeAHbnFUAeB+SzpYdsSHaeZWRGecn061krjr/ez9nICE0UZTyUY4fZLleb92KjMo7re7LDAmn+wEfyJmS1pwRYJI4z+OHtaQjzMlBRu3wkEO9lOH6Bmal2kgacb09/sa1TZJjXrxkd7gf/jj/WCUo9kKCqIsq/miIHX4jk1wQcj4ni7tAL/fY80btETmCDc5NxEPWrEz0Y1JzwFKQgh7eUadrMQN5RAg== X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(396003)(136003)(39860400002)(346002)(376002)(451199018)(40470700004)(46966006)(36840700001)(40460700003)(316002)(83380400001)(110136005)(54906003)(41300700001)(8936002)(70206006)(47076005)(70586007)(1076003)(107886003)(6666004)(8676002)(4326008)(16526019)(186003)(26005)(6286002)(336012)(426003)(2616005)(478600001)(7696005)(82310400005)(356005)(7636003)(55016003)(40480700001)(36756003)(36860700001)(5660300002)(4744005)(2906002)(86362001)(82740400003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2023 13:20:55.8638 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e49574d2-a858-44de-a36f-08db02c4d1da 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.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT025.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5439 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