From patchwork Sat Jan 13 23:00:13 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: 124433 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp230846lje; Sat, 13 Jan 2018 15:04:02 -0800 (PST) X-Google-Smtp-Source: ACJfBotjXdk5UKm49jXM6rVvBtHCZY1neAAj81zRVrtnWKL/I3CsiC67Jf0S6PaSyFI47IRyy5iK X-Received: by 10.55.163.150 with SMTP id m144mr13029376qke.256.1515884642645; Sat, 13 Jan 2018 15:04:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515884642; cv=none; d=google.com; s=arc-20160816; b=aRhy5NMj1Q5TF1tNMuPHSqB+UNeJve1suBUgoOxV/8VKJZvZqknca478aOlSz8vA0e USLtmw+o9ohGS2iT97fJ+3vFSUcwkgFVucf5b0UFBw0uFlvUTm63u4wRpMwpYXZAySAu 6leTquKI4LKcgHCjSG/xY2XCJan/rTYQLCey8awEr6vmj+Fba2Fh3Lk1hcDJrkNVLtlN zLrxkximJY7/v8qYAzPEwAY8Imb1+nxI112XBy6zQBssaO9Cxmm/6tLrhWBrzz2b7/e1 suCW8WOPWpT39gjha2B6VRvas6ZbnbJ1TTZ/fzsw8CAhoxMXD63sSysaLPCC1+OSKEac c/qw== 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=GX+ElqDo3A7mYMuGmkbhrfj5k81iJaUwE99KBLeyCEc=; b=jMpDyj/ry8Fl4iHll2kPXG2e72Cvvc0iOXSne5ZOq5WMwatx6IAXjYI46wC5cbULg3 f5I47oS2f3slo7syqQoMofsevxrOAbuy1kAPqnMnNopmHpv+u8548i5Y7hjRaBDtUreX XWaHMDsn2ZprLBkyeiGrlCDcGlbfmhVZMVJFNzJjb1r/t76130sF/hSgBIve2aczR0Yz uCsIRmNPjZzpalpk19TqKYHXC26YCqrq5V+4soMGyB9CSZX4wtzB+AVEnpb/Doz3QwmS Ae1iPW2Hz0h6gcyOaJ+ZgHKdSZ/fiM1pEVDfC+XldU/palYVNI/2QYsoYE4NOxqZuWfb 1VEw== 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 k188si180397qkf.323.2018.01.13.15.04.02; Sat, 13 Jan 2018 15:04:02 -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 58C4661748; Sat, 13 Jan 2018 23:04:02 +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_H3, RCVD_IN_MSPIKE_WL 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 734E761753; Sat, 13 Jan 2018 23:00:46 +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 33AA160975; Sat, 13 Jan 2018 23:00:25 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by lists.linaro.org (Postfix) with ESMTPS id 02E1F61726 for ; Sat, 13 Jan 2018 23:00:20 +0000 (UTC) Received: from mxback13g.mail.yandex.net (mxback13g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:92]) by forward102j.mail.yandex.net (Yandex) with ESMTP id B09F05601A1F for ; Sun, 14 Jan 2018 02:00:19 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback13g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id RUaUI7cNRT-0JVCIBtV; Sun, 14 Jan 2018 02:00:19 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id OeJ5YhkKll-0JxiHM4w; Sun, 14 Jan 2018 02:00:19 +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: Sun, 14 Jan 2018 02:00:13 +0300 Message-Id: <1515884413-15125-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515884413-15125-1-git-send-email-odpbot@yandex.ru> References: <1515884413-15125-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 389 Subject: [lng-odp] [PATCH v3][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: e6a448356c90f142122e5b5d4796bdf19e04e8c6 **/ 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;