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 5725141BE4; Mon, 6 Feb 2023 04:40:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4C55042D38; Mon, 6 Feb 2023 04:39:49 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2048.outbound.protection.outlook.com [40.107.223.48]) by mails.dpdk.org (Postfix) with ESMTP id 8D9CD42D2D for ; Mon, 6 Feb 2023 04:39:47 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h732dbL8PhT0UadReVEnFEnmMsaUQsHxGtvVuR/mJuwNyIL0Cxzzfv2MBU7JRyOnwXuertWWZof67LZ2bYQ/Cs7KvNuXqRfR6ZICOF1vkm6/Ok88lem5F2jQjTXPWjk+W4N7qH4zoVo7HxC4dJapkHw/urIcMNmgOMbFaEh8I0RpIN0RA3PuKlifuzKNZNSkYR9xnmft0LA7r8G5C9/rkFMZc+d+6pZLAqlzFLDooEuy99SiXgzjayjeYfzhzRaYLIcVriAjykrwG0QxlNFKdWZ1Cryg2WZqaJ/I81yeGAdudBkoUehFslOKSQYbilPFtdKKnx7/VbgWF9MXIz+xeg== 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=byHkeKIQQxZskIg5q7J+FTgbyB4NOnRaIjYVjOxQGWk=; b=KbOlcfygRPFp/rxSE9dFRZZ1bHtsSPqzfAW8gS+kqdzZNYU4DmKzI/hPm3fwKOKJZ9w4OT8sQ+i+RKTX4oQu9ehz9aRD6QeCiuvQ/SgFvnh/ZpVIW7iZ3f6ZR2CvzGmCJLs+TVT1ETP3K6WI2B3iSdD+ZfuAeYWS+7p1lNcPMWenfko3msaWLaAQ8SJR8b0Y7QIbkoDHOee/bFXDUNfjjC/CNuDdooEC+e0r/mge1K/hSdbb2Pmm+w/ri/eIxtzCH1iDniq4D+kyBDV3FuVVmKnRla0SQfz2GisdDQY9g8kh1YWyE8+Q3azof00NpFJMAIjmm1dbUAPzA44eyV0GAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=dpdk.org 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=byHkeKIQQxZskIg5q7J+FTgbyB4NOnRaIjYVjOxQGWk=; b=Qev+2QWSHsN+0sPcPRAS5P5dmppoIAWNvgjM+CnhhZNWnBzP0VW2oNyUoChMtW6n1yltRi+XDQy2UFoefavrE1cgXOb5nTb/X1ESYPYSzASWyQGzLwBicz3ZzIPdwPmMs/yTNd2MDGtcgynyK7SLb3kt0m+Z05h0rS5hpThhESAEBNFD9zubvQB+AFrebI5WQ7PMJP0fgaxbgFmWeHacMKZRA3CkmW0edc2YYq8/WJbcLxvEMmGn73zlWL3+d50lS9JNQ26Aq+qlrPwMVZN5rQ5sbq7w64wIfYE+w8a4tSkoxef7pRRl4z1wtn4OW4asXBY+UGY2KvTtbE1gkdORog== Received: from MW2PR16CA0005.namprd16.prod.outlook.com (2603:10b6:907::18) by DM4PR12MB6592.namprd12.prod.outlook.com (2603:10b6:8:8a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.31; Mon, 6 Feb 2023 03:39:44 +0000 Received: from CO1NAM11FT005.eop-nam11.prod.protection.outlook.com (2603:10b6:907:0:cafe::74) by MW2PR16CA0005.outlook.office365.com (2603:10b6:907::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.34 via Frontend Transport; Mon, 6 Feb 2023 03:39:44 +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 CO1NAM11FT005.mail.protection.outlook.com (10.13.174.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.34 via Frontend Transport; Mon, 6 Feb 2023 03:39:43 +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, 5 Feb 2023 19:39:37 -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, 5 Feb 2023 19:39:34 -0800 From: Rongwei Liu To: , , , , CC: , Aman Singh , Yuying Zhang Subject: [PATCH v4 4/4] app/testpmd: adjust cleanup sequence when quitting Date: Mon, 6 Feb 2023 05:39:08 +0200 Message-ID: <20230206033908.2770135-5-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230206033908.2770135-1-rongweil@nvidia.com> References: <20230130132000.1715473-2-rongweil@nvidia.com> <20230206033908.2770135-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: 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: CO1NAM11FT005:EE_|DM4PR12MB6592:EE_ X-MS-Office365-Filtering-Correlation-Id: 325e0686-ac74-44ee-a728-08db07f3c962 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: RdbCNSQU3762F0s38nTHt5VXbvGiM8zqB13iD59u4JI3GBQO3ZE32xksxhJJUTZrnV8nJmExQ+z1jRWSIAqZEMKaNKZs1giqr3JGvpXdJeP0eD9qlvW+rZjmvwZ+HRvWJfUr2A8xVjQMu9xVh40eqBdPmKcp6a6R3f/N6zDkop7ciPZxZoortpVo+8yDP1uLRoo7VEGY43vo2ccLHwfftewvoHzs3TwPjeeXazDlpLe6jfngiXr/lykvR1zgQTXjqxlJUFvhAeypXKfOezey+62IyFvWC05jvhiHkwZTzSyKoFa9XuQXTybrXEfVUK+SxI8ipbHkoc0+RepWQFJy1PbWi+9nA+GyXivvBClQ9/b0mj/hmPs+i58C0nurMlmUV6aEOquAp2izkAabfvhra3nTL+NAlYtVHoMRprXsp6O1Gjqb2mPN+g/GA14d4rk0z0t6mvoJrcJcGtK3Erw9lCfBYTfF2oDnhzwzoWKF85W4OGYx0aUYvhMCNU/SgZ9lDBQU5lqqCJmK4RTGfjuRG7BLaPt8e70flTAj0Y0fYjrYkhJcRTV7epp91+ni5INWRPPRhGgoR4xln2syhNuQCz2huBpB3rdvbBxCxXGGWeBD1Rp8H+NSmlCgNvApLLsVvSV9xbISZGuBRM2ClS3ADK2Jdt/yahmfUvDK9PFRp5/vh6mtKxoFhb5Dq5HXyEd3KQWFmefqKw86TCtZxLca7g== 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)(346002)(39860400002)(136003)(396003)(376002)(451199018)(36840700001)(40470700004)(46966006)(4744005)(82310400005)(8936002)(426003)(36756003)(5660300002)(47076005)(55016003)(1076003)(6666004)(110136005)(356005)(54906003)(316002)(82740400003)(7696005)(7636003)(478600001)(83380400001)(70206006)(336012)(70586007)(2616005)(8676002)(4326008)(86362001)(41300700001)(36860700001)(40460700003)(40480700001)(186003)(26005)(2906002)(6286002)(16526019); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2023 03:39:43.8627 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 325e0686-ac74-44ee-a728-08db07f3c962 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: CO1NAM11FT005.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6592 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 Acked-by: Aman Singh --- 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