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 E0C7942413; Thu, 19 Jan 2023 06:00:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2567F42DAC; Thu, 19 Jan 2023 05:59:31 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2069.outbound.protection.outlook.com [40.107.93.69]) by mails.dpdk.org (Postfix) with ESMTP id D4AD842D74 for ; Thu, 19 Jan 2023 05:59:28 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PbNFcWaWNJypr3etnN4pC6tfOPzOQN21V5THkbPSk6i41PQ6Tqh7k1bXcKA4MgT91ZsZ8rh4+o7Php2aWpwU9Da4+EVPZeF/0YwRqVRAY+32AJAsQGyupBvLD68RMKW60xVXKvJ2tbPfW8OIEDeXkmXOY/oNEelC95k2Tn4CYiWnuB+59oGzKrCr/CTnQ+TuCOYX+lcKWF32SErr4W+Q813Ukz0ldaQGzJXV9BsDnirACMzqM4NLdHgWAhnKXyeaNzApozAT1sdy4YQQNOHFw8Nr3XbVxbuGwNoy6TJQ/SS+/qtdJaB/pxEd+7xKjg+/qZSxjv169A34x0xBO1igFQ== 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=8NxyN5MwR09LaiAvz0+L6HkUfXv6y1x9Epnp5rcKHVY=; b=j9s5ZUbH8z+gG0BD3zlczxEOPTrqe08R/poaxWan3FqeTpa50wzxrpJ19TA+rTY/k8bEyY30L2bHNyKK5I7j8QXlgTwH1gQoxWjr2Czs/grzH95MnNQt3rfNUfLmxjetu8syk7A2fxtrldMDOMShc5mxVoS49X3KKoR3r0NGGO2u5vueHB0QPgpI/8zF3Oqpuk7xVfIv7RBEZZ5HNeTH2EEheBFqXN5zdQbGkRuhS1GkuAFub8q6oNVJTB3OURh1JIF0bWMLlWdOgiIXePCATYI6jnE5SgcZ8cuUEdHOqxDs0fMg93wjAhOrEgIh9NQFPXZGenZZLLXcLpWCmIRs5g== 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=8NxyN5MwR09LaiAvz0+L6HkUfXv6y1x9Epnp5rcKHVY=; b=Bfzrhaj8cWtgc554AFNE1E5qzNYb47bcpshRQYeoALzykS4UD0ebwLJfpMN1h8+EGThZhOg92EShU19vflgPttn31dBmXGeHsH3NOqzSaF9+o665jypkQonWZFHib2Qxe5M/iikpWXvdCpcgU1u6+WSEjCwDl+kteCsJQYDgv37znlv5HuxnEbZnu9RAPY4KY+kOayTWhoQO1OwtGmlZUszKbcCDjwPJID6LootPKlz/cXlXca5Ed/LV5eGvicrCXz0AJiHXef4SqD0fig81VuCf9A5lqaRokqCELyXU/WeZVEd9G71F/akzw3jm+rGiUb45maoBmcqApCRZxd3oiA== Received: from MW4PR04CA0167.namprd04.prod.outlook.com (2603:10b6:303:85::22) by MW4PR12MB7016.namprd12.prod.outlook.com (2603:10b6:303:218::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Thu, 19 Jan 2023 04:59:27 +0000 Received: from CO1NAM11FT076.eop-nam11.prod.protection.outlook.com (2603:10b6:303:85:cafe::42) by MW4PR04CA0167.outlook.office365.com (2603:10b6:303:85::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.25 via Frontend Transport; Thu, 19 Jan 2023 04:59:27 +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 CO1NAM11FT076.mail.protection.outlook.com (10.13.174.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13 via Frontend Transport; Thu, 19 Jan 2023 04:59:26 +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; Wed, 18 Jan 2023 20:59:07 -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; Wed, 18 Jan 2023 20:59:05 -0800 From: Rongwei Liu To: , , , , Aman Singh , Yuying Zhang CC: , Subject: [PATCH v2 11/11] app/testpmd: adjust cleanup sequence when quitting Date: Thu, 19 Jan 2023 06:58:24 +0200 Message-ID: <20230119045824.665663-12-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230119045824.665663-1-rongweil@nvidia.com> References: <20221221084000.3680015-2-rongweil@nvidia.com> <20230119045824.665663-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: 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: CO1NAM11FT076:EE_|MW4PR12MB7016:EE_ X-MS-Office365-Filtering-Correlation-Id: 82c84f7c-523c-4504-f08e-08daf9d9f0d0 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: l036HOrKljH2KH2yKlj7VisQZ2+r80Z8NESwBPygP+pHeU6JUpRQTCI+U7A4L52EggduFISoyrK/BkdgPZJV/k9zNiLoojupf8tCDzDunaPOahqgiJtQv1hpmeBz/nETpgcZkEgBZuZOlMwdGoR7vIw5JSuRW+86GnBr6r06jxfHmoDkVogeEgyo0B0Q842naO6L7d0OQKXTbe/Hej4h+olePj+g17/CoJBsLRMWtcgK4hre+Tpn8H0B0GvyiENSjghJILXu898i6wmVcr9BWtVUQy1SscwOzM8TJO4o/kHdJ87mbFOUu2E2/zMzPf7TcJlgsKjD3sns0uLtDKwtgf4elIkSPQsOaTyLAzEcR+zuG55mh4wdueMBfKL/IpdyB0O/ZAWfFlhQh6hKFXmN/w/YbYgRUr28R9+NfCeo866WGeZ1K3FkkjHNfbRS9ztU0Yv2LFpPS/CIKoGtmwIVQeVB/NZnoEn1n2go70GxvDxCYr0TLdrumiC5vqBX9fGh+91xr8rAm0PME+TYLBFfp0a8cTHGhV3RIomDgRK3zgbTWxGDrT/DMz6OF8QaiOcaWMPPf3aljXkIOs/XNr9/qcdtg4sM2MDPuBLnCr+WksUeyyXQ+UK2ghxr+ngWYlbd4eojJXdeCGuUYLqdb8MMm1lpxpqzsD7s50pCBOrcuJrGqeH+IOJ5TzEErDFYoXqPBE41WVGPi5/9z3zeb06/Jg== 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:(13230022)(4636009)(39860400002)(136003)(396003)(376002)(346002)(451199015)(46966006)(36840700001)(40470700004)(82740400003)(7636003)(2616005)(82310400005)(8676002)(4744005)(1076003)(356005)(107886003)(6666004)(316002)(5660300002)(7696005)(2906002)(54906003)(478600001)(110136005)(16526019)(26005)(186003)(40460700003)(6286002)(86362001)(41300700001)(8936002)(47076005)(55016003)(36756003)(40480700001)(83380400001)(70586007)(426003)(4326008)(36860700001)(70206006)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 04:59:26.8072 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 82c84f7c-523c-4504-f08e-08daf9d9f0d0 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: CO1NAM11FT076.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7016 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: Viacheslav Ovsiienko --- 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