From patchwork Wed Feb 7 13:00:01 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: 127177 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp456303ljc; Wed, 7 Feb 2018 05:10:14 -0800 (PST) X-Google-Smtp-Source: AH8x227CSl4XTjrToGiYXzwkIvCAxSJksd1c8v8AwtCYQW4s+JPKvXSuAjBJevoLUGohh0N9grSa X-Received: by 10.233.237.140 with SMTP id c134mr1635053qkg.131.1518009013969; Wed, 07 Feb 2018 05:10:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518009013; cv=none; d=google.com; s=arc-20160816; b=mutMkCFbUYALp8QL+dlyzXJSC1UuiASZ6MGW5rBQrVk7Ts1buBRhAtHhtbs1GSNb8W cuOa5hdG2HXFuHS3hw2ammUkatp8PI1MvSNA6NNJsFDSxQvENCqyqkzf9uMBiAMgIfja rw1k6PK6bpZcfGND9MWW3mR9AhkuY9cVCmLlXMwYiuF8uPPCwthnzF2P9Yy5zL3wi9tK Og1sgJYRG5cs0ZZBGLbdrywSBkwqK6s/AsLv6oZyCzv8zcJXyuNGQlnt23D7ZAFeUn8S luqZvtGBSoQlbA2k7KlZl0HmTMEndG0eajDm4EEst9I2q8ZMBT6xJTbL7bgtfu+JEAut Hzww== 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=VLfJ7XnD8V5wEr52ezYsxh1cCjtXY4DA/+yO0f3zll8=; b=0RY5EE5GlLl1cLX+hlJ5N97eugeLwgICoBFrz255mypczBj1odYmqn8MIMEAMM16Rq W6qACHl3sQ36vfeilcLXOgQW6r9sepTODt3SiPdHakPwGtZ6IdknPYGoJXiN0j3smJLh uYGzex0+nf2tj7RIVTp/sscRFIJvOjAf9PiTVbjPHyd8/RtyxScYecLbWS9eBVc+rS7e Suo5Suc27J/VgLSTZZXDEDGHAriV0y9J0vxwDi2zx3Be6fuucC37baLx3MFFCwrlVXpY SKKNOQgGxTodOAU5WJ4UP/MOnkXXU+zZY0Gr7Y7ZqfzYwl2MYluykrELUFGXNJbLpbqH lYhA== 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 w139si1419853qkb.445.2018.02.07.05.10.13; Wed, 07 Feb 2018 05:10:13 -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 A0D43627D9; Wed, 7 Feb 2018 13:10:13 +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 226E562790; Wed, 7 Feb 2018 13:01:37 +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 C143060D3D; Wed, 7 Feb 2018 13:00:34 +0000 (UTC) Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [5.45.198.247]) by lists.linaro.org (Postfix) with ESMTPS id E4E6B6278A for ; Wed, 7 Feb 2018 13:00:14 +0000 (UTC) Received: from mxback16j.mail.yandex.net (mxback16j.mail.yandex.net [IPv6:2a02:6b8:0:1619::92]) by forward104j.mail.yandex.net (Yandex) with ESMTP id CD68842A38 for ; Wed, 7 Feb 2018 16:00:13 +0300 (MSK) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback16j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 7WPGAQDAzk-0DquSDDP; Wed, 07 Feb 2018 16:00:13 +0300 Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 2XfrietnG0-0CZ8LNm4; Wed, 07 Feb 2018 16: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: Wed, 7 Feb 2018 16:00:01 +0300 Message-Id: <1518008409-31750-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518008409-31750-1-git-send-email-odpbot@yandex.ru> References: <1518008409-31750-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 457 Subject: [lng-odp] [PATCH API-NEXT v3 6/14] helper: switch to using odp_packet_l3_type_set() 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 Use odp_packet_l3_type_set() instead of calling odp_packet_has_ipv4_set() or odp_packet_has_ipv6_set(). Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 457 (lumag:packet-types) ** https://github.com/Linaro/odp/pull/457 ** Patch: https://github.com/Linaro/odp/pull/457.patch ** Base sha: e1175d5a69c65bb465022c9f1381c40fdb5c4069 ** Merge commit sha: 86fcf3650d33f5dd82712dda131fb8ca66a3bdf8 **/ helper/test/chksum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/test/chksum.c b/helper/test/chksum.c index 5c7c650e0..292eb2d6d 100644 --- a/helper/test/chksum.c +++ b/helper/test/chksum.c @@ -110,7 +110,7 @@ int main(int argc ODPH_UNUSED, char *argv[] ODPH_UNUSED) ODPH_IPV4HDR_LEN); ip->proto = ODPH_IPPROTO_UDP; ip->id = odp_cpu_to_be_16(1); - odp_packet_has_ipv4_set(test_packet, 1); + odp_packet_l3_type_set(test_packet, ODP_PROTO_L3_TYPE_IPV4); if (odph_ipv4_csum_update(test_packet) < 0) status = -1;