From patchwork Tue Dec 5 16:00:22 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: 120711 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5922780qgn; Tue, 5 Dec 2017 08:02:11 -0800 (PST) X-Google-Smtp-Source: AGs4zMaWjoCFBTf0IDodLXlSxn3Wq52fYaO1NEzVw+C6QHNgrALT5I/3dTJy8u7wgPo7ofIKOL1b X-Received: by 10.129.115.135 with SMTP id o129mr13124405ywc.109.1512489731248; Tue, 05 Dec 2017 08:02:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512489731; cv=none; d=google.com; s=arc-20160816; b=Mm6LynoDoBY7BwuJ+k+hY+44W854HLhc66a1dhvmsabYRmqcZIcVkbWPVLRvWfWOvE Bl+HbJEA2+15xUgDfIZAlQRn9wl61MPBTJpJV6A4H23kVDK3K5dxPKcFKgFAFcqL2fIw U5P5hoY5oRAsHxkbVciaAIfX10PAle7AFpSyS5YKsTrEL3gUOVGkg4DwhEPbHJjvv7Zs nmYwc15Arh5UjsiIYrxsAfyynDwgmLUKx3ZujnBEeRnXJIjorioWi0nsbSalqT+IpQwm Y7cr/gLHs9H50kkmqbzCDYLRmAaPjgu0fc6f0BrOjMi4k4IbzLLA8ozyz6Zy7KEVVRUT dFkw== 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=70h3pob36i9ORXLLlYXrQy2Cz2BhJ0DnaxlAeU6WIuQ=; b=bmgviBtWvXEEew2Fu2z3AuNL6UqF6H7rEaZ/mpn9Ir2vMjQBek7aRWyrBVtuDbe25K ZUURYcbnAtASKqKFMe+HK9QHaDiKbJR+ALGqxUqEvl3UzcPygMCCwFtUsAI3PqHDUVEq +u7P8p2Yy7hI7aVaop39sDlxAibzs7edgw8ZLW9NFwgix8mB4NoL4gr36LO7rujnmWim ViSeve5Z8s0Z9D3GvhJ3gtdh6dyYUWeNqRu580wfqPw2yZldVMKEcO/I/cQXUoVZbPdn L/BW3BoVX85ZOZleBuL+FitLdpd6rSM6sZBkrN/jYoD5VxLVLbfKjoTFYc3gWCmfGhhg iPwA== 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 z76si284243vkd.62.2017.12.05.08.02.09; Tue, 05 Dec 2017 08:02:11 -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 78C5360955; Tue, 5 Dec 2017 16:02:09 +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 46FC9608CC; Tue, 5 Dec 2017 16:00:40 +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 C2D2B607A3; Tue, 5 Dec 2017 16:00:28 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by lists.linaro.org (Postfix) with ESMTPS id 341126038F for ; Tue, 5 Dec 2017 16:00:27 +0000 (UTC) Received: from mxback15g.mail.yandex.net (mxback15g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:94]) by forward104p.mail.yandex.net (Yandex) with ESMTP id E766618613A for ; Tue, 5 Dec 2017 19:00:25 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback15g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id SpFpCnde7E-0PTOB7Dc; Tue, 05 Dec 2017 19:00:25 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id rlszrcHCmV-0PVCEiq2; Tue, 05 Dec 2017 19:00:25 +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, 5 Dec 2017 19:00:22 +0300 Message-Id: <1512489622-22514-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512489622-22514-1-git-send-email-odpbot@yandex.ru> References: <1512489622-22514-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 314 Subject: [lng-odp] [PATCH API-NEXT v5 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: cf7d38c194f1a9183a524790511de8bfd74a36a9 ** Merge commit sha: 507c1768bfbde64334e0a2ea85957eaeb2277064 **/ 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..d4e07de8f 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_chksum_t chksum; } odp_ipsec_inbound_config_t;