From patchwork Sat Jan 13 04:00:08 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: 124408 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp30609lje; Fri, 12 Jan 2018 20:02:55 -0800 (PST) X-Google-Smtp-Source: ACJfBou8mcBwDjdb/sdlPTM3AlAbciSBPOPeMBzq0JMHkJAaZ9OYWHjedC6yyd7p4FKWMdzZxdt6 X-Received: by 10.55.78.143 with SMTP id c137mr41679849qkb.122.1515816175277; Fri, 12 Jan 2018 20:02:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515816175; cv=none; d=google.com; s=arc-20160816; b=vaPLwgEB1hkwCxJoZ40F5MsxoZAFoo+c6dh1o24y6qE7LXglOO6vqoDo/PvKtpIXH9 1OArpQmqqyKlAglrz4eGKO3oC9NtdflXNM+eTp9bWolQHgIpLZMaDTooo+9x+KtlWQRW 8q4LC/XTIUbRkPhLOkRD3MryyYG8J1kvahuhx5tmtHyUdFegqfMdCTrbPbi68qRVJMYk 8EMFQclRi7cJ6quCGs9hEP9XpWyp7KhWH50KN894NKBtNnuIYZ+q5IgmWex0GmYuqRq1 wABf4xNe2cV+54A7BSKKC/dYjawIh7nvzcuPQYnCdmz1l/UU73nBoZY7uodXTOi7zsMx MnJg== 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=A+jgjCaFDpv+6Vulcoq+kw9grdPQufcYXY8/U+5nfmM=; b=karJsFewTbsUKqx8gPbU/P6haqvmBjcdAKzHzuIbxbmAXgtMoUm/7y17w90U2EYGd0 lSLedMicM6cwdU9E0CQJMajuNMjVOWoWooSvV4yVJMIuCsq38C3ZBlrz5Na+teGOL9H8 VNygzn+L0FIQ+rbQSQWYo12oStJdaJ282gK2oouK4AA5F6VD7wRMrW2aB6fkinn16uTA tYhKVdnYwMHGrBkhcdWLkspYShrtGsVP/iMd7M29n04js7XPomKyR9XFyJBo3k7Rjggy 8Z2WLvCaNWwUbtk+TxIbo4jlxlOKg1ioHFTUrnokctqSgRNsoDSC97frVZ2cN5J7XyS0 rf2g== 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 g8si271868qtc.145.2018.01.12.20.02.55; Fri, 12 Jan 2018 20:02:55 -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 025C661751; Sat, 13 Jan 2018 04:02:54 +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 E69FE61764; Sat, 13 Jan 2018 04:00:30 +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 26A9261735; Sat, 13 Jan 2018 04:00:18 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 331026095E for ; Sat, 13 Jan 2018 04:00:15 +0000 (UTC) Received: from mxback19j.mail.yandex.net (mxback19j.mail.yandex.net [IPv6:2a02:6b8:0:1619::95]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 579435102663 for ; Sat, 13 Jan 2018 07:00:13 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback19j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id EKJSuYiShF-0DhWwJW2; Sat, 13 Jan 2018 07:00:13 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id GnJsmNomDX-0CGqG4Ab; Sat, 13 Jan 2018 07:00:12 +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: Sat, 13 Jan 2018 07:00:08 +0300 Message-Id: <1515816008-7212-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515816008-7212-1-git-send-email-odpbot@yandex.ru> References: <1515816008-7212-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 389 Subject: [lng-odp] [PATCH v1] [WIP 7/7] linux-gen: pktio: loop: support checksum parsing 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 Add capability bits referencing support for IPv4 and UDP checksum validation for loop pktio device. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 389 (lumag:parse-checksums) ** https://github.com/Linaro/odp/pull/389 ** Patch: https://github.com/Linaro/odp/pull/389.patch ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea ** Merge commit sha: ab214b82da2a920444a5e65d029f3f42a98ec314 **/ platform/linux-generic/pktio/loop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/linux-generic/pktio/loop.c b/platform/linux-generic/pktio/loop.c index bf6365e94..9b470c083 100644 --- a/platform/linux-generic/pktio/loop.c +++ b/platform/linux-generic/pktio/loop.c @@ -250,6 +250,8 @@ static int loopback_capability(pktio_entry_t *pktio_entry ODP_UNUSED, odp_pktio_config_init(&capa->config); capa->config.pktin.bit.ts_all = 1; capa->config.pktin.bit.ts_ptp = 1; + capa->config.pktin.bit.ipv4_chksum = 1; + capa->config.pktin.bit.udp_chksum = 1; capa->config.inbound_ipsec = 1; capa->config.outbound_ipsec = 1;