From patchwork Wed Jan 31 15:00:19 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: 126363 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp814392ljc; Wed, 31 Jan 2018 07:06:50 -0800 (PST) X-Google-Smtp-Source: AH8x226hJr4vB25ohzLvQ/JkB1fJN0tw8FJ23E4kbTVf1yvejIJIQCKVUID108vjOnwoegfsv/MP X-Received: by 10.55.76.133 with SMTP id z127mr4196000qka.318.1517411209872; Wed, 31 Jan 2018 07:06:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517411209; cv=none; d=google.com; s=arc-20160816; b=x91RNRxUMEFx7YYtL0RhDrCdbBn4lMRLvkYGPH5BpdQYxuWG+uO+KhStdBRreXRWV/ R2BXFCjKULH8EGA0ZM5z6horfF3TNWKCeoqES+356eQKt4OIE/VMq9Fxk/bUAGjBJMQY iQSQgk2ZuDnQf/H/g0hJJjPqivlYHghEM5W6JreNHHdGaLZ9D74Ps1qEy/fr1mYHVMfH xo1uhwD3ttmY29cKHxmSM+kYkLJ8UpnJ6VUxh5jht39rBw3cHHW/Okl5u5nF4kSk+rRE 2RFYg+dpS55IgdINxob9V6Jd9x77Wz4Vc78CNnLYVY6PDz8QuVCXTed3nBP0FO3X28Li 3fRQ== 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=2w0CzDkSpGQ0KSCFoXZJLSoefbsgajyk9KdRI1XX2c8=; b=i+AgsrA7M0ehl2v6BkmKRWAo/qC5okCMohwSYSvlwr+4f00kMubZVQkj36/PE9SeS2 hWJIVoAYN/qFO3d6rB5hfgPS29lc+kdP1cSTTyokzPPrgDQM2qQlz1ttoacIwq4S1DDX Ebrqa9z5WqkWsBNL1KZDVzfiTiZywXiGALi+ccjKt4EU7UKvdw01qJoE4wPqfBgQyIgO 4RolwnFJbpFLSLtT87lW+UT+qNAlzhdSamStSM1nYkUcSpmvWlknzKmHq/6Ts43PgOdT TLZG+wb9FGdDyAC67z0KQmGcHIY6IkzWonUinKBU9AAkHMvQ3zY7/05V82YyCczuVjKv zRiw== 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 j32si3352542qtb.277.2018.01.31.07.06.49; Wed, 31 Jan 2018 07:06:49 -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 7523160946; Wed, 31 Jan 2018 15:06:49 +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 612B061705; Wed, 31 Jan 2018 15:01:04 +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 2AAD66081B; Wed, 31 Jan 2018 15:00:37 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 6049960872 for ; Wed, 31 Jan 2018 15:00:26 +0000 (UTC) Received: from mxback2o.mail.yandex.net (mxback2o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1c]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 68AB651056E2 for ; Wed, 31 Jan 2018 18:00:24 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback2o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id GhNMlZAyV6-0OwWT6FH; Wed, 31 Jan 2018 18:00:24 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id p8qYWNiSK1-0NhKekSJ; Wed, 31 Jan 2018 18:00:23 +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:19 +0300 Message-Id: <1517410819-24732-8-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 7/7] api: ipsec: inbound inner packet checksum capability 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 inbound inner packet checksum check capability. When e.g. L4 checksum checking is not implemented in HW, it may be better to leave checking for application, as it would check only those packets that need the check. 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 665dc07bc..2d1c4d9ba 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -238,6 +238,11 @@ typedef struct odp_ipsec_capability_t { */ odp_support_t retain_header; + /** + * Inner packet checksum check offload support in inbound direction. + */ + odp_proto_chksums_t chksums_in; + /** 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.