From patchwork Tue Jan 23 15:00:24 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: 125532 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1809452ljf; Tue, 23 Jan 2018 07:05:08 -0800 (PST) X-Google-Smtp-Source: AH8x226UYcHnIsr8nK48ZvkallhX9tUQqRUr4VyJWgxuSjfMNIU0E/D1it73FyS2WCXG4b7bbSVU X-Received: by 10.129.156.134 with SMTP id t128mr2711120ywg.108.1516719908101; Tue, 23 Jan 2018 07:05:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516719908; cv=none; d=google.com; s=arc-20160816; b=woGFsoF4eD0d7msTYmX2mq9/PA5NQtimnGSrX01WpCbgbF7EXU2BY6f04mx50VjlwM xrczZVIADy2lqlDDox20n561g05pmm7QzkO80HuHiHvoT78C4PI/wbM62NFa8MbHGwQ3 EX3TJhgU8DXZIXQ8aO9rQXquCFv0VVGaGgZbgupC9v9Dhi7Qs6UBAYyoE3Hpmw+VAUN9 ReImgXAp5CBt4bGn6IpUZOCfREmuPHC8+gb9WRBBxLHIdyNhe2jBOA56vFp35xbQjp6w FIb0Wu2BrZzZWrl5xmHxSB8xKIjvJEzxWMccWwHHWN6wIGM1ga5KWltfpyqChYafx92e U6dA== 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=GNCAaqr7XGyUys71GWu8qGZM8Q7xlKWKweR5Ul6jQKA=; b=D2i1hIijfjCiBFrIEbyYN5Ogs/BltJXPfMRhMJQjjnarLBC92uFkSPijMkuMhUr7XK cTJphD1sGayF7zoqIqalxh79QRQ7zY/Q28JKWFkgLcNVPo3JoQdMcna/+c+mG0zzN2+p pPfKyaVyNgsDb/HhY20GDPI/BdqiIUIFaRdlm5QDgcmo5tk33AZFs/oYSWwSpDm4se5G EzmXOcupVUtB60xa5tp2EJC1XmLJcNOTGRhtdY0mEw9mH9Ev7ptRnverFm45ZkCWu6zh rn5mzeXhJv0ZSRIqR8M8OgHDEB7QHjEbcIVgruAqekLr9sT5rKYWuYbPh5/QmFQPknaj Fm8g== 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 d12si4048079qkg.484.2018.01.23.07.05.07; Tue, 23 Jan 2018 07:05:08 -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 CB927617A5; Tue, 23 Jan 2018 15:05:07 +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 22B81617C0; Tue, 23 Jan 2018 15:02:28 +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 5DB58617A5; Tue, 23 Jan 2018 15:02:14 +0000 (UTC) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [77.88.28.102]) by lists.linaro.org (Postfix) with ESMTPS id EDD62617C0 for ; Tue, 23 Jan 2018 15:00:29 +0000 (UTC) Received: from mxback4j.mail.yandex.net (mxback4j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10d]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 9219D4302C47 for ; Tue, 23 Jan 2018 18:00:28 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback4j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 867wSBJr2B-0SlKJB5C; Tue, 23 Jan 2018 18:00:28 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id IwkpSe7BuA-0Sda881s; Tue, 23 Jan 2018 18:00:28 +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: Tue, 23 Jan 2018 18:00:24 +0300 Message-Id: <1516719624-9914-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516719624-9914-1-git-send-email-odpbot@yandex.ru> References: <1516719624-9914-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 403 Subject: [lng-odp] [PATCH API-NEXT v2 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: 537da7cd2083945c4673ac0dd7b29beb6825bce7 **/ 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 217447060..189d9937a 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.