From patchwork Mon Jan 8 16:00:27 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: 123731 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2898636qgn; Mon, 8 Jan 2018 08:00:50 -0800 (PST) X-Google-Smtp-Source: ACJfBosSxumE03kNSBoH3mW44NSD/LRTS5gTeBXFw3C+qRc8hs6E1TD0nu4ahfQwq7+ki5Bydrs8 X-Received: by 10.55.217.132 with SMTP id q4mr14776371qkl.236.1515427250287; Mon, 08 Jan 2018 08:00:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515427250; cv=none; d=google.com; s=arc-20160816; b=L/GHp/PCvUJmAJiE615fmyLKwsQud0FSneRThueMtxyYSEqk9BS1rSE8nJ0X5eqVu7 tuyjGLEnY7jXGjBE+ig1F6YDUyN7/cPd5k+rnxASlpahZCuykdh24oo7Cl9nxVkLBBbj tslApE5ay8K00033IeKnHqbbw9KIPsw1LdHrgqn/CTYUvj+YfKHrz+pLNxKD7vxZ956A 2IsCuUK0PWu1phPs5Ht+EFOTvYwMzxP3WPAA+KaagjZyk7cQ2UJfauWwlyv8aCTJBY46 t0xm3pr7at+vwlA0jegkhHVNPtMv6AWoSdN+mTvQaX2DKDj/91Zmf5OhalgpOxd7MDc5 z+EA== 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=kKkYII1DAOGJhQPWHpl/lulfgOg+3mZuZ75Cq+j0XwY=; b=rfij7wKMTz8LBbesJQ4kOeizF4OKIgP/KJzwo1GR61EmIFvwU5yW+fI5Ah0F6lTOdr yI6DNB/QIQsJVIOZGsm/E2TUviImYpwCuJFvqFFffzXesblY3VXYfh3q0EDie75pGqa8 zJw4UZt48zzW8VEVNTEVwu/PRN3GMm2JH3CK8KLbdrqfPklk6QKS3GxQkKiDOTeCfi51 OyLrgqKoybHdtF+RFbZqCPek/IW9JJyIUYT/bPi3P1wek7+xT4NZSX1LE7LFl+8Vt2Qn ZnlohbXmuRa6VSRAsPAip9ZrMRXgEgDVtHZ3iF9Q9KJb3wSDSZlm4scY8ek5TOc0SyGE 2O6A== 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 m17si170814qkm.107.2018.01.08.08.00.44; Mon, 08 Jan 2018 08:00:50 -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 145AE6174E; Mon, 8 Jan 2018 16:00:44 +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, 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 5B66C616DA; Mon, 8 Jan 2018 16:00:38 +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 6D8DB616F8; Mon, 8 Jan 2018 16:00:33 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id 3D3CE616DA for ; Mon, 8 Jan 2018 16:00:32 +0000 (UTC) Received: from mxback4o.mail.yandex.net (mxback4o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1e]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 4975A2182516 for ; Mon, 8 Jan 2018 19:00:31 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback4o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id kRRgdMXFv7-0VEWakim; Mon, 08 Jan 2018 19:00:31 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id URiJgmKJyP-0UnaBsxX; Mon, 08 Jan 2018 19:00:30 +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: Mon, 8 Jan 2018 19:00:27 +0300 Message-Id: <1515427227-16892-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515427227-16892-1-git-send-email-odpbot@yandex.ru> References: <1515427227-16892-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 329 Subject: [lng-odp] [PATCH API-NEXT v4 2/2] api: ipsec: support TFC packets reception 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 Add error bit used to report TFC (NH=59) packets. Such events MUST be generated in SYNC and ASYNC modes. In INLINE mode implementation tells to the application if it delivers or drop such packets via tfc_dummy_packets_drop capability. 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: 6303c7d0e98fafe0f14c8c4dd9989b3b7633ebf4 ** Merge commit sha: 7a6721af0db3111e629ae21d032335b299218009 **/ 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 66595b30a..09e54c1cf 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -242,6 +242,11 @@ typedef struct odp_ipsec_capability_t { * packets */ odp_bool_t tfc_padding_truncate; + /** In INLINE mode drop TFC dummy packets (NH=59) instead of reporting + * them via @tfc_dummy_packet error bit. + */ + odp_bool_t tfc_dummy_packets_drop; + /** Maximum number of different destination CoSes in classification * pipelining. The same CoS may be used for many SAs. This is equal or * less than 'max_cos' capability in classifier API. @@ -902,6 +907,9 @@ typedef struct odp_ipsec_error_t { /** Hard lifetime expired: packets */ uint32_t hard_exp_packets : 1; + + /** TFC dummy packet (NextHeader = 59) */ + uint32_t tfc_dummy_packet : 1; }; /** All error bits