From patchwork Wed Nov 29 14:00:03 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: 120005 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3093114qgn; Wed, 29 Nov 2017 06:02:37 -0800 (PST) X-Google-Smtp-Source: AGs4zMa9jXDRV4ZKNxftRyKl4o1i0Z6of8Yp8kZy9uytLnmhCIUJdLIzmlHQEFqftXXz33/dLm81 X-Received: by 10.237.34.45 with SMTP id n42mr4782285qtc.12.1511964157562; Wed, 29 Nov 2017 06:02:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511964157; cv=none; d=google.com; s=arc-20160816; b=KJArPWcns7IbXfehfFpZtXC+2+knNq4IeYD0/JMBhsBVH8XJcwO0txDOW6Nn9xa/9+ uO4p8ahoa8yW2qWcEPg+6GN7AfDmUOXeTsXumeKRKl5s2nt+jnzybUwHAVmpIwsfucie SUDsrMRM0f3bbvQRY/Rxt+bOyaQGyF1H7nHFDdbJ0Rf5PU7Vozf5Mtt8M4GfcyE92KTQ obqDZjYFVdKWRJrHgr1sBN9x8yUxDY+KEAdB7d4stnIxWrS1aPSOOTeY0+M48dCJ9mK+ Y9nYzNazo8gTlpkT+BP5VC3zqoksjNYf4V8iIfYUEv2hBHCOB+8wz+C4mMQ8E/dTBXzw 4v1w== 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=ox0F48ke2eLvFwNhSyZh/NRlt3isegkoOyUx+WAUzmg=; b=cXQpk6kO/5ftLuotqSB3l/xlGA4Mm9yat7U5yOEsRdbX6TLaompwJsI92jJ66a2I9j zuTk3X8yl3z77P0Epkvy7lc+jOcPiSCKabR6FS5SIaCK1xp1hPAYOV+3s/uD2dmBFJeh hOuQSElHtbPRlFfHGzajwtpGAIHJcomHNNzWMQ2sQ612ppSAp4X5xtLDRik+OlFWLKkZ yte4xbsb9skw55MlAsK049943r0LrE9yUqFdZ6kieNZ2l4hqPlUdwjVaNhW3OKWCxWOs K+GWdhh3ExpZphkMkf6EBsuRey+j+JdQ5T/7i/5SLj/9p7VNdDMKOaw581nYddv7ZfEq tXKw== 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 b83si1029705qkj.414.2017.11.29.06.02.37; Wed, 29 Nov 2017 06:02:37 -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 28046608E6; Wed, 29 Nov 2017 14:02:37 +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 11A79608ED; Wed, 29 Nov 2017 14:01:42 +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 00934608FF; Wed, 29 Nov 2017 14:01:33 +0000 (UTC) Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by lists.linaro.org (Postfix) with ESMTPS id EF5D560667 for ; Wed, 29 Nov 2017 14:00:44 +0000 (UTC) Received: from mxback2o.mail.yandex.net (mxback2o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1c]) by forward100o.mail.yandex.net (Yandex) with ESMTP id 754512A23E0B for ; Wed, 29 Nov 2017 17:00:39 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback2o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id JOHNbQw10z-0d8O2Stt; Wed, 29 Nov 2017 17:00:39 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id AIVWVflXkM-0SmO3Ast; Wed, 29 Nov 2017 17:00:28 +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: Wed, 29 Nov 2017 17:00:03 +0300 Message-Id: <1511964006-11004-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511964006-11004-1-git-send-email-odpbot@yandex.ru> References: <1511964006-11004-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 313 Subject: [lng-odp] [PATCH API-NEXT v1 2/5] example: generator use checksum enable 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: Petri Savolainen Use new checksum insert enable bits. Signed-off-by: Petri Savolainen --- /** Email created from pull request 313 (psavol:next-pktout-config) ** https://github.com/Linaro/odp/pull/313 ** Patch: https://github.com/Linaro/odp/pull/313.patch ** Base sha: 4cb02e1caccb9179575e95448fd46979e17d0905 ** Merge commit sha: 5d0d0efcb77baf5b9db803a8a8b89450e27aff38 **/ example/generator/odp_generator.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index e1d98539f..81d954662 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -523,6 +523,10 @@ static int create_pktio(const char *dev, odp_pool_t pool, capa.config.pktin.bit.drop_ipv4_err; itf->config.pktin.bit.drop_udp_err = capa.config.pktin.bit.drop_udp_err; + itf->config.pktout.bit.ipv4_chksum_ena = + capa.config.pktout.bit.ipv4_chksum_ena; + itf->config.pktout.bit.udp_chksum_ena = + capa.config.pktout.bit.udp_chksum_ena; itf->config.pktout.bit.ipv4_chksum = capa.config.pktout.bit.ipv4_chksum; itf->config.pktout.bit.udp_chksum = capa.config.pktout.bit.udp_chksum;