From patchwork Fri Feb 17 11:34:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 94151 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp137591obz; Fri, 17 Feb 2017 03:34:46 -0800 (PST) X-Received: by 10.107.19.8 with SMTP id b8mr6011382ioj.16.1487331286142; Fri, 17 Feb 2017 03:34:46 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d11si10067850ioe.165.2017.02.17.03.34.45; Fri, 17 Feb 2017 03:34:46 -0800 (PST) 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 sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8822462D9B; Fri, 17 Feb 2017 11:34:45 +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=-2.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, 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 9934060EA1; Fri, 17 Feb 2017 11:34:40 +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 2575660EA4; Fri, 17 Feb 2017 11:34:38 +0000 (UTC) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40115.outbound.protection.outlook.com [40.107.4.115]) by lists.linaro.org (Postfix) with ESMTPS id B4915607F7 for ; Fri, 17 Feb 2017 11:34:36 +0000 (UTC) Received: from AM2PR07CA0030.eurprd07.prod.outlook.com (10.163.24.168) by AM5PR0701MB2913.eurprd07.prod.outlook.com (10.168.156.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.10; Fri, 17 Feb 2017 11:34:35 +0000 Received: from VE1EUR03FT056.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::207) by AM2PR07CA0030.outlook.office365.com (2a01:111:e400:8448::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.10 via Frontend Transport; Fri, 17 Feb 2017 11:34:35 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.38 as permitted sender) Received: from hybrid2.ext.net.nokia.com (131.228.2.38) by VE1EUR03FT056.mail.protection.outlook.com (10.152.19.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.904.16 via Frontend Transport; Fri, 17 Feb 2017 11:34:35 +0000 Received: from fihe3nok1346.nsn-intra.net (10.158.36.134) by fihe3nok1349.nsn-intra.net (10.158.36.137) with Microsoft SMTP Server (TLS) id 15.1.466.34; Fri, 17 Feb 2017 13:34:33 +0200 Received: from mailrelay.int.nokia.com (10.130.128.30) by fihe3nok1346.nsn-intra.net (10.158.36.134) with Microsoft SMTP Server (TLS) id 15.1.466.34 via Frontend Transport; Fri, 17 Feb 2017 13:34:33 +0200 Received: from fihe3nok0735.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v1HBYE1T006100 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 17 Feb 2017 13:34:14 +0200 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v1HBYE9D006096 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Fri, 17 Feb 2017 13:34:14 +0200 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Fri, 17 Feb 2017 13:34:14 +0200 Message-ID: <1487331254-29664-1-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.38; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39410400002)(39840400002)(39450400003)(39850400002)(39860400002)(2980300002)(189002)(199003)(450100001)(22756006)(97736004)(47776003)(6916009)(2906002)(5660300001)(77096006)(5003940100001)(33646002)(2351001)(356003)(305945005)(189998001)(50226002)(8936002)(50986999)(48376002)(105596002)(8676002)(50466002)(81156014)(36756003)(92566002)(81166006)(68736007)(53936002)(38730400002)(626004)(86362001)(106466001)(110136004); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0701MB2913; H:hybrid2.ext.net.nokia.com; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; VE1EUR03FT056; 1:62y+w+HGvPO/cop3iHD0TOtdnYR4grb7dmyG1kn3AC17oCEc4fT4y+be+rMWXI+P6FHAHmdkvV061cz6xZVz5Km3hiP8ULkgFKq4yGZ64ukAsGcyY0wTR7pXnkTMfYgfruSfGGsqYDhKUUpoWPDlzwY46gDbq7Ft3sDxlAwGqq48N/AiIEq8vMZitbcmsCuCGyoOsGw0TkWeSMHwBzTOGZ8nY1AE2IOX0M5Lhp7XCXlCM8Xz3DMUL6LT67yNAJ2/eym5fLoTQLL1D07kqKFyPIf7F9v80IismUkiaXKhLiqNaYGPGikty6ozZfY3DvFJYtiTlCU09n9fz7OxovNnGl9WhEpnjJ4/vOibpMZcqwv4h0OM07MekX3jfYgLdC+JjlgaG/tkcOSdhHz8za6+MsFDGxWrUygfAhzj4IpsZ1L9Yt7SOuOM7qu7KIT1nqRAbOlz0iSFE0ep0D0q157wmg== X-MS-Office365-Filtering-Correlation-Id: 0986c0ae-169b-43e6-e14f-08d45728f2e0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM5PR0701MB2913; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0701MB2913; 3:a4ti6aodvqvSxlURdgzBQZ0xe7IKSFH1U8H2LoCsK1tmWVUaHhYusWKwhg7GCsV4r12yeomzyDBdzpu2jed1t2KlvqWfhgi0vv0COfqw4wO0LAopVEIznISy8wrnVvgaXG/NTmvDXyI7yPhhUtPRyBR88S0Hpdi8Afm4ONBBg7oWtBkxMJXBm2moB4RFfpTkLTVh8t5K1K0NzeJ6nzK53f1pUL8FvizvmVMIDxi2U4vkqFzguNO2xRo8vq4WtXxI8FllYv/SNYsXw0bDSslnKrezWu6EeyAt3aHnGW99qpdIRUaCAaJTmmZbW6HOp/YBss4mIxzxFV1fx8b4mJys6ebGp6s31xfOqnPkrmDW/8mdqzKfb15hW2kLl4afcC4M; 25:oM/HJLA7Eo2cmC5q2Y0iaEUqWrroxqW8YVatxzgL0HWkcsSvh1aIqaifSgaaeD7KZHlfNFBqxMaux7XSFRsznPtJptvnNDwK93riPE/uRqZu0fakyhc8pnTG3LMV20Wwlam7UoqGbOXB7aVeVu31KeQf6QA8qCshKTKhGFi4y5Z/iRHVGIxwA3N4I4SK7z6bGWSqtP2ECL467U4OvfpTXVUTVbTaUDYTYfLQoc6tvuoCetotkoE3CaxcLrBQeKerDsPAlzzhpFi41agTWStEskF8N7cYJaMvNfl7+Bew17fAHfNW4PJ2hri/h5+zls2/2vXdTGkcxOc9ul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Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13016025)(13018025)(5005006)(8121501046)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123562025)(20161123560025)(20161123558025)(20161123555025)(6072148); SRVR:AM5PR0701MB2913; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0701MB2913; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0701MB2913; 4:VC0sxwSffj2AcnjJ2053jto+HAPwqhu/kYgSHv5fLf8I1JAgbzm2Hsv7BfnP5f3F/LuIo0oKYeUoyEPS/fBVFZ0lcn/q3ejsmpw5aGGPyTu3bPVETkvCwOgfQ7d5Ske5MkfMKQLzhKYRxPHSq4YiuSs1Gez/SUU+IwT9vlPLQIZ4bR9NFy6zqDJ5wXY2q4nmi0QvR0+NUrXvjv00h2Ct36C7Hk2UgK6WxEvP0Qy+ziFRDxAjJKps83hcEgv7n+H7tV9Eao4wF6b7sjXF9xmKl32o8LDPpVi0WgcPR9FeHMNwvwls01VkzD8lr2rQuO2I9boWCLKGh/xKhmOcIBSV3Gl27kcob253R2R9iNZmjEOl4UmLKK1F9QNzbpi9WQOQx1156nF4WTWeqJJUTCcFM7byzYCZIxuL4Wugw/bsUkXLciYA2v2CIw8jXNbllLykXT8ueROQKxwK1j9FpFhir0mUlVQJBix2ff2ESVAV7vBOY62ArDIjmBZjNyK3OWNMxC+YYvlCRHzYLf6wvCCRDn+NU8N91okOGhAhDrxNdmtYu/1N9aC0SsUmSnXZ2g/72gY/Zyf3GpERfaJMdkO/wg5OPumybUiOPHYRXOdVMpi2nX535xbzu/sZ4fVCbbqN437jmHhdV6blChcixpJ6ZoW4OT9DpAShCvJYVE6h4vdxmnV/mm72L2GgfoQuANPRWUq8e7GI55G1TMhcldkU7g== X-Forefront-PRVS: 02213C82F8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5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w= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0701MB2913; 6:/LuyExHvApAjIFHlS52SHaht38B1RK0jtvAofOglqIpaa2VEEeKpoDa6z5V5E1p7krgNfciz76eIQohrdfrXodFM3j2kgUbj9TxGlsbNQkmcZ0MUBMA/LfxTH+V9MppPW7wUyPt0eI05YigcJOyrg6hP8pUiTbNeomJJWuz7r/N81pYfQwe1K0eB4+wW1RAG8pll8Y0U8DUdJSFx+KhPCGEuI4xS9CVU5YNoyhR5jXdtiiqtuASIw4hT28lpRsagkCioJcZP6sSu0vinS1MBkCkcI2HG5RbjpsjpSm1nqB+RggtclL2O1Uv1v5b4L7UDI3jRLvMcjmmjZn52gnAgK96Nx7nPjT5XKbrxfw7DqxlYHFneVhTu1E3Hn9gvu0A1LhsJHUuLd9NUx1TGt4g2S4+IsAKnPfmRq0i4ZMrxcpY=; 5:z5qQkVZUCefy0lLmEYyG0dzErO28/SI5PaNST37qwku9DgoDu2lGu7Z79OBBw0ukRJCW0Lww3VK3uZNG/FNlSuqf1YXXvZi4LJrvywYejUAk40jGFtyf7iH3mmbNNar3E66Ze4Huvmq4dF4/GrKtxQ==; 24:i7p2NsjGpcM3X7BUqB+FexmX7iWTM9yEQkIOUeP73NO49+kwl4jjOq+pPmCF6GJiUf6KjXiUNM0KqkrTt/pPKvidK4z8a65+8rYn/oDHmZc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0701MB2913; 7:om65ohTh9zw91Fs6felc52qYtBORv+HBxakyq0Rj18eOtsj4VGwWDQUKJOhTLNCpCeuK7jTMWj/lYYS0YGBhMBU5ZdO5BUSIfpUhlyluJ8fAN2iN+p8dMZOB9IA71ScX6JIFItXaxfjqxCXQ7ykGViBNMFTaArgDy8xFPgvGft85L/s7xrBbbX3dn98ugKylkomeXtExs6Aa0mWSyXUMbaMVQzN80Qo6y+BKRlbaRBXmTwqusPmkKWj0HlCCU+s3rEcPlhYJjRxWOEqymvFI76lS/F4RYGI24Wd8ZJrIXcVGh0A/qmJjpomTLOPaCO7006CX5WdnBoFFFz6Iw4nNgQ== X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Feb 2017 11:34:35.0277 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.38]; Helo=[hybrid2.ext.net.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0701MB2913 Subject: [lng-odp] [API-NEXT PATCH] linux-gen: ipsec: add stubs for functions X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Added stubs for functions so that applications can be built already. A proper implementation follows later on. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_ipsec.c | 111 +++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) -- 2.8.1 diff --git a/platform/linux-generic/odp_ipsec.c b/platform/linux-generic/odp_ipsec.c index ce7fded..588d8d8 100644 --- a/platform/linux-generic/odp_ipsec.c +++ b/platform/linux-generic/odp_ipsec.c @@ -14,3 +14,114 @@ int odp_ipsec_capability(odp_ipsec_capability_t *capa) return 0; } + +int odp_ipsec_cipher_capability(odp_cipher_alg_t cipher, + odp_crypto_cipher_capability_t capa[], int num) +{ + (void)cipher; + (void)capa; + (void)num; + + return -1; +} + +int odp_ipsec_auth_capability(odp_auth_alg_t auth, + odp_crypto_auth_capability_t capa[], int num) +{ + (void)auth; + (void)capa; + (void)num; + + return -1; +} + +void odp_ipsec_config_init(odp_ipsec_config_t *config) +{ + memset(config, 0, sizeof(odp_ipsec_config_t)); +} + +int odp_ipsec_config(const odp_ipsec_config_t *config) +{ + (void)config; + + return -1; +} + +void odp_ipsec_sa_param_init(odp_ipsec_sa_param_t *param) +{ + memset(param, 0, sizeof(odp_ipsec_sa_param_t)); +} + +odp_ipsec_sa_t odp_ipsec_sa_create(odp_ipsec_sa_param_t *param) +{ + (void)param; + + return ODP_IPSEC_SA_INVALID; +} + +int odp_ipsec_sa_destroy(odp_ipsec_sa_t sa) +{ + (void)sa; + + return -1; +} + +int odp_ipsec_in(const odp_ipsec_op_param_t *input, + odp_ipsec_op_result_t *output) +{ + (void)input; + (void)output; + + return -1; +} + +int odp_ipsec_out(const odp_ipsec_op_param_t *input, + odp_ipsec_op_result_t *output) +{ + (void)input; + (void)output; + + return -1; +} + +int odp_ipsec_in_enq(const odp_ipsec_op_param_t *input) +{ + (void)input; + + return -1; +} + +int odp_ipsec_out_enq(const odp_ipsec_op_param_t *input) +{ + (void)input; + + return -1; +} + +int odp_ipsec_result(odp_ipsec_op_result_t *result, odp_event_t event) +{ + (void)result; + (void)event; + + return -1; +} + +int odp_ipsec_mtu_update(odp_ipsec_sa_t sa, uint32_t mtu) +{ + (void)sa; + (void)mtu; + + return -1; +} + +void *odp_ipsec_sa_context(odp_ipsec_sa_t sa) +{ + (void)sa; + + return NULL; +} + +uint64_t odp_ipsec_sa_to_u64(odp_ipsec_sa_t sa) +{ + return _odp_pri(sa); +}