From patchwork Thu Nov 9 09:00:14 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: 118401 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp6333568qgn; Thu, 9 Nov 2017 01:03:36 -0800 (PST) X-Google-Smtp-Source: ABhQp+RUE3mWySua4Jp/woXHaIq6bcbhFWsqb/3Ft1oTvX6JrToGtDaRTL1Sg+Wp48kttzue3gry X-Received: by 10.200.23.153 with SMTP id o25mr5375672qtj.119.1510218216515; Thu, 09 Nov 2017 01:03:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510218216; cv=none; d=google.com; s=arc-20160816; b=L1l6eF+6+TQiWTLz3rWEl1IX6XIwRrauorBM2HYtYvRSE9ow65nyO4C/MtI/axPgyN 6wiTWS2S9O8GBXN7WlfnBr3HJWA86EA7GUSxoR5AeW62mc7464ypLDQHpuMK0FBVCG8V st+AMONm1z6lTKVLD3Hl3GNOk5slSHD4ej3aOL4u4s4esRb7QPCSXi6OWrQOvxKoyFDI spLosy2B8stdiu/3fY2aqdjwHQQRasBwNrSMnDJI6OMNM9DRwqtfZUURq3wPW9Qs4oP0 OJHm+EyNr+u05uGNAPPz6Z/YWZgiPmR6h0VExxZPfdzq1szg3JkoeNvuMWIC68TIypXL HTZw== 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=izg6+LsSj2B0uTYwxq3AclEWQmUG0T4NG47uIYu34jM=; b=NtaiOygusJ1BndN4f6t7NI7/RpUIiI+p1OvZFG2oOMX417aotMdythV1Ht7nJ1mmb8 HcKzf8Y8mW9UylKWPw+1wupOxf7jDkW0osfoPCpPMflNEgxSPRXlVreMseYak0Ub74r8 q7EQGejfd8OSJaDhclibOa04jn8jg6dARNghExtsYgFMYRIBMRwP4+WIao4wstrTGRmF gyEhqol0jLWhDIVOSd8a9G97Qs/LpNlOK/5XL1HWN6Em2nnSFPYyZiGNxaOnAWH2L3EO b9/rVhq8kjuun9GU9TnEtAjpVTxODbzdXjILGNRr1P57ahhCqgNKDRdJ4kg0DXIc/SUN imIg== 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 w49si3766100qtw.419.2017.11.09.01.03.36; Thu, 09 Nov 2017 01:03:36 -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 2FB3C60C25; Thu, 9 Nov 2017 09:03:36 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 6700660C5C; Thu, 9 Nov 2017 09:00:57 +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 2985360593; Thu, 9 Nov 2017 09:00:41 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id A03A060593 for ; Thu, 9 Nov 2017 09:00:34 +0000 (UTC) Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward100j.mail.yandex.net (Yandex) with ESMTP id B0DB45D825D4 for ; Thu, 9 Nov 2017 12:00:21 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback8o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id BDWAHjCJdv-0LdGD9Sd; Thu, 09 Nov 2017 12:00:21 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id AXFYGb2yvs-0Ktqsok5; Thu, 09 Nov 2017 12:00:20 +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, 9 Nov 2017 12:00:14 +0300 Message-Id: <1510218017-21165-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510218017-21165-1-git-send-email-odpbot@yandex.ru> References: <1510218017-21165-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 269 Subject: [lng-odp] [PATCH API-NEXT v2 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: 31b12178be4753494e806513020d7706600c8382 **/ 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;