From patchwork Mon Dec 11 11:00:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 121367 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2642360qgn; Mon, 11 Dec 2017 03:02:23 -0800 (PST) X-Google-Smtp-Source: AGs4zMY2u3wwt280kG3aJmAsREt+wI+fv4LZtvBTDbT0wn9Z/6X0NMwIAMgzBUlzmAjdEsaZT+3j X-Received: by 10.55.18.231 with SMTP id 100mr47307909qks.115.1512990143450; Mon, 11 Dec 2017 03:02:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512990143; cv=none; d=google.com; s=arc-20160816; b=YTAhLPgETILmuCLJdjXKOi5eqSv7QG62bRtXr0JBaFUAaSUM1WFYDGwLe6BQT3vkdy sPYOQcPvuyeUQfo0dChckuGxXJL2bm2HJMqSIv34lhM+7pCExL1JkRsPm3KLlPnUPjgy H7/JXJvYLue9VJRPdIHWvaGC2Nepc96jRdfogYQQgL6zJO+nL6HGbVcJcDx8zaWrC8uR vQ/m1rBdb4bZba71AqOA4CEkO3G25EJjPfUbUAkldLr6tRRBqcu3mzfYqg/Z6QGDeSDJ DgzzGU0LtzKeLmXNcNkujeRVE4apq4pZrWRjey//THA83NEDFYYFAat07IYIIDpx+i3g ic9w== 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=5PPA5btF4rTJ7n13a+DKoSzf7qyVry50N73dOwctQ70=; b=0ql2m0SvpMk33IUKKEWza+eOSan7LXCKHFR63kbtuQN/x1YWvVPER8w7s3BIx4jtqM s1oOYMQkDJYVz9VqxWzAehm0/yAF38JktjehCsJ+dEFAf50M5icIFg9ii7LMcW9MUVEv MBfwkFHTmNzc82Ia8fFjw24/0Oy3ssGM4hFYIILg57yny0PUGQgyWcKWTH5RUUKLtL8L 4ckIYWOP4zgRWLUFqP69lUP3b/Eqd05v101vYbDSJicS3ikskRfRczmlZhBNrmy7iI3E /qxKeTrwu7um+rNGWLnQXzG2Nm/1wd0iY9HXiesnG+edrVPaw5oMiWWiq6/sqWNM+znt YnKw== 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 r15si12831682qkr.1.2017.12.11.03.02.23; Mon, 11 Dec 2017 03:02:23 -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 250B0608E6; Mon, 11 Dec 2017 11:02:23 +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=-5.4 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 65CFD60646; Mon, 11 Dec 2017 11:01:39 +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 9508E6064A; Mon, 11 Dec 2017 11:01:30 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id B127960609 for ; Mon, 11 Dec 2017 11:00:41 +0000 (UTC) Received: from mxback15g.mail.yandex.net (mxback15g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:94]) by forward105o.mail.yandex.net (Yandex) with ESMTP id 91DDF444236B for ; Mon, 11 Dec 2017 14:00:39 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback15g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 8yGkgcibo0-0dDOZX7K; Mon, 11 Dec 2017 14:00:39 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id CDuRN6UJGT-0W1S7LfK; Mon, 11 Dec 2017 14:00:32 +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, 11 Dec 2017 14:00:18 +0300 Message-Id: <1512990018-18045-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512990018-18045-1-git-send-email-odpbot@yandex.ru> References: <1512990018-18045-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 314 Subject: [lng-odp] [PATCH API-NEXT v7 2/2] api: ipsec: reuse checksum checking flags from packet API 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 Reuse odp_packet_parse_chksum_t from packet API to ease passing checksum flags to packet parsing functions. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 314 (lumag:ipsec-chksum) ** https://github.com/Linaro/odp/pull/314 ** Patch: https://github.com/Linaro/odp/pull/314.patch ** Base sha: 0980001e33b4190133d478a0aa2e718fd1e3c164 ** Merge commit sha: c57270d671524b7c4bcf5999fcd48eb7cf104551 **/ include/odp/api/spec/ipsec.h | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index d57815ed2..77c1efd19 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -159,32 +159,7 @@ typedef struct odp_ipsec_inbound_config_t { * level. Checksum checking status can be queried for each packet with * odp_packet_l3_chksum_status() and odp_packet_l4_chksum_status(). */ - union { - /** Mapping for individual bits */ - struct { - /** Check IPv4 header checksum in IPSEC payload. - * Default value is 0. */ - uint32_t ipv4_chksum : 1; - - /** Check UDP checksum in IPSEC payload. - * Default value is 0. */ - uint32_t udp_chksum : 1; - - /** Check TCP checksum in IPSEC payload. - * Default value is 0. */ - uint32_t tcp_chksum : 1; - - /** Check SCTP checksum in IPSEC payload. - * Default value is 0. */ - uint32_t sctp_chksum : 1; - } check; - - /** All bits of the bit field structure - * - * This field can be used to set/clear all flags, or bitwise - * operations over the entire structure. */ - uint32_t all_check; - }; + odp_proto_chksums_t check; } odp_ipsec_inbound_config_t;