Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp95872rwn; Wed, 14 Sep 2022 16:43:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR50leK1BgmzQdXFQ0Ans08gUPSlqaK4cqK+hoanaJCbcBvVTQf7MZlxidKKwo/GCLO6qzGt X-Received: by 2002:a17:907:1df1:b0:77a:a670:d807 with SMTP id og49-20020a1709071df100b0077aa670d807mr17491705ejc.163.1663198997858; Wed, 14 Sep 2022 16:43:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663198997; cv=pass; d=google.com; s=arc-20160816; b=Gh2oF0OsqpX86jS8yQKaymwBB0T44wnfNb/Hwl5MIqrz47RJh1c6faBOe5wJSjr809 1GbVpPYlDhvuB+Zzj1nhUoFQ3EKWftWIwHjGDuicSY2dQt5IO81r5VIPtHz/xlDppLyY HdcCiGNgwm+V7ePyticoQr29s5tkNw8P7kjMUeiNSJTPpOMc1WDLeEJ/vwzM0FBGqm4H Ap4hc5pUiPowF3EEnsaG9o78IEu8aBHYYxJfi6MvZ+VXpSQk0KxOd+lpgl9HN7zJ7Lat PbIt+diSAv9AlbdTPS0j4SEhB3bcIeToSBdWWuhw/w7u/Nl2AMpXubaJnb3rXbDsj91p pzug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=TEEnJ6HNmRky2CwyBept2oiRHqNMlkOu+IsEVxObGOE=; b=HaQcKDLNbYkUpKJkou9L9LGttWRCJFMjmUzGtYlYTf6RxYOm3Agakh+wRziUitVWZA 8HNyzSwbVjS9+4uduGytnzY7QyghBcT8ECCtl6cz2OvVepAT8ZQi4SY63Jn7oWvdh8Cw D8E+sRgDkHUGt8vvPzsW6MnhJsCGuh/EvNKN9yX5IbfptFTYzkKZxYUsnxGC2ab0fYDY biNOgn0uRFAdhigd/zXoBIYFSDIqHQccTl3dG/zBG4fHxupwzf6IKzfrrpoSzVT72+V2 yMkkI+7ShO+y3cjb8IiRPAP7ZD7oqs8q/wzF5h8VRDZTHTQXg2ZRfysOLdDOEzGWZn25 IkGQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Gg/Bt29H"; 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 gs16-20020a1709072d1000b0077c393f05e8si9269193ejc.750.2022.09.14.16.42.49; Wed, 14 Sep 2022 16:43:17 -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="Gg/Bt29H"; 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 S229936AbiINXDy (ORCPT + 99 others); Wed, 14 Sep 2022 19:03:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbiINXDk (ORCPT ); Wed, 14 Sep 2022 19:03:40 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2043.outbound.protection.outlook.com [40.107.21.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6C8986FF7; Wed, 14 Sep 2022 16:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WkYEcrfAy0C8mJXY1BB+CDuH7pKJ6h5HhIaRYftWi13SQ4IX4Hxze3l4RUYJIPElI0FNU2oY1pqa6Ujj54ut/GLEXlMG2JQMsPhyXKf0yj2DrSrTtvAKxDK/vX/SsK9g1WotP+fI2gVlKCnBuIRH0SQr9JPNfuSu0iQLc457CoCHeCM6LJJ2O8xMcAtdsdppipI7zQtfwCAhp3ZTnNEt3Kyulyp0xh9a/u8SeT7+4ebAQVeIdW0TS/L+Ort7bLkeFqqluJJX9R1jHzlebelKs+LiVh87G6MaJ1LhVHtbh//R8k7K0kUH/EzFkUeYCI0Vp0rDLlrSRVE8Iheeem9tbQ== 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=TEEnJ6HNmRky2CwyBept2oiRHqNMlkOu+IsEVxObGOE=; b=fzP3wIsS/hf3bP4xdUzU4LZvItJvmLNpA3SyJNDoZtBlnSUDTQHH0y/TCqLYIyvgHe/fu+YwIlgYDTHuYCxwax9Zm2P0bBA2w5BQkGHY3ePnVjlea6C1/m7+HTUx/ujVx0TBCWDx9s4a8vGGSiv2MG2a6FRN7Wu3uxUbFB9345YnARoIN5giq8fajo9Wuxx3r2s3ieepqq8WV/kzEemIw0tz8jSz8Fo4v54ZWjvhJl5LfXs+erLhaD0twKig3gOvwe/QfewwqV563sDYGeJi9/CQdJ9vLzlKaugLAWaYQDfT7hebeBeaYq0s2AIfXal86oDK8zf5BJydEHSuElyBMQ== 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=TEEnJ6HNmRky2CwyBept2oiRHqNMlkOu+IsEVxObGOE=; b=Gg/Bt29HAXag31QrjBeUmbLnKaa3D4eB0bWtJbrLBd9RgWAcc5aTMLCyNTTaOSfKMVd/sJrQuVkjTidrJBWC9sj7QouhBEpZj3ggyTHsgF3/J1eN3NbZNMpmgJbcwrcaCX51iB0nDVEEpce86rnQ1cOs2yzgDuz8UcbNTcgb3H0= Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by AS4PR04MB9435.eurprd04.prod.outlook.com (2603:10a6:20b:4eb::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Wed, 14 Sep 2022 23:03:36 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::a67a:849c:aeff:cad1]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::a67a:849c:aeff:cad1%7]) with mapi id 15.20.5612.022; Wed, 14 Sep 2022 23:03:36 +0000 From: Vladimir Oltean To: Vinicius Costa Gomes 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 Thread-Topic: [PATCH net-next 04/13] net/sched: taprio: allow user input of per-tc max SDU Thread-Index: AQHYyE9ZfT5bo6uCkEmd6s08JFlY763fdU4AgAAHuwCAAA3PgIAAAPiA Date: Wed, 14 Sep 2022 23:03:35 +0000 Message-ID: <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> In-Reply-To: <871qsdimtk.fsf@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: VI1PR04MB5136:EE_|AS4PR04MB9435:EE_ x-ms-office365-filtering-correlation-id: b7dd0e74-faec-4aa4-cd9c-08da96a55a83 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0BVGsLdAZbpqF5qypSri4Jug9S26Qm8icWRM8I4ot5Mg+UqWQBedEkOQLNlV1wEdqznKQNTWfsra3Chuq4weBAB/S8MVVfHSEaXLtjhiZWOIemifWdQWvpc8OsTGCAn3fyop1T5iqv2pPvRsel/IZRhubEZE2lr41LlQFpgY7lQdmGb4YiFoqWBludWLl0jDisGXj4KPtrx3A3CL7jJl/LurZK9ewz8Y+JWWngOyupqJLD5KrCPXY/RIUNAo522golkFCdsGT4K/XHwwY3vqAYJEqA31q8CV82jxQUfqcEvrR7MwciTA0aAEV5NBgZ4Sq9dARvoSQJYlBynVoFxqUZD4g7HiNqiMndtBxQnoGOjK2NLAYYhSo5f8I3KpjTbtLQalP8LbWawnrhlTCyBXxmg32N2X2lRat1fK/qbMxTBSVbohJtt9Bhawey7PdXJ4PS96Nn2jjmHZlJM+Yoyx4OnsRC2pCfm9bFKCGlSt+M2c13h+qTVH+6vX2TJkjygWkud+e0Z/iyGMompYUPlZbvNwjXL3CCJ7XupmggeGabv7Fo6+0l5fqc96WeWKgh/ANE3lAkqYwlRo0mBIutfwA7XpYeGE6K5h42YM58SeRyQtymMoJKcT53gy4udAwrc1iDZ3tJuEHw5MI5JyQcts0h/xRi7cHw/uPhX0BevW6sleBQiq2ZbY3na/7oUoww3o7j8Q4i4dCjBQI0+YzzZZS9jfD5w3wOUKrOv437kRhOWS4kLf66e1CIfwxA0Mmp8+oEfR3OaFTv4RPDVe31H0NqrOWKnGx2NxvIExMVnLGtc= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5136.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(7916004)(136003)(366004)(346002)(396003)(39860400002)(376002)(451199015)(4744005)(478600001)(5660300002)(8676002)(33716001)(8936002)(66476007)(6486002)(66556008)(76116006)(186003)(26005)(41300700001)(66446008)(6506007)(44832011)(1076003)(64756008)(54906003)(83380400001)(71200400001)(38100700002)(9686003)(38070700005)(7416002)(4326008)(86362001)(2906002)(66946007)(122000001)(966005)(91956017)(316002)(6916009)(6512007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?11HsqE4lfR1AWruTUK0d01VWSe+SGRd6ZBVtZ3y+pO0h0TgjVk8+ZUihi0EG?= =?us-ascii?Q?d5u20t6SdJzqibA5qOBofIohfBMQWqJqNDracHBShN48Tvwj86eyWKhP0dmw?= =?us-ascii?Q?lXXEVYpvcZeG2h5LD5AB9JYGM5skaJJNZsEo+JSrqEaBA46PEVXkjV92koNj?= =?us-ascii?Q?hl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?us-ascii?Q?82v9t68WenwhMLoxG3bKmpHrU/0vYCWVB0W9gqoccKqaXn1bySpFOKzLwcml?= =?us-ascii?Q?Cf3wQb6OND/ACo9v+r5q4niNzDg4Ea8Qn6bSVwIHzeNMhgnePPK9U6IVJ/Pz?= =?us-ascii?Q?zX/QrLvQWv2T3VF2dQYYvH1lXoos5au9GKS2eQhVEmXK57LL6NUjWMrGQwHU?= =?us-ascii?Q?FbpOhAABb/2UiKedMqrLBBzgSSxyuim8QTYWqcNsPGdXVB4+U55SOL9LsNWn?= =?us-ascii?Q?Po1DZxkJ9OHp8WwKt4UNCPe634+wCXpP+lJPaDaFUGm8pZKVKD5i8ApSwfjc?= =?us-ascii?Q?dnsgfYAY9xWl3NBQk5IdHEdZPHPJVf9ys4LCHfHo7y/mz0TCm0amiMfnYW52?= =?us-ascii?Q?IhVIOvcEG8JPrgpwO5baHsmZgE6ncbvY8NIhQzfTt+/6JVwFIp1hHTATClhn?= =?us-ascii?Q?YZ/Tw3a2dqa8pH3xJq5WL1D32wzT2clQVYuiTSDwkyU5xWbjNl/VT1brgwhw?= =?us-ascii?Q?0XxIVC8jhM0Q78nfxWfgxhlwETBscbUQOvjxuzOYjiRAhx8gfbKn26OdX9SL?= =?us-ascii?Q?0A=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-ID: <06BE951E467DC2458BFA512A40152A4D@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b7dd0e74-faec-4aa4-cd9c-08da96a55a83 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Sep 2022 23:03:35.8547 (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: rjmr9zvLP9xAxiXgMf9sEcwg1RSXVwqT+mrow9tP2sFmQ8sN2D4L1fxwk5I2p5BUQPCf2NV17erHs1KJRLqQ3w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9435 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,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 Wed, Sep 14, 2022 at 04:00:07PM -0700, Vinicius Costa Gomes wrote: > Hm, I just noticed something. >=20 > 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. >=20 > 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=