Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3469896rwb; Mon, 7 Aug 2023 14:12:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9h1/MIOb2hOtzK4pgokIUSQNH07RoQ1wxOXkm5BmxxIKdjSVwaIICI/BQ+n743bZ0uAvU X-Received: by 2002:a05:6808:144d:b0:3a7:366f:3b01 with SMTP id x13-20020a056808144d00b003a7366f3b01mr13123664oiv.33.1691442772132; Mon, 07 Aug 2023 14:12:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691442772; cv=pass; d=google.com; s=arc-20160816; b=049FgXNl7thWB5Mh9um5Dv8ltqjX34VNX1jw7D4PN3WTGYBpHMK+rFCE6RfEXE08X6 Qkya9lAn1r8rC2V4/5mq011J+sughePaV/edurTisrnEhZsJKl/yqwrbGb1i3qgo+4+b qQbX6A5Zfdze7l5QbYm5snZ7HW3YE+HjwYxu38VoknRpA8fUTL5aXO3+b6mNjeYvFrC4 jP3/5dN08lE83dHXrLkkVEi/YL9zU42q5pAohP48K5cDKNq8TSiPrr1SJRn1txl5izab j+KH0/Oh8LKJQUCH+bF5x/qd/SVrCe47fwyIEwkuWWH2qt+1Kz3IICRiqproA6FhsizW yheA== 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=2Dqf4HRgcux3PzTjNBlftMebs/+ELRfef7a/FQIiPXA=; fh=6tvdHwz26mhghHdCjb4XNlgFI6eyy2VqWnOPdxbPmnU=; b=EJm2peKZeJ5ztq31V3tb2Bee+NsDKkWj9I+1oCGUL8f/PbY03aiUtSUJEoiklfATW/ o9PGn6WKop8Qf6CIkgLk3lqDS2xqgVhhzQfc8nYF3wsILKIljcZLFnmqjElzzIgly/63 bXj2bFyJzOKru1JkktYd9kgRIuhcaPqmhnLaHLQFXY/Ta7Wn/GlyZDTaZamWQpA7YVcj M0ymSZjG1Zv3MM+6efQfpKHsKuNdua2kxN4iHleSRne3RXIdXBRN3xpntAdcAFpnRAJc R/+l93IMfgoddC4eu+UpDJSBFyliKFQhln7G81cyfPEzINO9bzwK7MUw64Mz/DtaDrOR fMAA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=d18JwfkR; 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 c29-20020a631c5d000000b0054ff717395dsi6077409pgm.691.2023.08.07.14.12.38; Mon, 07 Aug 2023 14:12:52 -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=d18JwfkR; 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 S229459AbjHGTGT (ORCPT + 99 others); Mon, 7 Aug 2023 15:06:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231290AbjHGTGO (ORCPT ); Mon, 7 Aug 2023 15:06:14 -0400 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2056.outbound.protection.outlook.com [40.107.249.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1CBD1989; Mon, 7 Aug 2023 12:06:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GuR0uVSM5T1b1U3aXxPMK1fk/SryiuQKJxtoUy9jlqBLLvmVdcbIoFRFH1oLA8dsQyrVrKLbH9RBQDuja7UouNvpFCz+mArozcViLyIfqrMHkk05Q9K1K34X6KMXEtBXZHXLoonxO7NTLJJbueNVQ4tVu09CCEYUvQrm6/yr+LMZLRtYs16J14E4NZa8tfKXRODjrnM3LeQ9WoXoHdrHFRsDwH+tEGwXk7SFXCYlV/SZ9AWNjmzSzJgcBX/LNLd/nZp2q2xyakcPzHPgw8NYUKLSTYIYOtitKs8TIgjtpljZPHjtiDiFrJIAMqTpy6tQQmB23Wnd1HmvS2kfoO4KyQ== 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=2Dqf4HRgcux3PzTjNBlftMebs/+ELRfef7a/FQIiPXA=; b=QaV3jUeUctxMAgvVowrT3vfj23KmTNNdt9npO4Jh62lOQeTgioRaEWuxzV6eYt5jv5nfYZxV5Vqmjk4r8z3T8AfSLz0LEsxkYD3ARFcF1cBd5hJdlPfNo08xmbdsQuSztV5sh035WyL2/zR5xG5yxivwt/hXw1V+MTYY5wnITMwuv9v6rsIdRwzUUaiuDwSwxqmIllKpxYNGstWIei752tF2m98tVzcLK28Iu8NBEx17ihpE5R8plCFWLZRKnG6KxbF9y9qdHliI6pT5ps2Rdr/e8VoqaHKrzxSmZ2R4HCPnJ0fkMR3JHJcMmoLAy5gcAEvOCmzogRO0ZLLcAYECFQ== 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=2Dqf4HRgcux3PzTjNBlftMebs/+ELRfef7a/FQIiPXA=; b=d18JwfkRWux7vmSpD6i3o74TEGsZz1ZKbWi5vR/JKxRwjeON2be9lMAKqumHhL6W+hfe/IPVpWZTu3hH0dXAY9rRV3ajIermz7MoAePz+9xbkZEfdBsTCEIuy8h6PUL485j0gLyiRqp/v8Xkvfn/XiRb9i21tEgo0qrl4YNUArA= 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 AM8PR04MB7396.eurprd04.prod.outlook.com (2603:10a6:20b:1da::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.26; Mon, 7 Aug 2023 19:06:07 +0000 Received: from AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::d4ed:20a0:8c0a:d9cf]) by AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::d4ed:20a0:8c0a:d9cf%6]) with mapi id 15.20.6652.026; Mon, 7 Aug 2023 19:06:07 +0000 Date: Mon, 7 Aug 2023 22:06:02 +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: <20230807190602.pvforrful3zmqiv6@skbuf> References: <20230801182421.1997560-1-vladimir.oltean@nxp.com> <20230801182421.1997560-10-vladimir.oltean@nxp.com> <87pm4510r0.fsf@intel.com> <20230803143347.7hhn27hzjymdvvw6@skbuf> <87il9w0xx7.fsf@intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87il9w0xx7.fsf@intel.com> X-ClientProxiedBy: AM8P190CA0015.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:219::20) To AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6452:EE_|AM8PR04MB7396:EE_ X-MS-Office365-Filtering-Correlation-Id: d0d10adc-35bd-4d3f-dac9-08db97795ab6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TTxda9wZJZZKaxIEsrPVRJIHlqzJPVgymQ7w4N/MKs8X5tgSJEd4WDUo00ILsTaJFEV5wa8z86Jc6g1JPLuPUhOywa1bOlhWnKWBEXQ7rIEVgWRhGEUgWUMObvTjXLDc+NHBjFOALmIgYBx7IuiZ54Xf7QxvAAAP/eCsDC5c/H3/cemDsVvY+9tdQXkuPQKTOXOURxXQA2KjbdYX9wJ4Pvlgz/vOLM8M+ayzbAjL3BeJQ2i2MNbjoEqLNS8ALLSXIc6wVBJdDpVnFSDuStFjHSlJqhGVr/MVn2crG3L0li8eIw/UNIbuKMdUscSmCH2WvGpn6zhLFC7wFNxIwZRqMNukompx7cSlC6wOnFADaJ/Q4p2pu9DDEV8adIZsQ4EYxXRPK08GJnCWSBwAgKpoYmcHppxo2J8EWwZF0AYLyGjhDHs7NHI65VoTU5CTuuKXa0VeULvIDCzSOeXn0h1Vn1S5rAfJ8NjQkGH/XNNBj4+gqFpodHPTxUa2dGblOV/opKBu3pz55VCuDpdGnEhTH0sIjlpTDkJxA413LaB7Lzg= 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)(136003)(366004)(346002)(39860400002)(396003)(376002)(186006)(1800799003)(451199021)(83380400001)(4326008)(38100700002)(6916009)(2906002)(5660300002)(316002)(7416002)(8676002)(44832011)(8936002)(41300700001)(66946007)(66476007)(66556008)(6512007)(33716001)(478600001)(86362001)(966005)(9686003)(6666004)(54906003)(6486002)(6506007)(26005)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?8Cbl3zqOpLkHkCiFKJht0+CUxdzTgUYGdLJ1gOCVRyE7fLdw2384kCF0fxxT?= =?us-ascii?Q?VvMtweN+UEDUfJB7p6Pj4Eq+SZtIMc/qKGry/RgyadnQhblp86YbRWT0b3XN?= =?us-ascii?Q?IXwfZykjsEydpNGvf2LFPHTf554Gyu2AzZs2FMSTpQChz3J5PbZkFjtkmgIJ?= =?us-ascii?Q?OjEP3w6x4FwjKWHYJ7WTiKig8bqiAO2XF7pZIBCKn9RAuJK6iyswkpPHE/Ho?= =?us-ascii?Q?TlHTKX/VfyJOKfWJF1YxBPVu3sjwCejFa+RlXCOC4hCBoypuK/R/6vMfStK/?= =?us-ascii?Q?Ubq1Q2dJFrHJWyjSeip9LLeSQ60xRnCKE5vhdwWa5Hb95YBaEm6Trts91BgP?= =?us-ascii?Q?W8T8urp5o33sp4xmC3/ypY/KNWsU0pr9vQ3TZYLKatkZObz5PZ6bYGcSDl9G?= =?us-ascii?Q?tggxWj6++2AQTP6UCoOftfRs9Lg+Serd+hjUTEW1h/fuRC8VcPTGZbQAjkry?= =?us-ascii?Q?p2iawHROzZ238zI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g55IQmFKyAQpK?= =?us-ascii?Q?Wv/3fBS2o+Yz59AnigN0M76W81np4dGrdINRLKRbyjPomUUj7jN0Xo4NUs4i?= =?us-ascii?Q?9D0eRdmLBdR3He4vpATwNFsyBGKyNM7WACC26nULFuhw+lmrGVYM+06LIhXX?= =?us-ascii?Q?lw2sTl1axi85K+4ZvGdmKaGjhBil9+wuNkYeffHkbyjpja20nl4BFpKU9ohx?= =?us-ascii?Q?3o0kpqb8J2Tl1+b6WNKeCp6tB0T1le/cy2CFjYZLK8QoSLu4O3BXUH7ot/CG?= =?us-ascii?Q?Cg=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0d10adc-35bd-4d3f-dac9-08db97795ab6 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB6452.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2023 19:06:07.5559 (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: UxLMcfKO+LV0siMlf34QPscrjanUEjKsKFCSZsd1zZRbYNdoBIXcgCu5d9+Vl/bVat0c4UMj07ODQLxE/eu6xg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7396 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_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 On Thu, Aug 03, 2023 at 11:43:16AM -0700, Vinicius Costa Gomes wrote: > Hmmm, I think that this test discovered another bug (perhaps even two). > When it fails here's the json I get (edited for clarity): > > [{"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":0, > "cycle_time_extension":0, > { > "base_time":0, > "cycle_time":20000000, > "cycle_time_extension":0, > "schedule":[{"index":0,"cmd":"S","gatemask":"0xff","interval":20000000}] > }}}] > > Thinking out loud: If I am reading this right, there's no "oper" > schedule, only an "admin" schedule. So the first bug is probably a > taprio bug when deciding if it should create an "open" vs. "admin" > schedule. > > The second bug seems to be in the way that q_taprio in iproute2 > handles the admin schedule, is just an object inside another, which > seems to be invalid. > > Does it make sense? Yes, it makes sense, thanks. I've sent some iproute2 patches that fix the user space issues, and I'll soon send a v4 which takes into consideration the fact that the admin schedule may not become operational right away. https://patchwork.kernel.org/project/netdevbpf/patch/20230807160827.4087483-1-vladimir.oltean@nxp.com/