Message ID | 1518008409-31750-10-git-send-email-odpbot@yandex.ru |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp451626ljc; Wed, 7 Feb 2018 05:05:07 -0800 (PST) X-Google-Smtp-Source: AH8x2257KKKABiySrANccGHAcJtaenZLnSj1gFkx3m+yNzbYCobNEYfv18t7fFoTwOsKcTmRgxaZ X-Received: by 10.200.67.30 with SMTP id z30mr9590453qtm.197.1518008707400; Wed, 07 Feb 2018 05:05:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518008707; cv=none; d=google.com; s=arc-20160816; b=gEZ097jKg+M3dlAihchcM9gSSM5L34s3iXzEECFQFAbxxVeaI/8Ui6jjI3oz8Gj1tn mWJOPsOnB23P3M4FonDZm+4k+na3Fm6yR1Rajtt6S+7CJCz289l5DEJ0xyZX0z2ItZOe 6yRSiQwAnW38ZR6ZStaBMtjNZP8z5xch/aF1ERXJdKfCjCRqRjDypcJaL4NlRjD9i3n4 9Tov2JYp7o7+HYFyr5aTtuaQkiYgoHOhkDAAfcgdGdSqlLhKy9cM8XxScGnRIsLp1SuB CV9iAJTlgrk6jj4HCYlcELnQ77OANsWISh/C6isT70Fg74/C1Xw74mHssnwjPxXL1h5s RsDA== 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=7PTNEA2oYQI5h8eQcHM4hUZqwWLXnXgZzlbc0Y3gB5Y=; b=mCGQleMsIKaKRS4rzwVVplkiQREtsPKxnQY9eIY1bLaMk5EpJ0LMg5D6gxYgRHQwCz IRb8uxsYzEVn4HoSaJ3/992eSxbMAyaAmpSqimjL2VZkCTdSQ7tTjbG6Qf8VWVVQOqor Q2H3YChRKpSpkgHNtVvaFrlY7lGBuBhdTIkOfxZI4qpHuLyV4wZvePzQobEvfuy0W8kL YlnUzCtotb3XyTvQX2gYHe4WnU46QRLuZeL1oqSEXgSjvUh36wIw3DoT3dsDnaymBZyl 2FRnnEbdn7+kCkJghWh32WzhhBvgUrEB2FLkbbPXAeoTfJ6POmdXcYe8s+0B8W86QuKi e/UQ== 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: <lng-odp-bounces@lists.linaro.org> 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 t49si1415328qta.461.2018.02.07.05.05.07; Wed, 07 Feb 2018 05:05:07 -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 06FF8627E0; Wed, 7 Feb 2018 13:05:07 +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 CE22E61768; Wed, 7 Feb 2018 13:00:56 +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 99B2A61519; Wed, 7 Feb 2018 13:00:30 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by lists.linaro.org (Postfix) with ESMTPS id 7B22361698 for <lng-odp@lists.linaro.org>; Wed, 7 Feb 2018 13:00:16 +0000 (UTC) Received: from mxback10g.mail.yandex.net (mxback10g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:171]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 6930B5605662 for <lng-odp@lists.linaro.org>; 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 mxback10g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 4R4D6WjDhc-0Fp0Kj4h; Wed, 07 Feb 2018 16:00:15 +0300 Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 2XfrietnG0-0FZOJAJF; 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 <odpbot@yandex.ru> To: lng-odp@lists.linaro.org Date: Wed, 7 Feb 2018 16:00:04 +0300 Message-Id: <1518008409-31750-10-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 9/14] example: 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" <lng-odp.lists.linaro.org> List-Unsubscribe: <https://lists.linaro.org/mailman/options/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=unsubscribe> List-Archive: <http://lists.linaro.org/pipermail/lng-odp/> List-Post: <mailto:lng-odp@lists.linaro.org> List-Help: <mailto:lng-odp-request@lists.linaro.org?subject=help> List-Subscribe: <https://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" <lng-odp-bounces@lists.linaro.org> |
Series |
[API-NEXT,v3,1/14] linux-gen: packet: implement packet l3/l4 proto types
|
expand
|
diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index c34457643..3d61e025f 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -338,7 +338,7 @@ static odp_packet_t setup_udp_pkt_ref(odp_pool_t pool, /* udp */ odp_packet_l4_offset_set(pkt, ODPH_ETHHDR_LEN + ODPH_IPV4HDR_LEN); - odp_packet_has_udp_set(pkt, 1); + odp_packet_l4_type_set(pkt, ODP_PROTO_L4_TYPE_UDP); udp = (odph_udphdr_t *)(buf + ODPH_ETHHDR_LEN + ODPH_IPV4HDR_LEN); udp->src_port = odp_cpu_to_be_16(args->appl.srcport); udp->dst_port = odp_cpu_to_be_16(args->appl.dstport);