From patchwork Tue Nov 28 14:00:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 119865 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1746617qgn; Tue, 28 Nov 2017 06:03:05 -0800 (PST) X-Google-Smtp-Source: AGs4zMageX+nBdASlzIXboNtmAH0NPKuyuqGPvzPRcGVSP6RVHpUBNS2LJT767n4wEO+APdPAkF4 X-Received: by 10.37.96.65 with SMTP id u62mr24801900ybb.516.1511877784922; Tue, 28 Nov 2017 06:03:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511877784; cv=none; d=google.com; s=arc-20160816; b=gl+0K/Bnovvkl5vxq1XREqSl327d+aVdSWb/UoDjxnynWqCZEKIWj1p3fjSYVKKoxt oY8aNWzYGje3YUTh1C+7CgY4Hvg4rnvUjpKSQoJB06KigcIhi/f/zWQCOFAfxT7OXsTk 7xg128ajSTTh3GqlcDDbGnOODvyJCojfyun7kGLvL9MBb3iEe5wS+c7CcxYfFIDy2IeW RU7BnDJCdu3FMW+7AV35wEEqd665Fvdk7v6UGHkHzM4J5gVcabmhjFmO3kcZ6+jKY7B6 C8n72pojgGFMwLn7L36i93HyV88clMaGtiR7liEin62fFAsfjXjfBe/ZQol2wH1akp60 rBTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=hXZZotsTqu58lUy4URn15lR5e83z/dH3eyc8JhkBggg=; b=r5/Gzp6R+1fVS4lBL1uLQj2ztbiLWI9LmR6rzIcgY+mzj1omvGK/wUTowiZQCYJarj igC5o4k1sUl0z+watdTGtkpvuQrNz3SQXY2BJ+6+euPFOcazUSHQPqdrmt5/ktlqmqjN O6akWU7PLNuLcoUGxhkOwfko59BaYNFmDtfjimpGZSAVhvSFopB3lqUvGk/xhHw/V7Bg p+WuG8A1Td/u6iWXV+18TdXUVWQRYidTcmyP5OSlhmbIOsEbasMsxUNftld6glB+DMOo fM2RzwNPccWyzb3l1twKXxuTmVRip3G05eibxeQtRRmsKhTbB1mJ5wamTeWuO34mZQGU ljtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id b5si2162257ybk.203.2017.11.28.06.03.04; Tue, 28 Nov 2017 06:03:04 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 49F826098B; Tue, 28 Nov 2017 14:03:04 +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.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL 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 3B15560907; Tue, 28 Nov 2017 14:00:43 +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 48658608DD; Tue, 28 Nov 2017 14:00:22 +0000 (UTC) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [77.88.28.102]) by lists.linaro.org (Postfix) with ESMTPS id 4FCE3608CC for ; Tue, 28 Nov 2017 14:00:11 +0000 (UTC) Received: from mxback4g.mail.yandex.net (mxback4g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:165]) by forward102p.mail.yandex.net (Yandex) with ESMTP id A98F64306040 for ; Tue, 28 Nov 2017 17:00:09 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback4g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 32yIOEjg5D-09n4oK0k; Tue, 28 Nov 2017 17:00:09 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id R6uPpMU1hR-08Qa1lel; Tue, 28 Nov 2017 17:00:08 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 28 Nov 2017 17:00:05 +0300 Message-Id: <1511877607-32699-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511877607-32699-1-git-send-email-odpbot@yandex.ru> References: <1511877607-32699-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 311 Subject: [lng-odp] [PATCH API-NEXT v1 1/3] api: ipsec: add capability for ESN support 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" From: Dmitry Eremin-Solenikov ESN support is marked as SHOULD by RFC 4302/4303, so add capability for ESN support. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 311 (lumag:ipsec-caps) ** https://github.com/Linaro/odp/pull/311 ** Patch: https://github.com/Linaro/odp/pull/311.patch ** Base sha: 4cb02e1caccb9179575e95448fd46979e17d0905 ** Merge commit sha: aa57ba9cce8dd6a7ae0d02117c362aa07d0985a4 **/ include/odp/api/spec/ipsec.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 4a33af8ea..c1307194e 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -260,6 +260,9 @@ typedef struct odp_ipsec_capability_t { /** IP Authenticated Header (ODP_IPSEC_AH) support */ odp_support_t proto_ah; + /** Extended Sequence Numbers support */ + odp_support_t esn; + /** * Support of pipelined classification (ODP_IPSEC_PIPELINE_CLS) of * resulting inbound packets From patchwork Tue Nov 28 14:00:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 119864 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1744809qgn; Tue, 28 Nov 2017 06:01:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMbF6a3YU9zthl2DApQ8zhT4ktWO04fDC60aVLx7i8bJ42f93sW6ctSlILTdsHW2k/VXaQYr X-Received: by 10.107.33.207 with SMTP id h198mr42656974ioh.167.1511877714344; Tue, 28 Nov 2017 06:01:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511877714; cv=none; d=google.com; s=arc-20160816; b=l89FGPj/roJ+JEaK9Co/XDEiSHRDUPhymerRwkPYf23XChDYvjT5WacQNCE9Ge2lwd yJdECejNzRlbGnZ37rkcViGozA+HRr58EMh2OqckX3j4i8mdLnnFiVhWt9REAvzG9Snu 1d5M9GyoJxdEIGnKfY38QEtY5E9/fW9XNOmITAFrcaZmQcdy89mCTX7VVKefwa0UHNXZ KAK9IK1KexJ6moEDEVxjEXsk9vJd3t2Ry+u1epq4hzcNMGgl3Bnd/6fEs1U3h11gm2+R Ty7O0+7DuqEbr4roZrS1MSRzFf5BCV6ABemUkhwG9n8au+d5UhtrATfhL03/IDFqrb2A kEUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=KYbeqXKWRKXkWiTnOjOVP4vJbyEW2uDYKPzTtP9vkpM=; b=T1MXUUr6gQle+GxRCaFg6/kRAUN/HlAY0o8MCT76POWbf5AaUHmnpXfTaGBeEYV3RS PZjOn+XpCWmaCaCn/7Ppb0DLfwTOQYWcnGOv/jNul0ioRx9xa2nbOtdj8cLzQ+yqs9VD 7ucr1Xdm90pCh36EQHmNXDSPcSBU4ny3/w3KN7Ck25HOWg78XKE1svNe+X22hfA369WE +Qf/qMGhFz/Is58Z+fglKTNAR591TD7rDV9Qi47aTK18PMsr7d0hFFNCCzeTt9Jb/JAC X/QYt1ZMutHJs4bj9CTcFFoFamcCyXqX59JVxKK+J+ESySyzc2Qu3HNmCygzIlBSh+X7 vkLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id h68si23352628iod.109.2017.11.28.06.01.53; Tue, 28 Nov 2017 06:01:54 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id C3202608E8; Tue, 28 Nov 2017 14:01:53 +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.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL 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 41BFE608FF; Tue, 28 Nov 2017 14:00:36 +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 B2431608DE; Tue, 28 Nov 2017 14:00:21 +0000 (UTC) Received: from forward106j.mail.yandex.net (forward106j.mail.yandex.net [5.45.198.249]) by lists.linaro.org (Postfix) with ESMTPS id 8A744608D9 for ; Tue, 28 Nov 2017 14:00:12 +0000 (UTC) Received: from mxback10g.mail.yandex.net (mxback10g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:171]) by forward106j.mail.yandex.net (Yandex) with ESMTP id 3ECA718054D7 for ; Tue, 28 Nov 2017 17:00:10 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback10g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id AiKne50V0i-0AbaAAPE; Tue, 28 Nov 2017 17:00:10 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id R6uPpMU1hR-09QqlLiK; Tue, 28 Nov 2017 17:00:09 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 28 Nov 2017 17:00:06 +0300 Message-Id: <1511877607-32699-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511877607-32699-1-git-send-email-odpbot@yandex.ru> References: <1511877607-32699-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 311 Subject: [lng-odp] [PATCH API-NEXT v1 2/3] api: ipsec: add capabilities for fragmentation support 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" From: Dmitry Eremin-Solenikov It is expected that implementation can support any combination of fragmentatation (after, before, both or none). Add capabilities to report such support to application. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 311 (lumag:ipsec-caps) ** https://github.com/Linaro/odp/pull/311 ** Patch: https://github.com/Linaro/odp/pull/311.patch ** Base sha: 4cb02e1caccb9179575e95448fd46979e17d0905 ** Merge commit sha: aa57ba9cce8dd6a7ae0d02117c362aa07d0985a4 **/ include/odp/api/spec/ipsec.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index c1307194e..697278f90 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -263,6 +263,12 @@ typedef struct odp_ipsec_capability_t { /** Extended Sequence Numbers support */ odp_support_t esn; + /** Fragment after IPsec support */ + odp_support_t frag_after; + + /** Fragment before IPsec support */ + odp_support_t frag_before; + /** * Support of pipelined classification (ODP_IPSEC_PIPELINE_CLS) of * resulting inbound packets From patchwork Tue Nov 28 14:00:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 119866 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1750212qgn; Tue, 28 Nov 2017 06:05:23 -0800 (PST) X-Google-Smtp-Source: AGs4zMaK9OGdcRiK8xZfS5cIsFfHUMMWinRmhzPp2cGlMl5skpE3tTsbDaRjVy11emAVqOXltEaR X-Received: by 10.129.38.195 with SMTP id m186mr4472772ywm.323.1511877923004; Tue, 28 Nov 2017 06:05:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511877922; cv=none; d=google.com; s=arc-20160816; b=xRGyxsPgfMOo/EniVqKLt1hf2GUaGqL4ee5w1/CcfSmpYeEYjz33rZ37I9Azikvwxt XHbwtJTLXuXfMKlPOBHsDIVNqOXPIRNTt3zAqNvBAn6Fw7f04ML/8UeRSGU27WHu35hM jHPfbyGoOqhm1rkCYxIUA4faXIYMnKvoSHz+AgIMXVGEwwu3r8Lsr5Xo37P3pLkwBpWa kiKRv2k+HvLcDLAP9jv3ce5s5kit25lb3Qp2h/sq6rBFB4RYfntaNLUaBDeO+PpdjeRQ Yv8ohNjIl39JH8XqiM6trsJ8mT6B5oBK8Ml3/VDivJ/3x3q2ert3895InkbEredlNhJk +6Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=pI+QCWFtTAdQQOOaUV+Q5/QpRfIABVH8j3nP44f7Vo4=; b=YJ1iGUNFTD0xlyu65eh31Bs/ufXKYs2IFqQqyRPLv3crdz6B2vqmQrTABpKMq/izSO udzPzndDfbfLi1OL7fPpHGa600q1yvrV4VLU7Xx9Fwr/IJhMsCP87zmkQ5EEUTOZ7+WA tU/0cjtEUOwpl37EuUvuhObUBbplJB6Ia+B418x5YNma1sI2bSRbm8UQ9iOIRV5U4lX+ fp81DgWOHNh8fiCTFWVux+yC+3U7wkhBEF/us0oZebJas/YvehmhR4e3aAL8gg/VgJI0 tOEmH8rv0MA95pFH5o/ZhRzzX/wxaWExiu+AxsO6CNu/MRBam/vDgc50HJ7QB/PwV3ky RE7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id o15si6387662ywm.737.2017.11.28.06.05.21; Tue, 28 Nov 2017 06:05:22 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 8CB8860918; Tue, 28 Nov 2017 14:05:21 +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=-5.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 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 AC64060925; Tue, 28 Nov 2017 14:00:49 +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 E3372608E7; Tue, 28 Nov 2017 14:00:26 +0000 (UTC) Received: from forward101p.mail.yandex.net (forward101p.mail.yandex.net [77.88.28.101]) by lists.linaro.org (Postfix) with ESMTPS id 48035608CD for ; Tue, 28 Nov 2017 14:00:12 +0000 (UTC) Received: from mxback2g.mail.yandex.net (mxback2g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:163]) by forward101p.mail.yandex.net (Yandex) with ESMTP id C828D6A83104 for ; Tue, 28 Nov 2017 17:00:10 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback2g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id x3OImVVhi6-0AHubXoI; Tue, 28 Nov 2017 17:00:10 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id R6uPpMU1hR-0AQSjPrX; Tue, 28 Nov 2017 17:00:10 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 28 Nov 2017 17:00:07 +0300 Message-Id: <1511877607-32699-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511877607-32699-1-git-send-email-odpbot@yandex.ru> References: <1511877607-32699-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 311 Subject: [lng-odp] [PATCH API-NEXT v1 3/3] api, linux-gen: ipsec: constify in/out params 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" From: Dmitry Eremin-Solenikov Mark all input and out params as constants Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 311 (lumag:ipsec-caps) ** https://github.com/Linaro/odp/pull/311 ** Patch: https://github.com/Linaro/odp/pull/311.patch ** Base sha: 4cb02e1caccb9179575e95448fd46979e17d0905 ** Merge commit sha: aa57ba9cce8dd6a7ae0d02117c362aa07d0985a4 **/ include/odp/api/spec/ipsec.h | 6 +++--- platform/linux-generic/odp_ipsec.c | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 697278f90..daa5d92ce 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -1030,13 +1030,13 @@ typedef struct odp_ipsec_out_param_t { int num_opt; /** Pointer to an array of IPSEC SAs */ - odp_ipsec_sa_t *sa; + const odp_ipsec_sa_t *sa; /** Pointer to an array of outbound operation options * * May be NULL when num_opt is zero. */ - odp_ipsec_out_opt_t *opt; + const odp_ipsec_out_opt_t *opt; } odp_ipsec_out_param_t; @@ -1064,7 +1064,7 @@ typedef struct odp_ipsec_in_param_t { * * May be NULL when num_sa is zero. */ - odp_ipsec_sa_t *sa; + const odp_ipsec_sa_t *sa; } odp_ipsec_in_param_t; diff --git a/platform/linux-generic/odp_ipsec.c b/platform/linux-generic/odp_ipsec.c index b17e4cd7b..18ae8ece4 100644 --- a/platform/linux-generic/odp_ipsec.c +++ b/platform/linux-generic/odp_ipsec.c @@ -582,7 +582,7 @@ uint32_t ipsec_seq_no(ipsec_sa_t *ipsec_sa) static ipsec_sa_t *ipsec_out_single(odp_packet_t pkt, odp_ipsec_sa_t sa, odp_packet_t *pkt_out, - odp_ipsec_out_opt_t *opt ODP_UNUSED, + const odp_ipsec_out_opt_t *opt ODP_UNUSED, odp_ipsec_op_status_t *status) { ipsec_sa_t *ipsec_sa = NULL; @@ -998,7 +998,7 @@ int odp_ipsec_in(const odp_packet_t pkt_in[], int num_in, return in_pkt; } -static odp_ipsec_out_opt_t default_opt = { +static const odp_ipsec_out_opt_t default_opt = { .mode = ODP_IPSEC_FRAG_DISABLED, }; @@ -1022,7 +1022,7 @@ int odp_ipsec_out(const odp_packet_t pkt_in[], int num_in, odp_ipsec_sa_t sa; ipsec_sa_t *ipsec_sa; odp_ipsec_packet_result_t *result; - odp_ipsec_out_opt_t *opt; + const odp_ipsec_out_opt_t *opt; memset(&status, 0, sizeof(status)); @@ -1130,7 +1130,7 @@ int odp_ipsec_out_enq(const odp_packet_t pkt_in[], int num_in, odp_ipsec_sa_t sa; ipsec_sa_t *ipsec_sa; odp_ipsec_packet_result_t *result; - odp_ipsec_out_opt_t *opt; + const odp_ipsec_out_opt_t *opt; odp_queue_t queue; memset(&status, 0, sizeof(status)); @@ -1222,7 +1222,7 @@ int odp_ipsec_out_inline(const odp_packet_t pkt_in[], int num_in, odp_ipsec_sa_t sa; ipsec_sa_t *ipsec_sa; odp_ipsec_packet_result_t *result; - odp_ipsec_out_opt_t *opt; + const odp_ipsec_out_opt_t *opt; uint32_t hdr_len, offset; const void *ptr;