From patchwork Wed May 10 21:00:04 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: 99021 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp422323qge; Wed, 10 May 2017 14:01:22 -0700 (PDT) X-Received: by 10.55.140.134 with SMTP id o128mr2121958qkd.79.1494450082530; Wed, 10 May 2017 14:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494450082; cv=none; d=google.com; s=arc-20160816; b=V9JSxOWsONunOiXyjK3Eh1zoWFVEwtTdBlx7djRBRr8hmt308FjHNnQ6MVZ1aDK5pP 5mO3slWIOnhRbKWDf0J4eJhOJqVKAiCH9/wZl2GB5M/ryZdXIeF0Nn74CuatUrrnhIc5 3lEuy7bUOucfR+AyiVHy1ZYgdcex/qEAI2h6rof4ymqeaSC1RP3SIqrIlXkM3WDrovUd rw2xqTiYtptMInSixbHsMyB9SGmcCdG/nNYQa9f3jyqZqCVWWUTeKLB8pKQWnd2sy17D IgBz+AtLd+da05eO7zXqVc5yIAy6a/br8O3nF23j+mKNKBNMX0JrX9OhC0khSWDg9zfD rEOw== 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=gga+0oMefHXS/SPtJRvaIUDaCTWxbxBxplemN5I8/pI=; b=hfS2qjgAXxk0Qyy24WPYU19JxhmDzHdzmu12BP4VtBp4p7uzxjdj1qLW/DYfx46kHI 9dQZR3cZxfENrCPyHYsyK5G8JBkPLYNrlV439SNIo7GcTV6Weq86O/dNm0E8yxSWptdR I/KFHTtZm7QccVVdklPHh835FXO3LBGR1DJs6Cy6ptKTFY0YjcaYu7OaTlqOIVyAVHE4 Uh9V8ZzTkMmtBx3ZeQAfHEgnIC3z0XpCxYIAUfvw9wWTaUtcPuToUt/2nLJz8YvjNFoN TST1AfGRxNVHdj0kRtyPenGGTO8VJ4s2n1M6zaXNdWB+x3me6+cecs2oL9eCvxM5loRD lSsw== ARC-Authentication-Results: i=1; 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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r1si106029qkd.110.2017.05.10.14.01.22; Wed, 10 May 2017 14:01:22 -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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 270EC60692; Wed, 10 May 2017 21:01:22 +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,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 4EB7C606A4; Wed, 10 May 2017 21:00:57 +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 060FE6068A; Wed, 10 May 2017 21:00:52 +0000 (UTC) Received: from forward4h.cmail.yandex.net (forward4h.cmail.yandex.net [87.250.230.101]) by lists.linaro.org (Postfix) with ESMTPS id D55DC6067B for ; Wed, 10 May 2017 21:00:50 +0000 (UTC) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b6:8]) by forward4h.cmail.yandex.net (Yandex) with ESMTP id 37AA320987 for ; Thu, 11 May 2017 00:00:49 +0300 (MSK) Received: from smtp3p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3p.mail.yandex.net (Yandex) with ESMTP id 138A9132005C for ; Thu, 11 May 2017 00:00:48 +0300 (MSK) Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id thuiNXMeCB-0lrefdQt; Thu, 11 May 2017 00:00:47 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 11 May 2017 00:00:04 +0300 Message-Id: <1494450005-17547-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1494450005-17547-1-git-send-email-odpbot@yandex.ru> References: <1494450005-17547-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 26 Subject: [lng-odp] [PATCH API-NEXT v1 1/2] api: ipsec: add AH capability 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 RFC4301 marks AH support as MAY instead of MUST. Some platforms might skip implementing AH. Thus we should provide capability to allow applications to check if AH is actually implemented or not. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 26 (lumag:ipsec-ah-cap) ** https://github.com/Linaro/odp/pull/26 ** Patch: https://github.com/Linaro/odp/pull/26.patch ** Base sha: 3ea9c1dac34e0fb4785b0d643056c731daa55e85 ** Merge commit sha: 6eb5ba103d81883b2b55945c58214b903bfac64d **/ 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 e83494d..150e691 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -244,6 +244,9 @@ typedef struct odp_ipsec_capability_t { /** Inline IPSEC operation mode (ODP_IPSEC_OP_MODE_INLINE) support */ odp_support_t op_mode_inline; + /** IP Authenticated Header (ODP_IPSEC_AH) support */ + odp_support_t proto_ah; + /** * Support of pipelined classification (ODP_IPSEC_PIPELINE_CLS) of * resulting inbound packets From patchwork Wed May 10 21: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: 99022 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp422505qge; Wed, 10 May 2017 14:01:45 -0700 (PDT) X-Received: by 10.55.71.139 with SMTP id u133mr7233598qka.317.1494450105680; Wed, 10 May 2017 14:01:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494450105; cv=none; d=google.com; s=arc-20160816; b=rWUkKn/hwGzPbAOF4oNjW3S8vDR4NfTOf1XaXvbBt4ljgH8I3NzwLiGI2bTe4Kle7y sCNAkH/bioFx7O9yes12sTLMDH/U3DLUTk8jzteFRxi321fpwUCsNOewrnicSwGflCq0 W5OGqCaZmbR9CCmTFDPOfdQjFNwbBSJr593ee7t15ZIuF4GPTQTZzXmEVWfJreMJyuS2 g79LsR1TWyG2IAEqQJB7r0dZNUBODaRQAs/lv03cKr0XugJ57w0oN58ltm4m/G/BBGOR nPAabmnI9LIkA5DIVDSV9tlvfEpUkeRh1MCx2wA5S49ADT8Gt2sEj//EHywG3iY1/yJN oalQ== 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=LhPF4kv7jUW5h4nYu2oq62iBwkYavhP+aLfhzq3ETgI=; b=cLMwYoWQZCig8PqClF6MUQAlYul+FTIIHJTa7r8sZp6NwWapMJypbnGjrifWA+Mihv KtajHCb41Y9zMTnnndoXPj8JJn6dR08hSp30BVxGjhHprqk5PP2CYP2VZepNw18Bhs2E hmT4iVzKgEHcVofxEcnUXGjA1UGEo5qrK6EGoVwB2SYyYxBQuT9QX24/vfJagT8iBfUX 66NJ88R+bfCFBvWMU/h5NDgKiBo1jYFwPEe/sHAkFHetY4guamZKa4G0ZOnJPjCklm/j rgDZlU1cJ1qJ4nQD+QlqNzutKbcuPQLs176ezU1ExV+67g3WXf7HeUQPBB1UBYzFwy/H VlXg== ARC-Authentication-Results: i=1; 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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id n74si87058qke.273.2017.05.10.14.01.45; Wed, 10 May 2017 14:01:45 -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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 54E6260737; Wed, 10 May 2017 21:01: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.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,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 207706068A; Wed, 10 May 2017 21:01:04 +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 3E2746094A; Wed, 10 May 2017 21:00:59 +0000 (UTC) Received: from forward3p.cmail.yandex.net (forward3p.cmail.yandex.net [77.88.31.18]) by lists.linaro.org (Postfix) with ESMTPS id 6C9C060521 for ; Wed, 10 May 2017 21:00:52 +0000 (UTC) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [77.88.29.86]) by forward3p.cmail.yandex.net (Yandex) with ESMTP id 5696220788 for ; Thu, 11 May 2017 00:00:50 +0300 (MSK) Received: from smtp3p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3p.mail.yandex.net (Yandex) with ESMTP id 12E56132004E for ; Thu, 11 May 2017 00:00:49 +0300 (MSK) Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id thuiNXMeCB-0nr4gOuo; Thu, 11 May 2017 00:00:49 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 11 May 2017 00:00:05 +0300 Message-Id: <1494450005-17547-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1494450005-17547-1-git-send-email-odpbot@yandex.ru> References: <1494450005-17547-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 26 Subject: [lng-odp] [PATCH API-NEXT v1 2/2] api: ipsec: split INLINE capability into in and out pair 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 Unlike SYNC/ASYNC operation modes, it well might be that the implementation provides only INLINE support only for inbound or outbound packets. Let's split the capability into two new caps. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 26 (lumag:ipsec-ah-cap) ** https://github.com/Linaro/odp/pull/26 ** Patch: https://github.com/Linaro/odp/pull/26.patch ** Base sha: 3ea9c1dac34e0fb4785b0d643056c731daa55e85 ** Merge commit sha: 6eb5ba103d81883b2b55945c58214b903bfac64d **/ include/odp/api/spec/ipsec.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 150e691..daef2f2 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -241,8 +241,17 @@ typedef struct odp_ipsec_capability_t { */ odp_support_t op_mode_async; - /** Inline IPSEC operation mode (ODP_IPSEC_OP_MODE_INLINE) support */ - odp_support_t op_mode_inline; + /** + * Inline inbound IPSEC operation mode (ODP_IPSEC_OP_MODE_INLINE) + * support + */ + odp_support_t op_mode_inline_in; + + /** + * Inline outgoing IPSEC operation mode (ODP_IPSEC_OP_MODE_INLINE) + * support + */ + odp_support_t op_mode_inline_out; /** IP Authenticated Header (ODP_IPSEC_AH) support */ odp_support_t proto_ah;