From patchwork Thu Jan 25 15:00:15 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: 125859 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1170051ljf; Thu, 25 Jan 2018 07:01:41 -0800 (PST) X-Google-Smtp-Source: AH8x225HOTAlob71TCUgeFMeM3MdnlIPJEKo3OBLT5Y2kO3tZAxolWKSp2cWhKHxNT3sS/WYDuaH X-Received: by 10.129.52.142 with SMTP id b136mr8522856ywa.135.1516892501596; Thu, 25 Jan 2018 07:01:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516892501; cv=none; d=google.com; s=arc-20160816; b=ZjpoeTC5oAkeM0eogkvYJJ+2cKiGIrpQWRGOvWTWngHf3TVHzIYXa87KGU/YZpn216 uSjVDvs+Y2y+a4uy13s8bVpzp2tTnxUKVVlaYNmNYE7Igh2d0SWj9UL+tGvJZiqYBETP 2c/nfacElaFVyTRmaIyTkoVwYO6Yd+AHDP+G/SNQCMGMiovlQnc71RfXO/KL93vEpSJu lGgZpOXrkSNZFsl+yaR+otANdPEhzmQqORqHBV6H87M7Imdx+4lz3yqtPBdGqxHMjg38 4zi46OCFClo05M/++UiDy3xOkeb0D8RWQKy4FiXzJlR37wNG5aj9Gw31HmSYelBrwdPj ODrQ== 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=aCvtDkUGTOa9jTN9f9Yi1aOeo1fBbHgcHCV6ixWXQOI=; b=kp03h/yiui6uvK7wcpj9oU8wu522FpIZ7lyJesHHDDt52PGBoHG1c94A2Se8LKCjl8 3ZWzlSXewHM60/Ec/tdjouvlB7RWKsXsnRby7WEYq02omXyGGn0PmsMUBZaK01HMACBW G9ENiZLVZAPRBGpOr6ZS65wj6cJFRnses+XUGMv8/1BRu6R71s/6MbvS8B8MKv1mW5op wRml+TpiVRp3zwV5mpbPpPD3VzkIf9fBmMFvFJR11qqDLALnsIWfd2KnWNaKjxHk8TJ5 HAK/ix+q7wIN/0dSTERg7fkWMb8Kx3NQX/bjcDIY1g815uKaTEjgwrK71a9gLnBo8ql+ 8jAw== 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 j140si3271849ybj.238.2018.01.25.07.01.41; Thu, 25 Jan 2018 07:01:41 -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 335436179C; Thu, 25 Jan 2018 15:01:41 +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_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 4730F616F4; Thu, 25 Jan 2018 15: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 810A0616F8; Thu, 25 Jan 2018 15:00:27 +0000 (UTC) Received: from forward101p.mail.yandex.net (forward101p.mail.yandex.net [77.88.28.101]) by lists.linaro.org (Postfix) with ESMTPS id 2FE186107F for ; Thu, 25 Jan 2018 15:00:23 +0000 (UTC) Received: from mxback3o.mail.yandex.net (mxback3o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1d]) by forward101p.mail.yandex.net (Yandex) with ESMTP id B64666A81B39 for ; Thu, 25 Jan 2018 18:00:21 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback3o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id oB7eNquC6e-0LgmK7ex; Thu, 25 Jan 2018 18:00:21 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id tNrAE6Xzdv-0KDW2DlN; Thu, 25 Jan 2018 18:00:20 +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: Thu, 25 Jan 2018 18:00:15 +0300 Message-Id: <1516892418-5660-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516892418-5660-1-git-send-email-odpbot@yandex.ru> References: <1516892418-5660-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 403 Subject: [lng-odp] [PATCH API-NEXT v3 3/6] api: ipsec: outbound operation option flags 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: Petri Savolainen Add flags to select which options application uses. Currently, there's no ambiguity, but as soon as there are multiple options implementation needs to know which options are used and which are ignored. Signed-off-by: Petri Savolainen --- /** Email created from pull request 403 (psavol:next-ipsec-tfc) ** https://github.com/Linaro/odp/pull/403 ** Patch: https://github.com/Linaro/odp/pull/403.patch ** Base sha: 44974a09b01c79adb9637a5dff38539598a76737 ** Merge commit sha: acecf073764f87bfadb64c598703458d344b39f4 **/ include/odp/api/spec/ipsec.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 1060a3ee2..08533d80d 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -983,6 +983,20 @@ typedef struct odp_ipsec_op_flag_t { * These may be used to override some SA level options */ typedef struct odp_ipsec_out_opt_t { + /** Union of all flag bits */ + union { + /** Option flags. Set flag for those options that are + * used, all other options are ignored. */ + struct { + /** Use fragmentation mode option */ + uint32_t frag_mode: 1; + + } flag; + + /** All flag bits */ + uint32_t all_flags; + }; + /** Fragmentation mode */ odp_ipsec_frag_mode_t frag_mode;