From patchwork Thu Jan 25 15:00:18 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: 125861 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1171624ljf; Thu, 25 Jan 2018 07:03:27 -0800 (PST) X-Google-Smtp-Source: AH8x2259WMBoVcNNRWE8UMJOhFbH7ClGBYJiUszwY5kMi2KbVmQlDe2FKeWj/VnYmgf4KlKGgzZy X-Received: by 10.13.209.5 with SMTP id t5mr8402378ywd.277.1516892607573; Thu, 25 Jan 2018 07:03:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516892607; cv=none; d=google.com; s=arc-20160816; b=QHfefgr31d6FCEDs4KFLknz7j25GZvOEm1har8Ld7MUzBBJZa8mls4vO6OWBEn+Tdq NhyTum+Zjm4Bfv+CYX/gX20QWLb9ElmwRJAnHY2uoqNZ55ZdJbWZKRnQPYLlU/knlBcg FovsTMNVjcR7ajuMWefGAnvJ5GQBFstxFHcdTOQhOnqSUYrQm3jGP2uIeHCzTRQS0ALH aoYO0stqOj7BKuOZuqLeALNOL+SYXxtOiDzWfQu3xMkuiR14s+/87ysNphGfTHgsZ5bj JmetAHteVwx3yfFxzf+QD8hCSKqmkq/vWZgoIIpu3JjbyqEzm8EWp6qZt/AYAukNqTaR 5bRQ== 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=tngtso7+qnKCg6xNShGEY7559mV8Vo0FZbxa35IUbsQ=; b=bJXW4X6/kTwZmISCLBB+e5pQUCBrJZjheTQGiTQsjQULxTbdDlmjPxrGOMHoixz/4c nCsZYoDdWmkam+XKkwtO+cp6aDx1gAxfJWFCAmgAIkzzH35CeWdqsafWzqP7AGznmrtf 09qd8c9xjoZn1pDyd+CprKXMYuJeORgNFZV6TYLGYs3zBAtpu8F01aC1bwxxWOikxvLa kkfzOdQqsT6z3JH/ydiFzxoMzrw1IklzEzmO3mZwgh8e+xTMVXkRfIn3rFhq6/SAQIPO QNTBlAKCrYClX5EVj6wc127oU7GPbZu+qXhWaZrPd45PnenP/JO1RGowGQ8sQfkk4uMk ydxg== 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 n136si86468ybf.94.2018.01.25.07.03.27; Thu, 25 Jan 2018 07:03:27 -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 34D17617AA; Thu, 25 Jan 2018 15:03:27 +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 00BF86176F; Thu, 25 Jan 2018 15:00: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 C9BB4616E9; Thu, 25 Jan 2018 15:00:27 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id CD05261518 for ; Thu, 25 Jan 2018 15:00:24 +0000 (UTC) Received: from mxback1o.mail.yandex.net (mxback1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1b]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 2F5985D81A6A for ; Thu, 25 Jan 2018 18:00:23 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback1o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id yPuAHlMQWH-0Ni8FSog; Thu, 25 Jan 2018 18:00:23 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id tNrAE6Xzdv-0MDuedNH; Thu, 25 Jan 2018 18:00:22 +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, 25 Jan 2018 18:00:18 +0300 Message-Id: <1516892418-5660-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516892418-5660-1-git-send-email-odpbot@yandex.ru> References: <1516892418-5660-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 403 Subject: [lng-odp] [PATCH API-NEXT v3 6/6] 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: 44974a09b01c79adb9637a5dff38539598a76737 ** Merge commit sha: acecf073764f87bfadb64c598703458d344b39f4 **/ 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 d1cbfe352..c28d888ac 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.