From patchwork Wed Jan 31 15:00:16 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: 126362 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp813490ljc; Wed, 31 Jan 2018 07:05:59 -0800 (PST) X-Google-Smtp-Source: AH8x2249n3vWdQe3yFT+H8g2umyRioJogTlNnYHcI7z7u8sYC0M5nKR+e374xWxm3sjSZmp5iKVB X-Received: by 10.37.134.209 with SMTP id y17mr568266ybm.47.1517411159614; Wed, 31 Jan 2018 07:05:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517411159; cv=none; d=google.com; s=arc-20160816; b=qDMqcLzP78eqT3/Fr2go3gOPQRtKJHvb3mepPlB7sPPHAdKtY9hY9hFtAI0u/tSj7Q bN/4JbFQAtwlP7nMU79ye7k0H2tomw4ZXjo1CqT1lV7AXJ/sb9a4TI/n1EgOx+cm61Po FfvR5YInkMGOF/8qkU8U3AiQZzabIek+F6uCDSRPmAWy9wsoUNefiuIWdGfNnK8xb6AC qH44P1cGuqc0MtwH5A6kQaeppq4AnoTb8kRc8UbgTk4L1Mtfvy6TXE1Tamxqe3Z8y51/ lDD84817lFb2ahbm103QASdgtDpP3X6EVtKo3pIogCPEJOLSLXWVMxA0XVODcyEyWJ3S y8gA== 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=5XY2EvCru9q70SaqoF0wPl8lV5eDCAJDs3YFrp3Fo4M=; b=1G0smIoUJK8xnFDpHgFhZ35akoXNrmtNquHLJXhtNqkfbFoTc04MXBgtGHd3a54DZC ZDqvYAxBkGUWqSXbpLdJ8CTCUED+CXkSXWASlSXBQmm4poNGXHTtpCAW2ulZKaf6atuX F1GvzHOBBPoaF/rYHRZKkW5FOo1SdK5rgAMnljJg51J99VogsUgqmG7B9kLAptBB923O wW6mp5hMvzrvs8l7BKECF+HJuDiLhdvi0+37uh/u8S0VB4MTyswVRgXrJlMek4vsNrgS ejeTrVyTWbT2co1hFnFtWmWzue9lIQeV45omELKz111rzfxqtMewOOyTRZVmBONohqHl mj6g== 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 g65si2307754qkb.52.2018.01.31.07.05.59; Wed, 31 Jan 2018 07:05:59 -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 2D76261735; Wed, 31 Jan 2018 15:05:59 +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 E23A76151C; Wed, 31 Jan 2018 15:01:01 +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 969BB6083D; Wed, 31 Jan 2018 15:00:36 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id D9F736081B for ; Wed, 31 Jan 2018 15:00:23 +0000 (UTC) Received: from mxback9g.mail.yandex.net (mxback9g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:170]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 7A96118475A for ; Wed, 31 Jan 2018 18:00:22 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback9g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id n64U4POxXe-0MEGMJEk; Wed, 31 Jan 2018 18:00:22 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id p8qYWNiSK1-0LhikCxo; Wed, 31 Jan 2018 18:00:21 +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: Wed, 31 Jan 2018 18:00:16 +0300 Message-Id: <1517410819-24732-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517410819-24732-1-git-send-email-odpbot@yandex.ru> References: <1517410819-24732-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 403 Subject: [lng-odp] [PATCH API-NEXT v5 4/7] 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: 5718327018debbb02aacb464493504c95fbe57a3 ** Merge commit sha: a8d85f63d9e1de7ba709e84b37a06e3482bdea1d **/ 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;