From patchwork Mon Dec 4 09:00:21 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: 120492 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4174727qgn; Mon, 4 Dec 2017 01:01:24 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ0yvxsrVKhwZgLdXTUfYVDNUj4iF2mTv63EbZu3Mx8U/4F2zb9+ISDIsffxOR4u8sIk7io X-Received: by 10.237.59.74 with SMTP id q10mr19495284qte.254.1512378084569; Mon, 04 Dec 2017 01:01:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512378084; cv=none; d=google.com; s=arc-20160816; b=BFJM19Eq5SjbWwHy9BMImXNRHkkPcIP38ScOEGQNuX6aNlD493o6VQX0u4AUlHzKkd dFYBB1AN0j2eQoKMN9lNst/tSFc1UKhsrxVt5FuGD8Onwx74V0K8NcgYpyACqajm2Wqs AArjNFXOWR/wgajmj5qy75ZVyBJv24GKpuz/Cx2xBIfQHT1r92cMWyRjxVEkDznHYTVY IRLFF6H9zhldLjBBSlXVs+gTAQnps9oPqnmtG5Qa3cohy5spj63dArBfvyIQ0Gt/iOsz yiY5CChPxziJeVLORHBgoaFohphSWfc2M3fCr6B0XSdHsSTp65Fn5Vc8LQ8YphOsSILw 3s5w== 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=rJQ00EvxiOTcUIhtgrIQBo0DpZt4RF4NTw8a/g6Nklo=; b=aySVXZZLpuWR1/aZ7I4CY8ZVeq75C6h7GWAUHr5jeKjAGnbCfBFnmQ1boJlR48qCfB VhaVbDAqNYrROOkk+kNxq2ltWrXeSds395pDjYdEYH+Ag5jiDeFOyGjOFUv+VZV64Eh7 Ii9OPF6K9ilg69EPJ8ITo8cHzU2hLJ8cwiMaYWu+N+mMOMIp/4+8ettgctRHvwNhBpFZ jV6Q8fJFDpSRSt5U2+geZ3Ym7KQZga0aVEVq1eZhU/wsFloCt/VYMxSSfv+/OWvTjPpo Dd+jmC+ZDJeA0/lXC/ZF1bVYqvC44lsaQa5CHMxj83Yk10xc+Vb6iGKpGKqtNw84VvQJ H/iw== 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 s82si261538qke.478.2017.12.04.01.01.24; Mon, 04 Dec 2017 01:01:24 -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 3584660939; Mon, 4 Dec 2017 09:01:24 +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=-3.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED, URIBL_DBL_ABUSE_SPAM 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 9F806608AA; Mon, 4 Dec 2017 09:00:40 +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 0D14B608AA; Mon, 4 Dec 2017 09:00:34 +0000 (UTC) Received: from forward102o.mail.yandex.net (forward102o.mail.yandex.net [37.140.190.182]) by lists.linaro.org (Postfix) with ESMTPS id 305136086D for ; Mon, 4 Dec 2017 09:00:30 +0000 (UTC) Received: from mxback10j.mail.yandex.net (mxback10j.mail.yandex.net [IPv6:2a02:6b8:0:1619::113]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 0E9095A019C6 for ; Mon, 4 Dec 2017 12:00:28 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback10j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id pzzjdCwJP6-0REeofu2; Mon, 04 Dec 2017 12:00:28 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 2pKugCeR78-0QHarf0g; Mon, 04 Dec 2017 12:00:27 +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: Mon, 4 Dec 2017 12:00:21 +0300 Message-Id: <1512378024-15857-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512378024-15857-1-git-send-email-odpbot@yandex.ru> References: <1512378024-15857-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 313 Subject: [lng-odp] [PATCH API-NEXT v2 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: bdb7cbf620ada8682c89b5ae5a97cb84f16c0ed0 ** Merge commit sha: e4a122986c2750ffb044994107b385bd8002cbf4 **/ 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;