From patchwork Thu Nov 2 12:00:05 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: 117806 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2073732qgn; Thu, 2 Nov 2017 05:03:21 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SRHD7or6SIC/yE7a06ER4GKzWhufzohaJ7m8Ku+i3GKg9eNRbFC4VZHKKHx0u7/wx8MebY X-Received: by 10.200.23.220 with SMTP id r28mr4476126qtk.247.1509624200999; Thu, 02 Nov 2017 05:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509624200; cv=none; d=google.com; s=arc-20160816; b=FLRZJtIcSWtm9IV0m0hL074IT6BocXJvovmjUIZBpzaPE16IXMMelKEdf0oHfoQjGp UcXCUU6lcRt54Hnp0Dp8nBpkYLqD/kDaHHAw6hQK4T7vU3k1HpE/oYZkz8G5Fi0RdgxK W5ZdzAvOfBd6kleFy9bw/jt/7jAmdyHNqcOcIugJZOoUW9yMCiC2mCfMZK7YU0/VIYwX mmLDYYiKwsHT7cVVm3ToDBtouPaLv3aGH4HUfmx6hRxGFlHuJGQx0XrX1T6I5uWWX+n1 Ln1Aok+dUTO0xAkWyslwPqB93MpHY+ZdCosdJP8bwlgkwyc/KAF2LW8k4fn6uqk6iooo NakQ== 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=0yZy7cynR91vnPtPJOr7BUS7Sijxt70YckKICDJopIY=; b=txXY3sauOtGWi2LqkR8wluAY24z7GSejPjHisEAbtVlCg+/EE8oISDuI688Lj6oX6u i63B9iXqFTMBXWxPhLyfs4w7zLASs5AjI7V2yocB3xtyfTw0RMdPe06ahLlAR2wa1bqo R2PzOS38J8zDc/YjeI7ow/dQNXCFxc6ka5MsEyop0/rfjA2sRH31HU3j8arpm2AqlgRt 9/pMskaTrbyXsMLfXmMC+fyl7CATtiEWlUxKniuiL59VDfdiFP/LZ3zGK9z30vnQ5vZD htLYMdlBQfpZw62fSK9c9LJ2dnYqgHJS1pdOpotgkGZgFWCukBw6ybKmFUQhp1brJUGv 2PBQ== 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 l51si1175828qtl.448.2017.11.02.05.03.20; Thu, 02 Nov 2017 05:03:20 -0700 (PDT) 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 744F360BE3; Thu, 2 Nov 2017 12:03:20 +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 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 411526082A; Thu, 2 Nov 2017 12:02:29 +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 0DDA560647; Thu, 2 Nov 2017 12:02:15 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by lists.linaro.org (Postfix) with ESMTPS id 3747E60FFD for ; Thu, 2 Nov 2017 12:00:12 +0000 (UTC) Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 27019184431 for ; Thu, 2 Nov 2017 15:00:10 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback8o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Eg6lMc3EzH-0AA4x620; Thu, 02 Nov 2017 15:00:10 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 0qgpfauOww-0938cQiR; Thu, 02 Nov 2017 15:00:09 +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, 2 Nov 2017 15:00:05 +0300 Message-Id: <1509624008-24783-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509624008-24783-1-git-send-email-odpbot@yandex.ru> References: <1509624008-24783-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 269 Subject: [lng-odp] [PATCH API-NEXT v1 1/4] linux-gen: packet: add L3/L4 checksum validation flags 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: Bogdan Pricope Add L3/L4 checksum validation flags to signal if operation was performed by the platform and its result. Signed-off-by: Bogdan Pricope --- /** Email created from pull request 269 (bogdanPricope:api_next_csum_status_pr) ** https://github.com/Linaro/odp/pull/269 ** Patch: https://github.com/Linaro/odp/pull/269.patch ** Base sha: d22c949cc466bf28de559855a1cb525740578137 ** Merge commit sha: 7076ea1cebe42326de76e8bb07709715222f2958 **/ platform/linux-generic/include/odp/api/plat/packet_types.h | 3 +++ platform/linux-generic/include/odp_packet_internal.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/platform/linux-generic/include/odp/api/plat/packet_types.h b/platform/linux-generic/include/odp/api/plat/packet_types.h index 68c66312b..050f69dc5 100644 --- a/platform/linux-generic/include/odp/api/plat/packet_types.h +++ b/platform/linux-generic/include/odp/api/plat/packet_types.h @@ -150,6 +150,9 @@ typedef union { uint64_t color:2; /**< Packet color for traffic mgmt */ uint64_t nodrop:1; /**< Drop eligibility status */ + + uint64_t l3_chksum_done:1; /**< L3 checksum validation done */ + uint64_t l4_chksum_done:1; /**< L4 checksum validation done */ }; } _odp_packet_input_flags_t; diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h index fed562aa3..950e1bb5c 100644 --- a/platform/linux-generic/include/odp_packet_internal.h +++ b/platform/linux-generic/include/odp_packet_internal.h @@ -51,8 +51,10 @@ typedef union { uint32_t snap_len:1; /**< Snap length error */ uint32_t l2_chksum:1; /**< L2 checksum error, checks TBD */ uint32_t ip_err:1; /**< IP error, checks TBD */ + uint32_t l3_chksum:1; /**< L3 checksum error */ uint32_t tcp_err:1; /**< TCP error, checks TBD */ uint32_t udp_err:1; /**< UDP error, checks TBD */ + uint32_t l4_chksum:1; /**< L4 checksum error */ }; } error_flags_t;