Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2408928rwo; Thu, 3 Aug 2023 08:59:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlGGL2MBz7GLz5MJ7SpsfXjdVWGaGeGvGgvAgd4TPzPyX52RpB41hinA1VlDRvsOzESYKsel X-Received: by 2002:a17:906:2250:b0:993:e695:b589 with SMTP id 16-20020a170906225000b00993e695b589mr7701668ejr.20.1691078396865; Thu, 03 Aug 2023 08:59:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691078396; cv=pass; d=google.com; s=arc-20160816; b=Y2Lw2FYCsBvz07rZ5mVRSsn5VsqlaJwAcXHQpek/8uckpUgE1+0RSejkfIfKDOOqAB Cz2NnbL2T8rR2hhnQ00aG/vJijsBJXs6KbDItqp5HCkXZ56Lt9i01y2s1176CadiryQm j42sO8JG1FK6V4mGRdr+dWw/lag8AcwEhI/77b7fmQhVxv8RIH0usfgxVRaqtDlrLrbn Vnz9qqpaNpd1CAF8A4OoRf4R2b2uyQSYSjm9Idim9VTdlFihdeILJb7FeLHmHn7vkOq4 +b/fkkQM/mjMbNADj2ufsZZEIdwGSTRAYXTJauAqKn0UCvspVZzMLcoYmYtdZwb9m7uY bGPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=72pLYVvOoK2A7yxoQyZewqFT7D9McTTKJVdwvBF9hPw=; fh=6tvdHwz26mhghHdCjb4XNlgFI6eyy2VqWnOPdxbPmnU=; b=MtshgWM1FUg9bmjkgXptZKOlqYVS7fykTcaQhw1itr1SJ71d/megII87eAL4I77ucl 8hnpXVC8WkQzNbudNybTniiiYoiZgn8JWe7T8SJlsnvqZ5PTsbtIYidjben7XzaJ2iQZ wd4lcqPvUQcvyt9FSRsAkIDaLfTZq8MzYCTKyU/C/BGPLxTrX6TlXs3rADulRP/Kt4dY dDH6tNjYJNRgNBgRs2lO0uOOlgZ5/niSX/howd4BTkfRYae1TvZPfiiz9AGC3Bg8ZTOg sv7qQtu/UB/dNCF1twG+DzJ1K+XUU+5VOUEI4RqblbYX3apmC2hY3HpMfS4xgSOK13z+ hs6A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=DfZU7C2y; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020a170906940b00b0099bbed21b65si622ejx.1014.2023.08.03.08.59.31; Thu, 03 Aug 2023 08:59:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=DfZU7C2y; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236800AbjHCOeo (ORCPT + 99 others); Thu, 3 Aug 2023 10:34:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236787AbjHCOe2 (ORCPT ); Thu, 3 Aug 2023 10:34:28 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2057.outbound.protection.outlook.com [40.107.15.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB3EB1BF6; Thu, 3 Aug 2023 07:33:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ofOwaLJ+7ay3q4nAd0kzlD5Ltkozk2YRFR4y3E1Wwklt13Ov81k+xEInEoNm5XyLxu1GkpmNIbR+HtkPdodjvaouvDajQ+VglVfk0iHU8GLeZpKFwBbjMQxp7atokw9WCFzNDBl9uSknVSOYeZQtZvKJZ4Wq7+0t5zx6uHU27HzLVySwLaDpr0bx0beyZCiLHAH2tXxecGF0HxKpZZWq0bNeZGOkYD0S0QWGwq7vVwosgdmIm8Z4RyGRe1dfNRY31nI5KqrwikC9rXeviFjvUXdkgR7YE7nBe1ZaKfk0ZDLecOxv9y2piCFJiua/jJh6xHzh+nVel/fzFAY0zT7j0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=72pLYVvOoK2A7yxoQyZewqFT7D9McTTKJVdwvBF9hPw=; b=RrnILN8ytsVskOF6aIKWnJFsJCFKbiVSSzQLkFvJeVVUWm7le6uekD9noHSfyb8GwzPZyFWtrNbrIUcs8bkLub0Qrs0ykopiwFZ3Ziik3ugBep0+3TkkGp3t8asDNOKonEMRGPcBY5jDo+4wN5P2/6ffpRBH/qnEvt44k10QTmw4GeMD0le5gtiQ7220dpIUwrm1rXDN3QAG76b7A+GeqAUacWnXT/HN2UnRevratIZ0W7O2IvWve3YbTZSBWTluN5J8h124DgpDdYCleXPLRImBYTydv+jezgEnag3CFTM4NGR1K5OIEAlA7O6UXErw6u0HSKA8gLg0eYPm/6M6rg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=72pLYVvOoK2A7yxoQyZewqFT7D9McTTKJVdwvBF9hPw=; b=DfZU7C2ygoI72E4LniOOjnLLARUIPTwzzbO0pDY3nBUMD5lJusmUTF/bcMA5bAPNMPBcvYVCO+CCCp3ShUgnuZFyvHYYILE/AyFsO4qT+npA4VsMBJxIqTh7Hqv8GQojnsDeWKf1dVcWBI4oQjr6Y/WcOPpo4yNP4O/OlQEE7DU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) by DBBPR04MB7995.eurprd04.prod.outlook.com (2603:10a6:10:1e5::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.47; Thu, 3 Aug 2023 14:33:52 +0000 Received: from AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::6074:afac:3fae:6194]) by AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::6074:afac:3fae:6194%4]) with mapi id 15.20.6631.046; Thu, 3 Aug 2023 14:33:52 +0000 Date: Thu, 3 Aug 2023 17:33:47 +0300 From: Vladimir Oltean To: Vinicius Costa Gomes Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jamal Hadi Salim , Cong Wang , Jiri Pirko , linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, Muhammad Husaini Zulkifli , Peilin Ye , Pedro Tammela , Richard Cochran , Zhengchao Shao , Maxim Georgiev Subject: Re: [PATCH v3 net-next 09/10] selftests/tc-testing: test that taprio can only be attached as root Message-ID: <20230803143347.7hhn27hzjymdvvw6@skbuf> References: <20230801182421.1997560-1-vladimir.oltean@nxp.com> <20230801182421.1997560-10-vladimir.oltean@nxp.com> <87pm4510r0.fsf@intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87pm4510r0.fsf@intel.com> X-ClientProxiedBy: AS4PR09CA0024.eurprd09.prod.outlook.com (2603:10a6:20b:5d4::12) To AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6452:EE_|DBBPR04MB7995:EE_ X-MS-Office365-Filtering-Correlation-Id: 461f5ff7-a0b4-40a8-30f5-08db942ea86e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E5C/nmAZc9O3kMTWoxdeUj519LgaSNRNLIJwkgRn+Vvva3LRqNPbch1T8lxP7KFjDoYs1M4WDoACfu9K2luPGOteNGOCIuXvmdOD1dOFXfbi8Po3PaMP9LpwmEeULltr+Gpyu2LYo9Hik2LmEuDKLWNhe2bgEAwCv3s1PoihQnCtimeCF/+lyKuR39GGb2G76j4FnjjsVP8IDM9oc26xmjMZUZD2MAJfKrLshYh9oddUCC/1Z5/MiY333ZbvseLgNaMK359YKIVq1cWn+6+682DGTu2ys3tsY5+z/RBRd3ngpaJCOA0oCgUC78ZvSFLWTVixY+8iXd6XD0y0ZC4/bCrFo4idU+GdhTdmHTXPeAozGv7fFVnSWh/tGYvTCSk8r6EmrT1cUVvDyVycApswPsqhcApgnBcATkakwwmDMPz0Tx5Cd0YMr6bc+2Za2WZazRD7ApDWTGf/81mJQ8VWThlwx/YjqlA0YMIQc0i7FHY1yrJRGh9AQWn09iTAhpd924IeuHWRFXfG6RNlRHR1HHR49LpVmH3GuDzwimrs7ikwgyQQcSpia3CfOVr2kFi9 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB6452.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(7916004)(39860400002)(366004)(136003)(346002)(376002)(396003)(451199021)(7416002)(44832011)(5660300002)(8936002)(8676002)(41300700001)(66556008)(66946007)(6916009)(66476007)(4326008)(316002)(2906002)(33716001)(54906003)(6486002)(6666004)(9686003)(6512007)(478600001)(83380400001)(86362001)(38100700002)(26005)(1076003)(6506007)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?fBo2/9i06RqPl6appxR4OlstDaJap+/j6yjWDvKE71DeAQ3lIFsHt5FPKWNX?= =?us-ascii?Q?3b18JIiQXCWSnfcrm7k6QBECoLlVAGQKFyHMU8DGNIIPQF94DRV5IznmJxhs?= =?us-ascii?Q?mDE444qCowwkjIFXw2y988cEy5dtSv+DTvsgFYzmqHVRC0OTZK5g4DrtTwNh?= =?us-ascii?Q?9YV/5niqfdhnIUDWIUwpbKbJuU4E3zlJUQfrFNQUqFgIgIHNhe+DGqt3BKxZ?= =?us-ascii?Q?CWO8lQ4yU8seaDpzzjMhcRednYY01fyQ7+2nztfw74Y29KVQ6XEK8f7Lc0Q2?= =?us-ascii?Q?QBqLH8NRMwmKIYccy5geTGqsuWLqBSCCVLmCWsOW2DHHN+Ooer0UPcyuyWx8?= =?us-ascii?Q?RURUCnrY6PCMrYCaYAldFVqyCTxqEmGuZCpbCm6ryr1jr186I/u4OasyIYAR?= =?us-ascii?Q?ZeMza4Sk91Jmn1egy4VP+YA7T8b9/ykKBu1Ahs5sBIOIMJ1SlHVtgpU7wxO9?= =?us-ascii?Q?YY1jVsm9EBC8QHZZhlkdHYu5xULQQlsU0TQxQ+R4JOgLXqIn6NkeqUMJdcM7?= =?us-ascii?Q?eBlU9OHg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Ve2lF6aRI1v0oo?= =?us-ascii?Q?zW/oDneLhLswqHlBdczCUeDLxtV2oFZNK1lRT/gMQo5DIEaGUDCQVZUyJtJk?= =?us-ascii?Q?KnCukGyI/C1iGHzzeZF+jG6T8id637cC8N0VsIY8Qipoc5+pgNyf47WVDlNJ?= =?us-ascii?Q?+YqedCMNXlpRwyXsmo5/iP2LPKiuokpqKsWDlVWhMX+zCRlmIUKyq6rBbI9E?= =?us-ascii?Q?Vw=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 461f5ff7-a0b4-40a8-30f5-08db942ea86e X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB6452.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2023 14:33:52.0753 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 71juRvI85b863rO5OXkrDXGq6yi5k2/oCt3UEFk8ET6vN7Llcx4SpXQH/kOBOItPez5C0MYHrxKMe/VybapIYg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7995 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vinicius, On Wed, Aug 02, 2023 at 04:29:55PM -0700, Vinicius Costa Gomes wrote: > Vladimir Oltean writes: > This test is somehow flaky (all others are fine), 1 in ~4 times, it fails. > > Taking a look at the test I couldn't quickly find out the reason for the > flakyness. > > Here's the verbose output of one of the failures: > > vcgomes@otc-cfl-clr-30 ~/src/net-next/tools/testing/selftests/tc-testing $ sudo ./tdc.py -e 39b4 -v > All test results: > > 1..1 > not ok 1 39b4 - Reject grafting taprio as child qdisc of software taprio > Could not match regex pattern. Verify command output: > parse error: Objects must consist of key:value pairs at line 1, column 334 Interesting. I'm not seeing this, and I re-ran it a few times. The error message seems to come from jq, as if it's not able to parse something. Sorry, I only have caveman debugging techniques. Could you remove the pipe into jq and rerun a few times, see what it prints when it fails? diff --git a/tools/testing/selftests/tc-testing/tc-tests/qdiscs/taprio.json b/tools/testing/selftests/tc-testing/tc-tests/qdiscs/taprio.json index de51408544e2..bb6be1f78e31 100644 --- a/tools/testing/selftests/tc-testing/tc-tests/qdiscs/taprio.json +++ b/tools/testing/selftests/tc-testing/tc-tests/qdiscs/taprio.json @@ -148,8 +148,8 @@ ], "cmdUnderTest": "$TC qdisc replace dev $ETH parent 8001:7 taprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 base-time 200 sched-entry S ff 20000000 clockid CLOCK_TAI", "expExitCode": "2", - "verifyCmd": "$TC -j qdisc show dev $ETH root | jq '.[].options.base_time'", - "matchPattern": "0", + "verifyCmd": "$TC -j qdisc show dev $ETH root", + "matchPattern": "\\[{\"kind\":\"taprio\",\"handle\":\"8001:\",\"root\":true,\"refcnt\":9,\"options\":{\"tc\":0,\"map\":\\[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0\\],\"queues\":\\[\\],\"clockid\":\"TAI\",\"base_time\":0,\"cycle_time\":20000000,\"cycle_time_extension\":0,\"schedule\":\\[{\"index\":0,\"cmd\":\"S\",\"gatemask\":\"0xff\",\"interval\":20000000}\\],\"max-sdu\":\\[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0\\],\"fp\":\\[\"E\",\"E\",\"E\",\"E\",\"E\",\"E\",\"E\",\"E\",\"E\",\"E\",\"E\",\"E\",\"E\",\"E\",\"E\",\"E\"\\]}}\\]", "matchCount": "1", "teardown": [ "$TC qdisc del dev $ETH root",