From patchwork Wed Jan 31 14:00:31 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: 126345 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp772933ljc; Wed, 31 Jan 2018 06:18:32 -0800 (PST) X-Google-Smtp-Source: AH8x224hWVdOUqbm4AXjZDrCR09qoXGsMHHXpwfrQH4iHRBphjH2ki1HVDTsLYekHB2TNggmZRtN X-Received: by 10.37.208.66 with SMTP id h63mr22121783ybg.35.1517408312291; Wed, 31 Jan 2018 06:18:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517408312; cv=none; d=google.com; s=arc-20160816; b=psEIxDWSPtyrrTnaaNVVYYOU1hDb092k8zm6M7FjpWn8jJt+DIaLSYWHctpXU1k6M7 d8iCXaAXo8dsoKjxqSeMrDxa2C1dM9D4RDWYqMR9LG/wLkpc57hJOsLsmSdAtWVAGQ8T IxHIhvnF+Wuhfn1IJZQ4vbad/Oil/KEZsqohnofpPCqPTbXDoTzcmvLbzH89NO9HZHXm CHSVHQuhWKE7AhX1Qz0Aqy9r4JcQsqxLcPho9GGy8EdsQuqtotjmsc/SlRl4erSYn2GJ 8s6trrKEBWsYKgXupWk0HohO4C6292FomeaQMCY+HlK6aSBJZlOI8xtVPkJItamXOLc2 mocw== 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=IHQl4kIxdRtdPYbXOStiifQcrmQIZEPrhxETbbmXflg=; b=CfQP5TrzP+xSMICDaxfNSetfE18zoG8zUsI9piwI+K1jdtjtVy8ZR1Qo4A7a0ZFD86 +rdTGkS5YWveCYn9ziGa6jgaGqHGydOOW07EL6LI79MZR2CXB2HKwFVt3LmOt/2h+LpH iX1BBJdtdGyc4Y8VPdMAVPTf0xE3cStbHZIUH+rWh5urIR61i1jphUkK6c8Nyz/Rgqrt 1kU5eIiC4zFyuX6gQ4yRye2Lu+BbpxBAqHKVJgTxisppf6EuUezxF0ilPInpW0zTWipC vUNzmTLrPCewe7WIKWaAUtBdZN+fKvzVw+3NHHJbd/49LDnjmJDlIO03kUs/or2tKzOB dyWg== 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 j2si596487qth.448.2018.01.31.06.18.31; Wed, 31 Jan 2018 06:18:32 -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 BA215617D7; Wed, 31 Jan 2018 14:18:31 +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 31900617EE; Wed, 31 Jan 2018 14:03:47 +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 6A3BF617EE; Wed, 31 Jan 2018 14:03:35 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by lists.linaro.org (Postfix) with ESMTPS id 02C636178E for ; Wed, 31 Jan 2018 14:00:39 +0000 (UTC) Received: from mxback7o.mail.yandex.net (mxback7o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::21]) by forward102j.mail.yandex.net (Yandex) with ESMTP id C79FF5601B36 for ; Wed, 31 Jan 2018 17:00:37 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback7o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 9WXNr0JhvL-0bfSYSSn; Wed, 31 Jan 2018 17:00:37 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Tps9JIjLUO-0bqO8I2t; Wed, 31 Jan 2018 17:00:37 +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 17:00:31 +0300 Message-Id: <1517407234-19273-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517407234-19273-1-git-send-email-odpbot@yandex.ru> References: <1517407234-19273-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 403 Subject: [lng-odp] [PATCH API-NEXT v4 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: 5fe995377a907528cc4b1ce80386e5238f99e8de **/ 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;