From patchwork Tue Jan 16 18:00:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 124757 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp1098987lje; Tue, 16 Jan 2018 10:03:48 -0800 (PST) X-Google-Smtp-Source: ACJfBov7c9KHIYw5cnUzpv+AH/BZOMjP1IVohvENq3DLsqcGMGdGVOXaB7Pt1Y2DihKpOMwZx6Ph X-Received: by 10.37.206.1 with SMTP id x1mr7301753ybe.281.1516125828643; Tue, 16 Jan 2018 10:03:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516125828; cv=none; d=google.com; s=arc-20160816; b=b9UqH09XOdXVUblp5zymZpWkQkiC7qEnwy7ZiCIEIcSY/Vxk9CfPQ388x55WGLk5w/ CCLtHB/mCIAglbTSAfOjVEWzfNPmT7hLN8ERBdu0WfVgWbuzsBd2Bvc3y3Hm2CA/2wKX 31rmzqe9M8tR38RDqKNuWLpUTiyjZ2zBYzm9KSPJy3TLMl/nX9PN5kZYN1+OV7AHO4gx 8Xpym/F1LFXi/xduC9lzlnTIfqvxOiIZ8MIM0J8j5v/+yM6BxrDL0aO1SLJyw2s1t3IA UE/F2fSpwCBuamZa0JadqBqCcWETdtKIbzdBo4ZSdJJeS8fn0ahrdYP2MjCewXhyzYef mpsg== 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=qOnw9b2Qr51eQtX7pIPotAJAkcuha/WEL3+5bSp6n+0=; b=cm4zASsfqZ+9eEAzMgoM4LgWBklp7lmY7GJ+alTe3EgFZnNDrdTsyEQL8Q9wd4WeLe psmkXswoqPfPaTqgzWmN+1otC3S70pi3GaCez1VMVZgoLAfaVnlOBYAsbBsbnezxiW0u /7Hg+aclWUuX4tTuSUvPVbRnkjOmc/IS0qVU+uJO9PX6vnLh5TRt/CHc8MQjPKVQMK/m EEl6r0OtsJ1Lb79zEOT6yEX1zGg8zAbcCZI+z/khFqkcEBYTtyxhQPbsUvA7znNEhNeA NEgrpfH4wvTHwE4N+zqkL0vadPgC9xNTYNyeZJqlBa0OnFfQXYON97VzYjnRLP8i0Uyh yszQ== 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 u2si2854364qke.217.2018.01.16.10.03.48; Tue, 16 Jan 2018 10:03:48 -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 3511861796; Tue, 16 Jan 2018 18:03:48 +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 93806617C9; Tue, 16 Jan 2018 18:02:02 +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 1277761796; Tue, 16 Jan 2018 18:01:51 +0000 (UTC) Received: from forward106p.mail.yandex.net (forward106p.mail.yandex.net [77.88.28.109]) by lists.linaro.org (Postfix) with ESMTPS id 778B061796 for ; Tue, 16 Jan 2018 18:00:31 +0000 (UTC) Received: from mxback15g.mail.yandex.net (mxback15g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:94]) by forward106p.mail.yandex.net (Yandex) with ESMTP id D59C02D836CD for ; Tue, 16 Jan 2018 21:00:29 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback15g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id o1pQunovsC-0TSGDeZK; Tue, 16 Jan 2018 21:00:29 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ZVsbBwJW64-0T6OVGYF; Tue, 16 Jan 2018 21:00:29 +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, 16 Jan 2018 21:00:26 +0300 Message-Id: <1516125627-32748-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516125627-32748-1-git-send-email-odpbot@yandex.ru> References: <1516125627-32748-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 329 Subject: [lng-odp] [PATCH API-NEXT v8 2/3] api: ipsec: add tfc_padding_truncate 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 Some hardware truncates TFC padding from received packets. Application can use this capability to determine if it should use ESP_TFC_PADDING_NOT_SUPPORTED notification when negotiating SA. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 329 (lumag:ipsec-tfc) ** https://github.com/Linaro/odp/pull/329 ** Patch: https://github.com/Linaro/odp/pull/329.patch ** Base sha: 0c7741d067d9b96e14e420b53a256a1b93096e16 ** Merge commit sha: d31d322b1d7ec8d2b9fc3694df5dd0843b52de1c **/ 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 738dd65ae..29129a93d 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -232,6 +232,12 @@ typedef struct odp_ipsec_capability_t { */ odp_support_t pipeline_cls; + /** Implementation will automatically truncate TFC padding in received + * packets in ESP tunnel mode. Application can use this capability to + * determine necessity for ESP_TFC_PADDING_NOT_SUPPORTED notification. + */ + odp_support_t tfc_padding_truncate; + /** * Support of retaining outer headers (retain_outer) in inbound inline * processed packets