From patchwork Tue Jan 23 15:00:21 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: 125534 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1810156ljf; Tue, 23 Jan 2018 07:06:11 -0800 (PST) X-Google-Smtp-Source: AH8x22717p16iwgDP7g0G3XwAFw6BwYPEmbyfDfro+hHRpf/SiPniUO4ZZN+cOuInjnqo4KgNjjS X-Received: by 10.55.186.134 with SMTP id k128mr4072797qkf.23.1516719970850; Tue, 23 Jan 2018 07:06:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516719970; cv=none; d=google.com; s=arc-20160816; b=c+aJ6TsbAO/Jf4IgWHNaKH032PYtKDL1vaw6/788Nx4lAovzuVlFSiHwxSBwEQNN2l B10vbznC1bgJNjblu+Tv5LGCkrLwxOLE12Li6QxGHQVgv+wnv+kdC68jWgt/Jq1qdGim t7LXzI3SDoal/g9AoQ/OvQdK1ONvvmVRR0f2TcrVbn2XgllALP6Zt9CSCB/ikTdjOR1I u30lLrYnruJ8I1r3OuerCs73KLb6g8luUvgqvjvZvFylFsPzX0AXsB0w2E8PWX9drwSF YQqKmdx94R5zqhkBNfPBMRR+aKbxy954AchHQM6RMwlBmX6q4TeTIAi9M9vt/Ywsifr5 qycw== 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=k16Sa6I3eLtBH2P/y+maBpPyFH1JEj07b5HRjFPf6JY=; b=026yEF1lAdv5uPcd9bA7n1la4g6W9rHT2S9Nnky2jpivUuWR8cFPpAjQe90ZzolXq+ 9toXrrc0zrjeBSHV+ERZPAarNHJ9y7P5CqqCdjcDev7SPgvfm6SSOuxYhwuTlucRZhJl OusmrMCb87PLSzcqMFC+UJKvnJ+QfQuWOPGWVvKmbQSssZEGjjfHquHJ9LBpn+dSAKZ/ Fc4FriY87DmIyGpElkxe1/NpE0nyEHL1HMrNFzb4RLv6oZqrU+gBfZ8kRR3k9INKZt4b qfRYxOpY0Jofuk7ayVB95E45ACNJb+6liXw8St102/7O+/m73zI3OEXaj8ZjgEjQh+fA c1iA== 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 q10si468272qtq.425.2018.01.23.07.06.10; Tue, 23 Jan 2018 07:06:10 -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 657C6617C9; Tue, 23 Jan 2018 15:06:10 +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 AA3E4617D3; Tue, 23 Jan 2018 15:02:35 +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 15486617B3; Tue, 23 Jan 2018 15:02:15 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id 8C575617C3 for ; Tue, 23 Jan 2018 15:00:28 +0000 (UTC) Received: from mxback11j.mail.yandex.net (mxback11j.mail.yandex.net [IPv6:2a02:6b8:0:1619::84]) by forward106o.mail.yandex.net (Yandex) with ESMTP id 06DCD782955 for ; Tue, 23 Jan 2018 18:00:27 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback11j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id yIwH06uIpl-0Qe4tLDI; Tue, 23 Jan 2018 18:00:26 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id IwkpSe7BuA-0QdOKoZP; Tue, 23 Jan 2018 18:00:26 +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, 23 Jan 2018 18:00:21 +0300 Message-Id: <1516719624-9914-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516719624-9914-1-git-send-email-odpbot@yandex.ru> References: <1516719624-9914-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 403 Subject: [lng-odp] [PATCH API-NEXT v2 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: 537da7cd2083945c4673ac0dd7b29beb6825bce7 **/ 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;