From patchwork Wed Feb 7 11:00:00 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: 127152 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp360956ljc; Wed, 7 Feb 2018 03:08:59 -0800 (PST) X-Google-Smtp-Source: AH8x226RhNphsTuRq3X6/FIGRuAdzjOL+4lP+vrLqjNFcUBKmcd8kF1rzRmQEnqDemRb8lsBaaS1 X-Received: by 10.55.150.71 with SMTP id y68mr8602500qkd.74.1518001739632; Wed, 07 Feb 2018 03:08:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518001739; cv=none; d=google.com; s=arc-20160816; b=RuUKCNPznwnWrxHlbszqzCtWtZz8vEWnIyJF2YcqAvHk0+SOK9ct1IXe1q1Y13da1T vmIK3FAIdzhf646T82PSwkD5jVdF57uwF6NDL59t8kBpDAPcfdLbJd4HehoNdyw4109o ntsUTL49pyWOmzR1ntcUl+BE9v2mrhwgX/hIRn0V+Eu2kDM4pTLK0mNMPEYZ4XObBqg4 lf0SzxREc1344DV8+NxdB54pCwoccvLnFwg6i6lzGq2jdRyTEcu8K/t2ENLF7sP8KsWf IlqcC51MNTbrCf6FTZe5CjSRB/okJAwXW8LD63XXVTFYVVjopxg+Erosg+ItYzdDCt9P z3LQ== 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=UFzQB7EiGxqjs7379YeFYHPocjSfp72It+BB6vGk+0E=; b=1CjTQW0MPDfYgV5z6BXdYzOhObjlf2XM5RhXRelyUOXFn3q5gWjfJluztCf8qIynz8 +X+QLh9LQAs6ElJy4DrxU/jzIzLJtCmUxz0hD8cRtmQ68rkBkFnrYlY0pV3nPtKCArPV g7GV4VnPHh3O29qnDPyDglVgqPfAHwNZLgxfiNZFo4En50keSarTefLSofh7dTZjoh68 +7UTvyklMLxzPPZ+1y1K39T/RE4PFd51rFjFgPx21PxzksXgz1gtqXa6PZLfsf1mOWwX oja4G61Yk1iOgn5kEw0PHaK93xmWwwJbTXMxyv2FDBYjBL5vfem+Tj7swG5sEFct0fLG 6YwA== 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 u18si1266565qke.325.2018.02.07.03.08.59; Wed, 07 Feb 2018 03:08:59 -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 4EDF661809; Wed, 7 Feb 2018 11:08:59 +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 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 4A64861817; Wed, 7 Feb 2018 11:03:25 +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 2A76361810; Wed, 7 Feb 2018 11:03:14 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id BCF4B6097D for ; Wed, 7 Feb 2018 11:01:40 +0000 (UTC) Received: from mxback10j.mail.yandex.net (mxback10j.mail.yandex.net [IPv6:2a02:6b8:0:1619::113]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 290C05105BAB for ; Wed, 7 Feb 2018 14:01:14 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback10j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ZpqO1FTPXY-1EBOmsmE; Wed, 07 Feb 2018 14:01:14 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id LVw23zZMqp-17VG28U6; Wed, 07 Feb 2018 14:01:07 +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 14:00:00 +0300 Message-Id: <1518001208-29529-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518001208-29529-1-git-send-email-odpbot@yandex.ru> References: <1518001208-29529-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 457 Subject: [lng-odp] [PATCH API-NEXT v1 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: 802ddfc5ea6f47a8935993bf6f8c1675a4c94930 **/ 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;