Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2593766rwo; Thu, 3 Aug 2023 11:42:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlFMjnbYk2Yy+77eJ9+tzWMDomMQudbZO5ivWp1D7vcO//+r8Q+cY12OhO0TflMMqDmBh+B2 X-Received: by 2002:a2e:b710:0:b0:2b9:bcac:7ba6 with SMTP id j16-20020a2eb710000000b002b9bcac7ba6mr7917177ljo.46.1691088141684; Thu, 03 Aug 2023 11:42:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691088141; cv=none; d=google.com; s=arc-20160816; b=P3/BLv/orPKOs22WhE9OozmoFh1d8e8I4Jil6Nb+btTOenkgolmdzOFSYd6ki0+Gb5 E/n4RTOqqgDP4QFtXL94ux1ncBw6ZdZ+3JsEjOO5DUisBD/HPTZXl6Pm3mqhLPcjetbU kN2kqyNYXUA3FWTYSupsCDPA3FHHJjNioEYQyP97Tf6ccX3Mm4rIbkfZt6m3THpr928Q EvFg0vnYM7Y9Kzwb1n6ompP0mzsQj0M4xhTJU5rdqfHIMhU2rHEVsa00dRC+D4BpWbDO AEMoUboHQtx2G32WJr7USDXmn9WLyVWDJIY9BArUsjNmQ0CfJ1a92KaXQan12vHQIUV3 ahVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=lHdWNd7NcxIk3qmFO2a77DMoqeY4hXR/sOoF4ciAHOQ=; fh=xQ/HmDbGFO5hOvPWz/pWtcfnelXQchZbJnUIo8o+ynI=; b=QfJqf6Mc67ErjnyXrf/+DOrCYx4wa9s4fLEuydknvMF77ff1dGtw861SVLoz9Z5xj6 /3fhK/TsCmqP9emYHgSJHDK97LjrYR6ipWigTv939Tc6vWNQkurkrBlnjEYGu/SFzK5Y AXww0KuoPC3dFVJrUAQ11HQOT802qaKQgGl/64nYtFRhIw0Ya9hfXzahERdDWkNuyFmn fx6pqIPnXkLsFOfAt/Get0eoNVmugtK+IL1iNtG4Zw698qv2MixDkifi1/RCDAqYkxsC 2xtk69X98a72bP0Cmv2bSkYlJur753fz7ernAO42m1HTl5Krwb2rsSl1bJYxQrPV0HBD r5WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mojatatu-com.20221208.gappssmtp.com header.s=20221208 header.b="u/1k5qOb"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mb22-20020a170906eb1600b0099315476299si262349ejb.1040.2023.08.03.11.41.55; Thu, 03 Aug 2023 11:42:21 -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=@mojatatu-com.20221208.gappssmtp.com header.s=20221208 header.b="u/1k5qOb"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233513AbjHCRVP (ORCPT + 99 others); Thu, 3 Aug 2023 13:21:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232007AbjHCRVO (ORCPT ); Thu, 3 Aug 2023 13:21:14 -0400 Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 870462D65 for ; Thu, 3 Aug 2023 10:21:13 -0700 (PDT) Received: by mail-oi1-x22f.google.com with SMTP id 5614622812f47-3a3df1ee4a3so751481b6e.3 for ; Thu, 03 Aug 2023 10:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20221208.gappssmtp.com; s=20221208; t=1691083273; x=1691688073; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=lHdWNd7NcxIk3qmFO2a77DMoqeY4hXR/sOoF4ciAHOQ=; b=u/1k5qObBVCl38/3CowQvVgypngd3K1HPJMlDnoQ6QtMtPiP3m3H/2eH+E4S3AG2BU F7A9YcqRvxkoV3qvqyc6RRe7lCWCq5dgrM5jf5mJJioLwHv7VZ+fJN7le2jVVBOl0L14 1zUyZrjKsu5GMwlV/cVvm37GBXQ2Hkj4nPFulaNypdKHHTjqmJkeToq4JeXZ0qe7h6dH JQn6NB1zjbbbTmfMnuLFeCN14X26BxH1JXKNIicrRghk8IpJcr+8xM45xpWWLHfug32m EVLQDkwsHya09x1PU6t1tONJlqE5MArvrfKFLXPi9V8hjHAx/nDGQGMqQfq2zbh7lav/ lDQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691083273; x=1691688073; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lHdWNd7NcxIk3qmFO2a77DMoqeY4hXR/sOoF4ciAHOQ=; b=ijj+mRMfMS7kWM0otEHy/8xfCqU471d1Uy4rOTVH3DlLvHLLFUPhk36ZyAcX+PiBNG V/SKK55WmYwuQ8E94k7KBpih71DJDFJz0fpKeB1htr/ipoxPKkuWypLBPWyn5DeHCWBt b4iRzOV7rrwTcyWuZDuvay4AMhiFdwLuulm06UMcWVcUJENabNsbVQQOqDe5aE/+ardV 1JqjrANjY72u8tSIa8ly1T6htNIntDtawkjJh7FRCZd6RuXcOlMjeCOGe5epUPr+NUpO ccZc+89XjJ7RlrPwzEQ4VSCNqsq+xN34XUicCEZM/1CfzRpCa1JdQN2hNGrP2PEvt61L TWFQ== X-Gm-Message-State: ABy/qLav9wRnzMVRWct563pQ4VreEIPstfT6ipZDw9fL9giXWeKt115L YHfFkm+4UiW2jQxiuLU+ldG/Sg== X-Received: by 2002:a05:6870:d7a6:b0:1b0:e98:163b with SMTP id bd38-20020a056870d7a600b001b00e98163bmr18685097oab.21.1691083272712; Thu, 03 Aug 2023 10:21:12 -0700 (PDT) Received: from ?IPV6:2804:7f1:e2c1:9170:5736:6909:750b:c9a8? ([2804:7f1:e2c1:9170:5736:6909:750b:c9a8]) by smtp.gmail.com with ESMTPSA id v17-20020a056870955100b001bee99e97a9sm185013oal.43.2023.08.03.10.21.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Aug 2023 10:21:12 -0700 (PDT) Message-ID: <918bf9fc-1c8f-a006-560e-b437581c6ec2@mojatatu.com> Date: Thu, 3 Aug 2023 14:21:07 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v3 net-next 09/10] selftests/tc-testing: test that taprio can only be attached as root Content-Language: en-US To: Vladimir Oltean , netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jamal Hadi Salim , Cong Wang , Jiri Pirko , Vinicius Costa Gomes , linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, Muhammad Husaini Zulkifli , Peilin Ye , Pedro Tammela , Richard Cochran , Zhengchao Shao , Maxim Georgiev References: <20230801182421.1997560-1-vladimir.oltean@nxp.com> <20230801182421.1997560-10-vladimir.oltean@nxp.com> From: Victor Nogueira In-Reply-To: <20230801182421.1997560-10-vladimir.oltean@nxp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE, 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 On 01/08/2023 15:24, Vladimir Oltean wrote: > Check that the "Can only be attached as root qdisc" error message from > taprio is effective by attempting to attach it to a class of another > taprio qdisc. That operation should fail. > > In the bug that was squashed by change "net/sched: taprio: try again to > report q->qdiscs[] to qdisc_leaf()", grafting a child taprio to a root > software taprio would be misinterpreted as a change() to the root > taprio. Catch this by looking at whether the base-time of the root > taprio has changed to follow the base-time of the child taprio, > something which should have absolutely never happened assuming correct > semantics. > > Signed-off-by: Vladimir Oltean > Reviewed-by: Pedro Tammela If I understood correctly, these tests depend on CONFIG_PTP_1588_CLOCK_MOCK. If that is the case, you should add it to the tdc config file (tools/testing/selftests/tc-testing/config). cheers, Victor