From patchwork Thu Jan 18 14:00:12 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: 124962 Delivered-To: patch@linaro.org Received: by 10.46.64.27 with SMTP id n27csp138809lja; Thu, 18 Jan 2018 06:03:35 -0800 (PST) X-Google-Smtp-Source: ACJfBovQt4mnQ3rhlvWA8Q0/6aYtSXWdJHONXE5MespuRvbm1WQ0qYCM8AwaqodnHkIq/r1yLfIX X-Received: by 10.200.7.74 with SMTP id k10mr23513318qth.333.1516284215844; Thu, 18 Jan 2018 06:03:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516284215; cv=none; d=google.com; s=arc-20160816; b=oxADu1BpX+NZVn7+jmIQI5nBKKPtae22X4gWwN/LmIY41S1foiSFc1VrCJLsOPxBaY EgC35CK8JAwrlYxwjZhVfhk+ljLbpur4CuFVr9kvWKP8it6Rc8OyalyKoY+TqBy5P2oC 6miol9ltQEVVWUrN2lH0cVIMFb5FxQDfmw68Vveprv4SUFE+WxC5DNgAQq1fDcaKg7Dr EgYzo5AfVZ5e/bZ/MNAqnNzscZ45oWN/wkgVdPycexmjz6P7ZrsKiQVZeocsY+/w2OFd h9NUr8UeZjLaFVXPD4l9r5yjx5YR4hiAfEiGi3zVtx5/AK98LN3uPmnbOUCos/fMpp7x mn2A== 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=54gDb5obCG2i2YsYF7GlhAJazr07/0V5gyehIw70hBY=; b=RV7dI2RYI2BWTpkzl7lbiYEIBA+9ZMrhTZ6T2TQccus9Rg7mQ0bLncePvj1XpTGrk2 p70an0Kl8jkfhEEkW+TR9F9vjkXjzsnZn026anS4sJbhOmyHzuLqJe2hUT2z3tgf+OCG k99KJ7FgXedGwk3CzkhVdelysxsSKNPQXPp1UWW+HBU66Yq7SdJ4J2ks7/RvDCMQN8Ws JKLaYE/vNC9QLxnpD2o6eDKbA4Sf1RsAwNSjBuYckr7l0813ID3ZWt3tvUjZBdI9FKUU CtdVqeX7sIHYxxiCjTT3rRKnOlo+I5hwCua+MJ6hV8qwLyT+wQ6wFHlqiUVzGRClgD1i JiiA== 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 h12si7458490qtc.399.2018.01.18.06.03.35; Thu, 18 Jan 2018 06:03:35 -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 802E662820; Thu, 18 Jan 2018 14:03:35 +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 A077662787; Thu, 18 Jan 2018 14:01:55 +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 32B00627BA; Thu, 18 Jan 2018 14:01:45 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id 53D0A60975 for ; Thu, 18 Jan 2018 14:00:58 +0000 (UTC) Received: from mxback12g.mail.yandex.net (mxback12g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:91]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 0794B1343054 for ; Thu, 18 Jan 2018 17:00:57 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback12g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id jaIVmY5tMC-0uX8YpX1; Thu, 18 Jan 2018 17:00:56 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id dH7Jf5U1Ot-0mqGKcTE; Thu, 18 Jan 2018 17:00:48 +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: Thu, 18 Jan 2018 17:00:12 +0300 Message-Id: <1516284012-2640-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516284012-2640-1-git-send-email-odpbot@yandex.ru> References: <1516284012-2640-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 403 Subject: [lng-odp] [PATCH API-NEXT v1 4/4] 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: 0c7741d067d9b96e14e420b53a256a1b93096e16 ** Merge commit sha: 14f0b7020e142ed747602a2856214c93e06ff84e **/ 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 bb09dd854..8bafd007a 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.