From patchwork Wed Feb 7 13:00:05 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: 127179 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp457389ljc; Wed, 7 Feb 2018 05:11:23 -0800 (PST) X-Google-Smtp-Source: AH8x224ZwCyYLgp/G3hgrmEvY57ymWmAeUbL3/fbl7f9M3EvPgU7hytjxj56CsgGC7YghFQZcgYP X-Received: by 10.233.230.13 with SMTP id z13mr8780730qkf.163.1518009083690; Wed, 07 Feb 2018 05:11:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518009083; cv=none; d=google.com; s=arc-20160816; b=hn7yX1trKZcqvUNcClpVzrgwrM4espnrC0LoT3M80GZRvzogCziAsTaQP7+5hOf4rS GjKcHavuWfhJFqw9YzOUf3G8bDbIjR1JpxjLRpFuH/RTLpSjd2yKIFgUYDm/XWGaFPAN zxtURuPjNq7XqHjHQZlT9CroFBIlpJWMPaXVGpx24McX+u6IEEUyq/MZi2Y+n0FnM53B KDMGn1Lga8GfIsgRzJL1odaE4E9eqc/sYIqYFHamV3Ha0hAyfXkBwE0vuTNgqVMVyM5d hBmhpSlkCuq3QSvuZypAVJhKPVgIjknP+QqPjhB/91W+H8COjU9AhOMPKDExMnMb18Jw lQOQ== 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=1DrUjhEzgQv+8q72zPsWMuRLmBPPgyz6pyKKuDAzoT8=; b=puXS6KvNlDKhO7Y/oxMLrDo5mE7Grol6zeWOM0bQ9bKaEXYdaSB4oXAXAo4WwzBMsf 66veSplvH8sqqS2e1/bslYcGOOl2Scf1+dNPSmO+wp2fenooCc+vmY0tb4dg7TCXMy4U syj68QHU/W9SrDOch7b/XUWbP+VFeJ93Yll7Yz4h/XsUpKfuPAOlhF++S7CG1hhHvqUe zX/qCD5B4lW3GWsqMk14QdywRBGeXTfUZkIW5+cAQY+uoOhf8r7r+vMIJdxdc6byodzi 9aLmkLidjPmMMNsqUd9iC5Xu7U0U+IzsdTuRqfUE58EsdjLvTkZkCKTJE6g4YcQcei49 WTSw== 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 z22si1546727qkg.405.2018.02.07.05.11.23; Wed, 07 Feb 2018 05:11:23 -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 5C21062792; Wed, 7 Feb 2018 13:11:23 +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 773BA6278B; Wed, 7 Feb 2018 13: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 A5B3F616E5; Wed, 7 Feb 2018 13:00:34 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id A19A160D3D for ; Wed, 7 Feb 2018 13:00:17 +0000 (UTC) Received: from mxback8j.mail.yandex.net (mxback8j.mail.yandex.net [IPv6:2a02:6b8:0:1619::111]) by forward106o.mail.yandex.net (Yandex) with ESMTP id F271778351E for ; Wed, 7 Feb 2018 16:00:15 +0300 (MSK) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback8j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id lXVsUFilb4-0FdSX18m; Wed, 07 Feb 2018 16:00:15 +0300 Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 2XfrietnG0-0FZmUnY0; Wed, 07 Feb 2018 16:00:15 +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:05 +0300 Message-Id: <1518008409-31750-11-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 10/14] helper: switch to using odp_packet_l4_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_l4_type_set() instead of calling odp_packet_has_*_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 292eb2d6d..97cce38c0 100644 --- a/helper/test/chksum.c +++ b/helper/test/chksum.c @@ -131,7 +131,7 @@ int main(int argc ODPH_UNUSED, char *argv[] ODPH_UNUSED) udp->dst_port = 0; udp->length = odp_cpu_to_be_16(udat_size + ODPH_UDPHDR_LEN); udp->chksum = 0; - odp_packet_has_udp_set(test_packet, 1); + odp_packet_l4_type_set(test_packet, ODP_PROTO_L4_TYPE_UDP); udp->chksum = odph_ipv4_udp_chksum(test_packet); if (udp->chksum == 0)