Message ID | 1469675371-20274-2-git-send-email-forrest.shi@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp625544qga; Wed, 27 Jul 2016 20:23:09 -0700 (PDT) X-Received: by 10.55.161.73 with SMTP id k70mr39618911qke.189.1469676189511; Wed, 27 Jul 2016 20:23:09 -0700 (PDT) Return-Path: <lng-odp-bounces@lists.linaro.org> Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id m190si6564161qkb.302.2016.07.27.20.23.09; Wed, 27 Jul 2016 20:23:09 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id E79A56852C; Thu, 28 Jul 2016 03:22:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 66A2A6850B; Thu, 28 Jul 2016 03:22:29 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 9FB666850A; Thu, 28 Jul 2016 03:22:19 +0000 (UTC) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0046.outbound.protection.outlook.com [104.47.34.46]) by lists.linaro.org (Postfix) with ESMTPS id 2E9C86850C for <lng-odp@lists.linaro.org>; Thu, 28 Jul 2016 03:20:45 +0000 (UTC) Received: from BN3PR0301CA0031.namprd03.prod.outlook.com (10.160.180.169) by BN6PR03MB2484.namprd03.prod.outlook.com (10.168.223.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Thu, 28 Jul 2016 03:20:41 +0000 Received: from BN1AFFO11OLC002.protection.gbl (2a01:111:f400:7c10::166) by BN3PR0301CA0031.outlook.office365.com (2a01:111:e400:4000::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15 via Frontend Transport; Thu, 28 Jul 2016 03:20:42 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 192.88.168.50 as permitted sender) Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11OLC002.mail.protection.outlook.com (10.58.53.73) with Microsoft SMTP Server (TLS) id 15.1.539.16 via Frontend Transport; Thu, 28 Jul 2016 03:20:42 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u6S3KZOt008139; Wed, 27 Jul 2016 20:20:40 -0700 From: <forrest.shi@linaro.org> To: <lng-odp@lists.linaro.org> Date: Thu, 28 Jul 2016 11:09:30 +0800 Message-ID: <1469675371-20274-2-git-send-email-forrest.shi@linaro.org> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1469675371-20274-1-git-send-email-forrest.shi@linaro.org> References: <1469675371-20274-1-git-send-email-forrest.shi@linaro.org> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131141496427424622; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(189002)(199003)(92566002)(189998001)(2950100001)(19580405001)(77096005)(586003)(4326007)(305945005)(7846002)(104016004)(356003)(8676002)(97736004)(106466001)(33646002)(6806005)(11100500001)(19580395003)(2876002)(2906002)(76176999)(105596002)(81156014)(50986999)(47776003)(50226002)(8936002)(87936001)(5003940100001)(81166006)(86152002)(86362001)(68736007)(2351001)(229853001)(50466002)(36756003)(48376002)(110136002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2484; H:tx30smr01.am.freescale.net; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11OLC002; 1:rPAWOnFG2e7XNABDgHNqSVZEY69OShfbaaR2P+/VzqZ4rMJzSJsc+xtVu9nl8B9JUlhEMq6xj1Xz7JpxY3grOzltYo5WBycvdf3d1UMnCpOLGMrAsHLC31nZ5tF5JPOd/8BL+YgEYjgnAz48RFTiBnA0Uw6moC0FqgKeEUQATO3lzsjX1LrfaAATcEt5RqUvjp3rX85OjkVQTqgAbyWkdDopueIe4vyu9hjOsim6448V3506tXPTVluDrID1wAB8mzrhKNbrSgBn4g4MQSey0B51coqGbZ0E2xaQChASf3cLmZiBrIpznSvF7FdFHbnSmdlKBoklg//JXRlLoZYaC+AAocjGtZ0OEBhh24c47wg3t9262plwGkkRAY8IKtJKqIslj9dgHAoxVyfPlqawFDEW85125QSE3Qj3z6S21X7SrFZeTVJy+cd2NvlEaiz2P8F5GK+bDAne9JJ3x9wLliv2ZFCpikQqDuJxfv8BKhiaR80op8HsWx+vq7Z+ObSAhLqllva2fPVvp6lasgQrkaBSz8nIvHbmtyhZo8nWwu9dru8DwCr1d0dBgFZ25gWCvK24rzfQ+MwJBI25/Pzr1EYX+CgPpiNxjbnntoOejVTtxzNJBAZCqxUDCpZXoKCm7eaQ/65T70GYd8KXxppVGg== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: e046b7ef-19ee-43cc-4a0f-08d3b6962853 X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2484; 2:UJ51lsL1QnI3YeovDVtEg6kSFju7T499hVgEaLdY3cjJ2ZcsMJw1cgzaMUvIKVOMXhCT+brqJqiEB2PVXDHIbm0T+cQKQDWRNmj7kgjkMeQw7LKqNTWSrHAMy+Cns53oieN6Y/IeHYyR170ggFuAUdTMU8E86bwVdhRL4iI2lp4sC8OvLaNRc4rhjICZ+I42; 3:B8m6MnCA6Dh/eqf9V6C5dMBl5V6bQSaI/YiVVxX03/wai1f7YJP1jO+xtHDull0YJbg/pe8YqrmPPoNVX3un0V8g31HqBrJOjKWYlpo7OUtEMU0EqLcslErKf3mYAbC00Js+fbfIYP22ivO1JH8QNztFX/regSrqqENsP3cqOahVWJTHM6xtwtL4AhHj6yIlKXOcT/zK416nskpjp1Xor3i3Jsea35FRwUub9tFoRes=; 25:b3sUT8yTrnK3kMQJQGdVxiB747hTlJDwBQV8T6XYTBeTPklptP9aJkpIwv6WJ+V6ClWLdNNoFvWY4J7d3pUamScoXYhR/e5BYlpBpn/QPa6IHWqBPewpj6UFDeKR92QwgI3rzJImpFr8CGszixXxwv0x/Xjo69ftLQrr21ynTJhKtZZsHzMpeKhWkV0pn49rKD0lXK6LomkrwoCJn5TFL8gmFG8myQZ+nWWiUYWKMLvNc/zfoui+ltizuJIq1e2NTOz4GdlebrSa6E/bffzC7n9SJNGjIf/s8TW2XrmdLPXGmduhyh2r1KxDX7d0r219c+7r1CnWHcQw+naexsfQHe/vC0waKFRHgzuKOw49Fmt6i0HNdouIh89ra9gswZ5+lPoVIDwSGbQV7q6dxK+JpTY8C2dUw93jcAYFWuzl4Pw= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN6PR03MB2484; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2484; 31:nteAsrnTmffB74U6uYDMQLqLp99O+uhsodPgoo+zSHBmHSyTrH8+VuAJBCX6O8QcAZAT5PE/UweVf+lp8ty1UeLHrH06bQbn7Q/XtxyxFY3594hIgrFwxI4TBlZZ7mvPzo4WhtT0dvsZtTWZEz1o8JKZN/tIpyFFRX8r6s4YDES9Orej47xvrUujRXb2v3Mk/h+bu4hqTkXQOjUT/7QMqQ==; 4:J5qLHjN8C4x8IKNpsK5xGwoAdFwlTdbP3hjjBBzm8XTc0pa3bjBvFCHC3iz24dClqi/9fqUpc+h1X06+klO35ep+9sexjLGKUt7hoVkOjzSrX07enk9DhFfNwmkU7Ai/OHAJmOp+2+ehCE/tlul/tZuj+2LKFVvn3m4qbx6YlbwmEyTX2vv2EIX5+gFHbmP7Ajk3/sG0T3iDcjxd/UarrBx4I+A/oHDTNNUUIHWnBNDs7Wj+kXmzsoIWfiFluh5MCaRxw89GSHLlsPRhlm394bdg7B39eYGodr5TOoPelJ+q2LNeoyCu8WuM9COMsS1cP4+sOjuL9k+nPro0uTRsFCImjDVrC4YfEuF7Hfiojh0EWO8JJVeEu1Nfe59C1JrxYtfn5dIXQ4XXzjqW6aYBT5U/YOWuf5yiLXZ2VGtwbo8CTtMGvoKI4EAzz4SSeOyemdRt28FmdfUYhdWRSgR+1vaOYq4udzWiefgZt7w4VAI= X-Microsoft-Antispam-PRVS: <BN6PR03MB2484CB5194B2184E43DC24798E000@BN6PR03MB2484.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(13017025)(13018025)(13023025)(13024025)(13015025)(3002001)(10201501046)(6055026); SRVR:BN6PR03MB2484; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2484; X-Forefront-PRVS: 00179089FD X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2484; 23:1HyO/88asyj2m3ZxFtJEKsjbtQBtbN+4nM9o/8IPh?= =?us-ascii?Q?pWCzVR3wBOVRZpDwKUnRC+z2kT1D/4sggjtN8aeS3R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: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2016 03:20:42.5552 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2484 X-Topics: patch Subject: [lng-odp] [PATCH 2/3] example: ipsec: add termination path X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" <lng-odp.lists.linaro.org> List-Unsubscribe: <https://lists.linaro.org/mailman/options/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=unsubscribe> List-Archive: <http://lists.linaro.org/pipermail/lng-odp/> List-Post: <mailto:lng-odp@lists.linaro.org> List-Help: <mailto:lng-odp-request@lists.linaro.org?subject=help> List-Subscribe: <https://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" <lng-odp-bounces@lists.linaro.org> |
diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c index 6a9a9fe..f0797cd 100644 --- a/example/ipsec/odp_ipsec.c +++ b/example/ipsec/odp_ipsec.c @@ -1361,6 +1361,32 @@ main(int argc, char *argv[]) free(args->appl.if_names); free(args->appl.if_str); + + if (odp_pool_destroy(pkt_pool)) { + EXAMPLE_ERR("Error: pkt pool destroy\n"); + exit(EXIT_FAILURE); + } + + if (odp_pool_destroy(out_pool)) { + EXAMPLE_ERR("Error: out pool destroy\n"); + exit(EXIT_FAILURE); + } + + if (odp_pool_destroy(ctx_pool)) { + EXAMPLE_ERR("Error: ctx pool destroy\n"); + exit(EXIT_FAILURE); + } + + if (odp_term_local()) { + EXAMPLE_ERR("Error: term local\n"); + exit(EXIT_FAILURE); + } + + if (odp_term_global(instance)) { + EXAMPLE_ERR("Error: term global\n"); + exit(EXIT_FAILURE); + } + printf("Exit\n\n"); return 0;