From patchwork Fri Dec 8 02: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: 121113 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp85179qgn; Thu, 7 Dec 2017 18:01:15 -0800 (PST) X-Google-Smtp-Source: AGs4zMbYmdiM0BbtL7eyiIuj3rp1BN6Rr4MsFoy3LM2hWJb9ODRfm7AHRgsEF1fV5cuwvD1iL8IJ X-Received: by 10.237.62.202 with SMTP id o10mr13885658qtf.241.1512698475266; Thu, 07 Dec 2017 18:01:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512698475; cv=none; d=google.com; s=arc-20160816; b=fVFptBWcsIVb1GMVOE4GMJAlN0RSGa3p0Xlg9V/ugAGWmhcU3isbNKU3u0grpEPP5X KHQrZKuvmPUk2PXVqXVcVNvzEyfHg68IdLQEMDsk3qy4Qfvnoh9YRJq0UIuIp0oHYT6R lfqtf9EuQuS487YSTvN/RHLP+MFtdxYbH3XifZaosqIKY0fPkzeFOXmMxts69f7z0Pmy x1k/a8Hghy8Kldpr4GLwp0C5FUK9/OvxUs3d8t7zfBndsynw0PmUIk/Qn9yW37PtAOWF 9knLelJKJ8nBdiksv8VbRfrNQcjYwmIK8GOnT5LtHu+9oe6wfc0lFSGQozITokkUGfUz z5/g== 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=FB46DEQIl6ne9bUIl7VllMEMX0dgtFj5zVL2kqRK1xU=; b=M7eFy4QRj4XUK0Jpi9jBXXzixfyqhpINMP+tSZX7Spbqhan/sgqTD6RlwWjHrPpeLE x++7qOOGygrUr5/pWPstvprX27EquxuTHr4eZD8Pp1htHaTjALb5yDYYFxjQZSZ52+Lz Yuwb2qkG9DNT71wICpxSXsHOny9mSHno8dsyiS68QGzBDr/QB50AJhpDO7xE3mGLltTw js3cWqd/abyPFknyYU6cLbWBhqH/ir5gkUy3ZjrFtL4tMSbaZeXfibnlzs/m/MSdOreF Iqi7JGTMgCJsUXpEzQ5Z9Pxt77npw3Trp9EJcjywcriXl2xi2oduGerhyWxDFK6OFAat 37HQ== 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 u124si4672614qkb.485.2017.12.07.18.01.15; Thu, 07 Dec 2017 18:01:15 -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 F12DC6098B; Fri, 8 Dec 2017 02:01:14 +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=-5.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED 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 EB7176098A; Fri, 8 Dec 2017 02:00:17 +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 5E3A360961; Fri, 8 Dec 2017 02:00:12 +0000 (UTC) Received: from forward101p.mail.yandex.net (forward101p.mail.yandex.net [77.88.28.101]) by lists.linaro.org (Postfix) with ESMTPS id 36AB760953 for ; Fri, 8 Dec 2017 02:00:11 +0000 (UTC) Received: from mxback6j.mail.yandex.net (mxback6j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10f]) by forward101p.mail.yandex.net (Yandex) with ESMTP id 122F86A80E88 for ; Fri, 8 Dec 2017 05:00:09 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback6j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id LrqIW0DLLm-08oaupVY; Fri, 08 Dec 2017 05:00:09 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id lnCfKe0vzd-08YeIOmm; Fri, 08 Dec 2017 05:00:08 +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: Fri, 8 Dec 2017 05:00:06 +0300 Message-Id: <1512698406-27565-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512698406-27565-1-git-send-email-odpbot@yandex.ru> References: <1512698406-27565-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 329 Subject: [lng-odp] [PATCH API-NEXT v1 2/2] api: ipsec: add event to document reception of dummy packet 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 IPsec allows one to use NH=59 packets to mangle traffic/packet statistics. Add an event to deliver information about such packet to application. Delivery of such events in SYNC mode is TBD. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 329 (lumag:ipsec-tfc) ** https://github.com/Linaro/odp/pull/329 ** Patch: https://github.com/Linaro/odp/pull/329.patch ** Base sha: 0980001e33b4190133d478a0aa2e718fd1e3c164 ** Merge commit sha: e21e3f5f12faf7775b8d0e993a95dd377130f4c7 **/ include/odp/api/spec/ipsec.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 86803cecf..7346feb4f 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -1148,6 +1148,14 @@ typedef enum odp_ipsec_status_id_t { */ ODP_IPSEC_STATUS_SA_DISABLE = 0, + /** Received dummy packet with NextHeader set to NoNextHeader + * + * Following status event (odp_ipsec_status_t) fields have valid + * content, other fields must be ignored: + * - sa: The SA that caused the warning + */ + ODP_IPSEC_STATUS_NONH, + /** Warning from inline IPSEC processing * * Following status event (odp_ipsec_status_t) fields have valid