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