Message ID | 1518001208-29529-10-git-send-email-odpbot@yandex.ru |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp362153ljc; Wed, 7 Feb 2018 03:10:31 -0800 (PST) X-Google-Smtp-Source: AH8x226+55tdOoTqeKKYhk2E8cF6lA6kVxD3/NMKcigeQuwnKz9CYw13W33A0WPbWwVUQ5OX3Lci X-Received: by 10.55.5.17 with SMTP id 17mr8310083qkf.277.1518001831627; Wed, 07 Feb 2018 03:10:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518001831; cv=none; d=google.com; s=arc-20160816; b=Lhbx+rtcKkj32qzZlet42Q3JWuAUd1wRuX6gbmB0dwrEBR0YMFlyHS6ze/FyN0Bt/O v6sejKnlOct0HUa5EWaemzvF6arg99fBkIP+mQb7vdLomTOoEKi83bSO/hKkILcqeKK5 VcSpTlS634Uvh6x5DZBLISvONkER2i+v06rm/gkn92WdOdd/wrpDooe78G3yPLYQy30z 6pUlM/5NxFdgTAEt1/4umXcob4oBFBCcB0QffNc/oQNpSi7YCwGDTwLNvKir0a5SMCwZ lRd34VHqjtP+OVj0XIyTfsk81s5S8fEubRJuSCeLHppmwsTSnd/+TlNoSxiTu+0jj0TG kBAw== 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=SrfrD4hXE5XNPIcwFHNPjR+siATWPnELaCFFB2vUsVg=; b=ar53CsFrGPfZOZtFhV55h8cJZrGzS2icyW1AvwNSJDBs8quTk6230S5Z1m/zTjcbzc HPPQgaUaizELXA6gkdGPgnYQNZa8cYTk+6u3Erll1WGG26Pwk7Q6psdl2JpttKIPSPiD bDxVGY0RloMSqVK3jPlVaIt/mLgiFeB5XXRc1PRA6s3vVtkab2ywq25tMuZLKH5Vqm90 SX36XWv7dp/tblp1j7EXubJvbjGShmFOaOb+jDs3XCqFop2i3OM/Q1Ah9i818thGDEvm JSa+ueWTGV5Ac+gUhMDL75v8cnUxiP57AzvbfoMn27/adMBkLbbro/krZNeH2GJSSP4K x6qg== 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 39si482578qtm.311.2018.02.07.03.10.30; Wed, 07 Feb 2018 03:10:31 -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 8C976617AA; Wed, 7 Feb 2018 11:10:30 +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 F2BCE62792; Wed, 7 Feb 2018 11:03:34 +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 867D461806; Wed, 7 Feb 2018 11:03:17 +0000 (UTC) Received: from forward102o.mail.yandex.net (forward102o.mail.yandex.net [37.140.190.182]) by lists.linaro.org (Postfix) with ESMTPS id 2B2C9616FC for <lng-odp@lists.linaro.org>; Wed, 7 Feb 2018 11:01:55 +0000 (UTC) Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10b]) by forward102o.mail.yandex.net (Yandex) with ESMTP id DA01E5A053B9 for <lng-odp@lists.linaro.org>; Wed, 7 Feb 2018 14:01:33 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 4ROjaQMTSs-1XDG48Vq; Wed, 07 Feb 2018 14:01:33 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id LVw23zZMqp-1RVGKhm7; Wed, 07 Feb 2018 14:01:27 +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 14:00:03 +0300 Message-Id: <1518001208-29529-10-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 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,v1,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);