From patchwork Tue Nov 28 16: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: 119888 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1892153qgn; Tue, 28 Nov 2017 08:02:22 -0800 (PST) X-Google-Smtp-Source: AGs4zMaqFF3KoTg+n1yxjiqqyWrpQdZnyxquAsioY/FPOWqgX5D+5YnIXQJ/eAzHLWp7uApBoNEl X-Received: by 10.237.63.33 with SMTP id p30mr66273570qtf.321.1511884942394; Tue, 28 Nov 2017 08:02:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511884942; cv=none; d=google.com; s=arc-20160816; b=UWNLthYZiQjlFpnvbGaSfvm1+L57h0ppJ1YHnZGdQWeOSZVuR04bM7I7Vd9WP+OZDm IaKDd6h+dLuN0G2Kddsi3re95mdztVK0ztTgzaCBhxu7E+kugP3OC9x8cpx7irCV0So0 b9lbdsC7zuUnj3ZFC3HAA3ET14kX70A1IOGwu1QJRynX167wGSuhmjvQN2KDwGlPsEU3 6vobr0kZ71swB53DsPr2HcfVNj8ih+pHP9GSs2+h8YBWVJRl2cdSO6M1Iab3hujE+Jty qJEgzgYVww5pfv5MuJ070zRIqBtZdkqqiQdBoaa9qwAe6iWN61ZwUCiPpDOQEIQR5Hpc EoPg== 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=/9xK0UKAWd2dMfYNLGUXoSV4nkhvlSBU5VGvoICeGoE=; b=EhoQkoRoB3q/TZrLGgo+wfBFKjzvjKDNAApAf/wK1ovdpp4CKNI3FsEz7kxZ2xeE6y OOj0hYMd1npmx0F1sAgzPBJ+ahsO+V4n1qbfnmnN5dSMsllvZdey6JBg/lg/V+45CFyv w6FM8zxcKFJV+ovqj/ExGz9OEVb0m/GwyCO0icBM+oUWwnf6pSaZBzfUpuhain/QoTXP 6gdz093PX7IFf9Dseck1tb/bxV+0uEpofR2qHd8KibHooBbQ5tI8Sy3gPP1Wa4LmHBTU wj5pT9KNpJmBIDaYWAQwyF9UfF6rf/G02L3rIs/PEfA+gAnzLwa9MWKOxpOrPHeeGoe/ QrkA== 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 144si11231864qki.207.2017.11.28.08.02.21; Tue, 28 Nov 2017 08:02: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 A9D79608FD; Tue, 28 Nov 2017 16:02: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 9CF5D60902; Tue, 28 Nov 2017 16: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 22EBB608E0; Tue, 28 Nov 2017 16:00:21 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id 96BE0608D9 for ; Tue, 28 Nov 2017 16:00:10 +0000 (UTC) Received: from mxback10o.mail.yandex.net (mxback10o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::24]) by forward105o.mail.yandex.net (Yandex) with ESMTP id D05344445E9D for ; Tue, 28 Nov 2017 19:00:08 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback10o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id D4VPAiksfn-08QeqaIc; Tue, 28 Nov 2017 19:00:08 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id AgEzSO8coM-08eGlgOe; Tue, 28 Nov 2017 19: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 19:00:05 +0300 Message-Id: <1511884806-10328-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511884806-10328-1-git-send-email-odpbot@yandex.ru> References: <1511884806-10328-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 311 Subject: [lng-odp] [PATCH API-NEXT v2 1/2] 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: 63ff9ce47f9c9abab3f9e75acfffb4737cfca756 **/ 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 4a33af8ea..0be9664eb 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -260,6 +260,12 @@ typedef struct odp_ipsec_capability_t { /** IP Authenticated Header (ODP_IPSEC_AH) support */ odp_support_t proto_ah; + /** 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