Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1412323pxb; Fri, 21 Jan 2022 18:04:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyy3OlEgNB7h4FjHo46/I0qK7gncm9n/LAhdkH11vPNFxcS7lN12frNiiscj5OBCrKe2fcX X-Received: by 2002:a17:902:e808:b0:14b:18a:acc7 with SMTP id u8-20020a170902e80800b0014b018aacc7mr6251382plg.124.1642817088074; Fri, 21 Jan 2022 18:04:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642817088; cv=none; d=google.com; s=arc-20160816; b=aCOH9AGopB5glZ2Wau5EIBbhG4fHpuOBmpd25vxUWN3Lg9taZTo7PMzA687njFyxwQ 9x1P4f4JmUMtriaKpVqc2HbA62l/8f3wIxWHihDWacJuxJ3vWIZcfCUIs8iX4sNk6GAD dxeuvm5GAWvUJbqfAjMNcT9setURnSzcOuJF8kTgvVR9eBX9KhR5efsmT28t+jXkXPhT lAHN1UqCEgc3ieAEv6r4kCMAipZsiXoe9DGQYbGTFuG6N1mvnLrzFh8eMIZfsPThWNHK lmW/pZupWbKnQ0NW1UiGVpCndULIyoGRcTNdLy9yY2qW2IEWQ6cqYMeQjZ/ODWcFDgYd 49wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=uMUn33AjoBSgP0OMagGEKSsNaHK41vbeEd+My58eauk=; b=EpBo/BI0yQLprf/ww8Dmb7gn9dkCW4o1/OlBaNJ8PjRdMyUQgr+aTGz67VY1ldRame Pm0CMpqU7pxJ+amgbU4BCWDoCr3t44F3xDqe39/p2p38XbliLS5fqlaAv6AnCXvM+/UG 5YSF5OzgLRSgTLd2id63JTmtCG237d6zWqqSMF+0igTnkJQAR8/LpVrlsIiKFAFTJSVh P7dBMRaagQYhkwEDuGYfxDWee3ndO2C0ua7nesboX5y3DITPG+PGdzNeJ5rII2UfKQBk ToQWmxGQJTgSEElivbHnOsFfS7Vt7B85ZKn48Jooqo32jYItskwSW1Aw+agY4oLxDCfU OizA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@uliege.be header.s=ulg20190529 header.b=kBJCgUtV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=uliege.be Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rm4si7737093pjb.11.2022.01.21.18.04.36; Fri, 21 Jan 2022 18:04:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@uliege.be header.s=ulg20190529 header.b=kBJCgUtV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=uliege.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231423AbiAURnY (ORCPT + 99 others); Fri, 21 Jan 2022 12:43:24 -0500 Received: from serv108.segi.ulg.ac.be ([139.165.32.111]:34074 "EHLO serv108.segi.ulg.ac.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381624AbiAURmj (ORCPT ); Fri, 21 Jan 2022 12:42:39 -0500 X-Greylist: delayed 435 seconds by postgrey-1.27 at vger.kernel.org; Fri, 21 Jan 2022 12:42:38 EST Received: from localhost.localdomain (148.24-240-81.adsl-dyn.isp.belgacom.be [81.240.24.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by serv108.segi.ulg.ac.be (Postfix) with ESMTPSA id 1D9EC2012377; Fri, 21 Jan 2022 18:35:20 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 serv108.segi.ulg.ac.be 1D9EC2012377 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uliege.be; s=ulg20190529; t=1642786520; bh=uMUn33AjoBSgP0OMagGEKSsNaHK41vbeEd+My58eauk=; h=From:To:Cc:Subject:Date:From; b=kBJCgUtViokDP5yHFs4oRUq48O3m600acX2x1StbubR84yHum2Sg9aDKv7fTVqV9B 05QNhd/JGwgLHPYm9jPd7+R3UPc6ETg6g58tHoUD/jI8Tq8q+IfGx/oJFdoYVAlttq oe3cYUFNVe95Njz+eh/E343hazVV5R2nH+juVltD1J4i+9diyHGwKbmj8IHbQ1TDSs 5RjLFfUzZgInKUdcLrZZLzgy0p3MqeY5gt2WeiCy7SGZ/7rfpBsQZjhej+Fuu+6utE QsUUCQ8914/0XApgeUFLsTFvVVFCs5DaZlQ3hNrfz3YwT3AyedAn2lFNZYWeRxrLVL 4OSkGr7Kjptzg== From: Justin Iurman To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, shuah@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, oliver.sang@intel.com, idosch@nvidia.com, lkp@lists.01.org, lkp@intel.com, justin.iurman@uliege.be Subject: [PATCH net] selftests: net: ioam: Fixes b63c5478e9 Date: Fri, 21 Jan 2022 18:34:49 +0100 Message-Id: <20220121173449.26918-1-justin.iurman@uliege.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The IOAM queue-depth data field was added a few weeks ago, but the test unit was not updated accordingly. Here is the fix, thanks for the report. Reported-by: kernel test robot Signed-off-by: Justin Iurman --- tools/testing/selftests/net/ioam6_parser.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/testing/selftests/net/ioam6_parser.c b/tools/testing/selftests/net/ioam6_parser.c index 8f6997d35816..d9d1d4190126 100644 --- a/tools/testing/selftests/net/ioam6_parser.c +++ b/tools/testing/selftests/net/ioam6_parser.c @@ -240,11 +240,8 @@ static int check_ioam6_data(__u8 **p, struct ioam6_trace_hdr *ioam6h, *p += sizeof(__u32); } - if (ioam6h->type.bit6) { - if (__be32_to_cpu(*((__u32 *)*p)) != 0xffffffff) - return 1; + if (ioam6h->type.bit6) *p += sizeof(__u32); - } if (ioam6h->type.bit7) { if (__be32_to_cpu(*((__u32 *)*p)) != 0xffffffff) -- 2.25.1