From patchwork Wed Jun 10 15:00:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 49706 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0068D20C81 for ; Wed, 10 Jun 2015 15:01:31 +0000 (UTC) Received: by labby2 with SMTP id by2sf3290891lab.1 for ; Wed, 10 Jun 2015 08:01:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=P9AUEAzOBTeC8elT3frccEzITKM3GqvYKkUuIQtgswU=; b=nJ0CBFc3FvrAzeiWmwZntWUtWLamPDCSMJaskDmOTt0aQnpBiIe4Abt+hEoZtekxFa 0pc5mfw/k/K6z7A5lYDFo99l1pvxk9LXs0B1aQZI09KGaB6oZcSTlO4xA/mVlUW/nnuO 7Y2qlb0kHA/4v+8yuG458gR8zR9aWRcme/427ZsyoZ8vTYNBSjNLeym8goOIaZHprW4E jlUu8fsVE+GlWqIslAdh9W61I359CRWv1xSzpaTQoeQ5LYRDFK7q23eJt33HgILTTZuG bKaMxZzSt4TZdosO2CzCeqcAVifnqxUjlhgqqrjghGk5hxSjEmOFjKHpUFHo+m0ZCnSL HC6w== X-Gm-Message-State: ALoCoQlj/vKExcEFYbVd6gMhp8saJXybMVDZNGu0vufZWgWmoi9Y8cZaEn+h+YykFzu3/y29mAew X-Received: by 10.112.28.111 with SMTP id a15mr3339479lbh.21.1433948489986; Wed, 10 Jun 2015 08:01:29 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.178.164 with SMTP id cz4ls261775lac.3.gmail; Wed, 10 Jun 2015 08:01:29 -0700 (PDT) X-Received: by 10.112.155.103 with SMTP id vv7mr4454479lbb.75.1433948489837; Wed, 10 Jun 2015 08:01:29 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id db3si9228986lad.150.2015.06.10.08.01.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jun 2015 08:01:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by laew7 with SMTP id w7so35075778lae.1 for ; Wed, 10 Jun 2015 08:01:29 -0700 (PDT) X-Received: by 10.112.155.197 with SMTP id vy5mr4480760lbb.29.1433948489734; Wed, 10 Jun 2015 08:01:29 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp3391302lbb; Wed, 10 Jun 2015 08:01:28 -0700 (PDT) X-Received: by 10.55.17.21 with SMTP id b21mr7302413qkh.27.1433948485814; Wed, 10 Jun 2015 08:01:25 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id j62si8906634qga.33.2015.06.10.08.01.24; Wed, 10 Jun 2015 08:01:25 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 781C461F0A; Wed, 10 Jun 2015 15:01:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 395DC61F1D; Wed, 10 Jun 2015 15:01:21 +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 BF7EB61F0A; Wed, 10 Jun 2015 15:01:14 +0000 (UTC) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by lists.linaro.org (Postfix) with ESMTPS id 2D28961D0F for ; Wed, 10 Jun 2015 15:01:10 +0000 (UTC) Received: by wigg3 with SMTP id g3so51550243wig.1 for ; Wed, 10 Jun 2015 08:01:09 -0700 (PDT) X-Received: by 10.194.200.42 with SMTP id jp10mr6925389wjc.66.1433948469149; Wed, 10 Jun 2015 08:01:09 -0700 (PDT) Received: from e106441.cambridge.arm.com ([2001:41d0:a:3cb4::1]) by mx.google.com with ESMTPSA id ej5sm14942308wjd.22.2015.06.10.08.01.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Jun 2015 08:01:08 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Wed, 10 Jun 2015 16:00:53 +0100 Message-Id: <1433948453-32641-1-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 X-Topics: patch Subject: [lng-odp] [PATCH] validation: pktio: don't use reserved UDP port 0 X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stuart.haslam@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 The test generates UDP packets with the src and dest port numbers set to 0, which is a reserved port so may lead some to the packets being dropped and the test failing. Change to use some other arbitrary port numbers. Signed-off-by: Stuart Haslam --- This is a fix for; https://bugs.linaro.org/show_bug.cgi?id=1632 test/validation/odp_pktio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/validation/odp_pktio.c b/test/validation/odp_pktio.c index e1025d6..495222f 100644 --- a/test/validation/odp_pktio.c +++ b/test/validation/odp_pktio.c @@ -168,8 +168,8 @@ static uint32_t pktio_init_packet(odp_packet_t pkt) /* UDP */ odp_packet_l4_offset_set(pkt, ODPH_ETHHDR_LEN + ODPH_IPV4HDR_LEN); udp = (odph_udphdr_t *)(buf + ODPH_ETHHDR_LEN + ODPH_IPV4HDR_LEN); - udp->src_port = odp_cpu_to_be_16(0); - udp->dst_port = odp_cpu_to_be_16(0); + udp->src_port = odp_cpu_to_be_16(12049); + udp->dst_port = odp_cpu_to_be_16(12050); udp->length = odp_cpu_to_be_16(pkt_len - ODPH_ETHHDR_LEN - ODPH_IPV4HDR_LEN); udp->chksum = 0;