Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp99739rwn; Wed, 14 Sep 2022 16:48:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6bZa2x2aO8SJoJINn1RGJ2NFqqLHvlKKbwzE5sB1a0xoM78gSQ7JkqvrUtdhNf5oOPZxq0 X-Received: by 2002:a17:90a:ce82:b0:200:aca2:5a19 with SMTP id g2-20020a17090ace8200b00200aca25a19mr7525000pju.156.1663199315927; Wed, 14 Sep 2022 16:48:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663199315; cv=none; d=google.com; s=arc-20160816; b=r+x5FtNi7f3rdbfCdt4VooE3ni2HUgR7YfcOIy4/TZH+CaMVpQ5kGb0Fr5sK5JoV9w ffQJAeXlJbuf/+7oFWbQ/3kHL91w9+CEz4jDf3fMBRPq89UbdwXNjr24tr1ywqYd4Nrf xhc9mDGYzE/JTT+zE1NE+rsOEjwzHvWQntLXbzsSG/+vmau8iovaGdng+2Ws0Bn/g0hi ZmdqRlt9RlBC3asaHefAp/O2ZLmazRXp0WoeqpooWsmf7/OS9rNnbzLfP+oV5+BBZj07 lbEQbWs/ksSo+tJ81K2Ttp+qe90aY3iF/inuki8oR/nlsDwi7ooRIzlOwJBkRiHlTSva s2hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=59xlLkqJw1uxWIXf7FsDbv5bEJq3b6gdMSegV/sDQ9w=; b=A2xp4mZngRWGZ4f/021lZlD5h6+UgV0X3Fr1HSjqw450C5EQ+Wbv9Sb7vi42j/Gdbg pfWRu8fCQARdWG5h64NPVv6My2WpeJoCFCj/QIsxzcqUfOORCS5ZdammOREy4B1m1mHK TH1y2qCEJjGfbk1iotj5YDRG7rPRZU4YirshvFkbzA8i3mKixxsKGdF8JaONYtCgP4u/ ernTpCR4cxVuuGWI2eKdh/kujdmXOG/bLcojo0xRUrbvxHrdXoETby44X0rH350gRg0N kH557gzTbl2ARR+e+sxf6dul7LwUdBf8dNrBGazKVEkxeUkVc3GrZuQ05PxCR+cWhzAl T//Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eutH8J40; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z4-20020a170902ccc400b00174bad9b62esi17612143ple.393.2022.09.14.16.48.23; Wed, 14 Sep 2022 16:48:35 -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=@intel.com header.s=Intel header.b=eutH8J40; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229929AbiINXRT (ORCPT + 99 others); Wed, 14 Sep 2022 19:17:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbiINXRR (ORCPT ); Wed, 14 Sep 2022 19:17:17 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07BDF816BC; Wed, 14 Sep 2022 16:17:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663197437; x=1694733437; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=Qiox5wufUKovIQD2LwljILtoHEckzqBMuDeL94CnBYs=; b=eutH8J40ctUU+bVBFrZrRUo/z14Bz6uFNLUsH1P6mSBLOe//l5P9yxRh E9FRAIqjl7M7QqwbuEuNL69J/GT/nSYAgJuKwk1C3l3YG8zrY02FSSRKN ziMB/kQQ74YXsRRhNNsxe3hwTcWFvdQvzoiIVPIZHartCorDUjjWhkdVQ /MvAxpbm4RasqZz3HoBKjCxIwsag27irjvwrgqd9q3ZP4wg49EhNKzyCM F32R0fe8s0Qtoi51WANvictIY0pFTcxN/oSgdfIbUJUFsAwm0GfnzT/EN XbvSEvM0BbbsrNyJEHi3VkhF6CnnHGwRNWdMWhfl/nP2Kyw9AwQvMNVGC w==; X-IronPort-AV: E=McAfee;i="6500,9779,10470"; a="299922687" X-IronPort-AV: E=Sophos;i="5.93,316,1654585200"; d="scan'208";a="299922687" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2022 16:17:16 -0700 X-IronPort-AV: E=Sophos;i="5.93,316,1654585200"; d="scan'208";a="594581982" Received: from vcostago-desk1.jf.intel.com (HELO vcostago-desk1) ([10.54.70.10]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2022 16:17:16 -0700 From: Vinicius Costa Gomes To: Vladimir Oltean Cc: "netdev@vger.kernel.org" , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Xiaoliang Yang , Rui Sousa , Claudiu Manoil , Alexandre Belloni , "UNGLinuxDriver@microchip.com" , Andrew Lunn , Vivien Didelot , Florian Fainelli , Michael Walle , Maxim Kochetkov , Colin Foster , Richie Pearn , Kurt Kanzenbach , Vladimir Oltean , Jesse Brandeburg , Tony Nguyen , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Jamal Hadi Salim , Cong Wang , Jiri Pirko , Gerhard Engleder , Grygorii Strashko , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net-next 04/13] net/sched: taprio: allow user input of per-tc max SDU In-Reply-To: <20220914230335.lioxtjxbjiyd7ds4@skbuf> References: <20220914153303.1792444-1-vladimir.oltean@nxp.com> <20220914153303.1792444-5-vladimir.oltean@nxp.com> <87k065iqe1.fsf@intel.com> <20220914221042.oenxhxacgt2xsb2k@skbuf> <871qsdimtk.fsf@intel.com> <20220914230335.lioxtjxbjiyd7ds4@skbuf> Date: Wed, 14 Sep 2022 16:17:16 -0700 Message-ID: <87illph7gj.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Vladimir Oltean writes: > On Wed, Sep 14, 2022 at 04:00:07PM -0700, Vinicius Costa Gomes wrote: >> Hm, I just noticed something. >> >> During parse the user only sets the max-sdu for the traffic classes she >> is interested on. During dump you are showing all of them, the unset >> ones will be shown as zero, that seems a bit confusing, which could mean >> that you would have to add some checks anyway. >> >> For the offload side, you could just document that U32_MAX means unset. > > Yes, choosing '0' rather than other value, to mean 'default to port MTU' > was intentional. It is also in line with what other places, like the > YANG models, expect to see: > https://github.com/YangModels/yang/blob/main/standard/ieee/draft/802.1/Qcw/ieee802-dot1q-sched.yang#L128 Oh, I see. My bad. So, only that comment about thinking about making the comparison simpler is still valid. Cheers, -- Vinicius