Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2193799rwn; Fri, 16 Sep 2022 07:03:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM67q7N1rJUVx2itRRYTtFNAetoVRtAg4T+IzhSlPRbTzYcu2gqKuze+pgB24ogRn/E+SHTN X-Received: by 2002:aa7:c6c4:0:b0:44e:dfc0:224e with SMTP id b4-20020aa7c6c4000000b0044edfc0224emr4101593eds.115.1663337014741; Fri, 16 Sep 2022 07:03:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663337014; cv=pass; d=google.com; s=arc-20160816; b=RHTm+rrgruUf/y6VfI3N/nhXqTIHCIhvYqpphGrCBCRHsv+Ifr19NPu9q44mOBgA/c K3GulI+rVcPTlDwCMQOzV3uJb/qc+fX8a2UTXNflOhjpeB25Xh4BK9Fr3FTtI0gJ7Rgx 18JAF0cq/V5Vm1kgg7v5CXcyRp3SfUex7g3SYT+AE5MHQ4layxSPQYBPmrQPElLw0/fF dACtpZd5LI9sqs3fuH0+TDWvkdJL1LJGAI1NAfhpN4AYL4BKoBOFaXr4egojKSfS0hp+ PnR2kAXzVrJycEGx5aND0GyxlZt1aqiHDjBfhZy6JpXdQj3fHjhtZja55+qy/PrMXitt 6kfQ== 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=rykyvqF97/AxahbHLyenzrfRxQjWGPy81HRLEdCrN9U=; b=M9jqy7H66Z3o3179aUFbSx59/seA/G6jdgiJbTFOVKfLeXvAoKsF+w1ktmgQ8jjCIa WnisNeU5l/9T8SO4tPYe0f3hzs5RRjTwdQBgmY+yvb0xmx7e2Qi6Wsof71dX7s3WkKmK ifRwITyGizqr1O9s3QtenlpESleLGGr5joKhQ0MSeZukjMK6tj1i8diyZdo2f3az+Nr8 kF+U1+DsJSu1/jRzQvxOdPlpAKJ/GSZFUzf0rJgvKW3Ovz8GVZ7fpAEYQW4CXsMry3ZM erOhUZU/xpzZGlV6Da65n8uvciShrrD7/EkgEHXvmakisNDJQ8yy2S67EZlmxu32UgA8 VGGg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=sVjC41ix; 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 n14-20020a05640204ce00b004475c9ad046si1720120edw.620.2022.09.16.07.03.05; Fri, 16 Sep 2022 07:03:34 -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=sVjC41ix; 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 S231569AbiIPN6T (ORCPT + 99 others); Fri, 16 Sep 2022 09:58:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231461AbiIPN57 (ORCPT ); Fri, 16 Sep 2022 09:57:59 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70071.outbound.protection.outlook.com [40.107.7.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B081A61D1; Fri, 16 Sep 2022 06:57:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hWPo1AGnZzLGW1QYUD041M7+7bbFCj3x9qadwTeJYclvJ3T8EHNLXi28Yr3XX2GKxox+iKhrASCkE+rYbJNTyB7dZOMW38CbkF6fHD2NIZXZRtJtSpK1hZY+IG8Ft2QtnfahyrxISM2odg8oJJR5cdJ8py6Zrp+QQwt14jbBKXlLqBBMu+WkRFAwZUJeZmqbzRu7M8UaV5T18mAf3Cmg4IXl073Kt1IZzXU7XFjG1S9Nsb6k4eiuHvbf1qWTfLn4jDoh63Ro3Ib7RGDhuRA0uF2+ppb1uk41bZO+g4AGjCFxZ3BwfDB2NB62YNCC7DvCx5L2xxnhVBhbNlyMN0UfYQ== 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=rykyvqF97/AxahbHLyenzrfRxQjWGPy81HRLEdCrN9U=; b=EcUeshgVfo3D/VOsCzDc5oeYvJWlye8itqRevU5J+trDGYjU7CrT9NbHP4zxg3XBvMtk1DSf+9NZJPkaZdHxVe0AM7gVgMlau6mAbQFAWIVf//qIRhkW3NejH/6Ln0DNU2m11IpD+8puJT2JOBTnoCFpvZlXu+gO76jQp4Kn1ZqZqxxtQmWSSdbP2oNKiQ/Fe2ksKPNHJd94l8DJk/w9HbUgWesdyQcw5d+PPc89h+Ue9DdDbX9t57nitkzrJd7SPZOVfS3rsK9/KnPh3sW8U0lbHcIh3wcJqt84WyZw8qsLWDvyoUHOIKEKzV9ZKCq0413uXO4RFcxeTPNj2CoKzQ== 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=rykyvqF97/AxahbHLyenzrfRxQjWGPy81HRLEdCrN9U=; b=sVjC41ixNuBN5yrncGUhSD+im1wDHK2+scTDixRVsnQ4rIMR6mvVrTfEcVanDaPMKsWIcgOi+VkBFsGfdqCptm9wWZred/OXgMnwY25qbzs947KkMmfY2yzFKhor4HPHGpKJqfZBSfq5PSf6daDG83A6uB7Ao/aGWvUwfe3vKD0= Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by PR3PR04MB7449.eurprd04.prod.outlook.com (2603:10a6:102:86::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.16; Fri, 16 Sep 2022 13:57:53 +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.5632.016; Fri, 16 Sep 2022 13:57:53 +0000 From: Vladimir Oltean To: Gerhard Engleder 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 , Vinicius Costa Gomes , 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 , Grygorii Strashko , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net-next 10/13] tsnep: deny tc-taprio changes to per-tc max SDU Thread-Topic: [PATCH net-next 10/13] tsnep: deny tc-taprio changes to per-tc max SDU Thread-Index: AQHYyE9kpcxLYCJ3dk68mHHPDBjrxq3g2nSAgAE9jQA= Date: Fri, 16 Sep 2022 13:57:53 +0000 Message-ID: <20220916135752.abmpagmyjt4gnolk@skbuf> References: <20220914153303.1792444-1-vladimir.oltean@nxp.com> <20220914153303.1792444-11-vladimir.oltean@nxp.com> In-Reply-To: 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_|PR3PR04MB7449:EE_ x-ms-office365-filtering-correlation-id: 182933e4-55ec-4916-0676-08da97eb7381 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VhXjGnTK6fJx9Utk4/ArMMARfQR2oKuRLzJSB2QG+GpMaMr0AgS1TBeWbVxI5zu/ceGcBX2CYZsrOvhIOzHHIyhRy5MtUllMJbRO7WdDxlttU/3EgU1jniAvJq8mpmabD2JDtX3MzH/uF8h+r2oKQIRM6FsAAnhISNJbFjH7BO4Em5pPdIyXA/maiDyVajqX4y8jLUTN6Aeu04BhZp1rA3vj802PQwRbwe89vMWjTS0SKNWzsc8Ab7fkS1ua5DbBq64IBv/qRVfNr/ABV0p75sDqOzb7WG+C0Btk+iyeAEp7Z9kYZmELcyoel3A+Y+rTs2v4X7HBFlFtKdeYTmQIgFfogcoHiIl9QUbgaOrzxeLmurWVCSRbXaqDUYH/0TOtauc/X3lrY8AnwCTqCZVjTLXATACF8KLeEPkC3obMEexW3xttyVa7A+OCn5llmtO98hnK9ORxCenWgmXcWKGf2KCFIppoFSy2tKhDkhXaBlNaMehvjT/ZeVji+1VqI1pPiC4hhmrRui02i+X49qgbGb2FZVVq7lFsq4biBs18tBxZvcQzi0ZkDlA/HRURLXEui8WggXsfViQYnHHNy1xAYq9OMTOKVWgArVdIt4bS8S9B7MP/WA1BfT9XYqqcFp5JRdFy2qmJgC35RKP4PLavbhTWQ3BEypvD8ryw86T4vxMe459mBZitKE1O45Y3wO6TNI6ByQszRLkrYqYOsr0GFVShHZ1dd8bBWD63m6Qt3W1cEPU+pWgPuYY3QQ+kH/anq+ZOsjKM75zK0ovIoz/0qQ== 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)(346002)(376002)(39860400002)(366004)(136003)(396003)(451199015)(478600001)(66476007)(6486002)(64756008)(71200400001)(66946007)(91956017)(76116006)(66556008)(41300700001)(4326008)(6916009)(6506007)(86362001)(8676002)(38070700005)(8936002)(26005)(122000001)(6512007)(7416002)(66446008)(33716001)(38100700002)(54906003)(9686003)(186003)(1076003)(5660300002)(316002)(44832011)(2906002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?WNyZ292iFjO5imWRqrC2dUY+C005ZzXbZw5nb1Ib81BMSZX0N1VWxXNvLpHv?= =?us-ascii?Q?JedMW4D+5dcrDxxW4SI/jEL9QOFe8XPMriJFLX1tkHfvuCkMXxfC+BABQYKL?= =?us-ascii?Q?g/PV+EelBQp3fXanQGoIe2WNY2CTSsItJmOAX/M1ZbRPM78yiZ9Jy+Y5zd+Q?= =?us-ascii?Q?/ViqfJlv4+OBSMcR+YpFdNPxmXZnGV3HpZu/wMtJR+7PrK13b/h+ftthwNZ+?= =?us-ascii?Q?2oS/910452MsL0nEXgTqqLFZr0WYGhdN9ENzQbvSJV+ZwrzTmPk21fCpTidU?= =?us-asc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2fRfpw8JvoN68Jh2/0og?= =?us-ascii?Q?3keF5FdxMKLCUnjDu0+4ll6Xi+anQIWSVmG0zDZqKT9YVYZ68mrCcU5SAgqz?= =?us-ascii?Q?AN2Ie/CfJMtvamd+ZfFrrw7ekg/VsI7SoseciO/AVMFTiaWLIwhFLD9+6xrg?= =?us-ascii?Q?xWay7HZ7jZYHZ9xR49VF0Jqjx+UJwA8u/jXmeTMLNa6lXFThLOchkrIvTy5P?= =?us-ascii?Q?45Pe4O/DpPdTc5hZkDOkzkBLcDDSyFeCDPPYid6NXUwwWyFet7bmPjroHNt+?= =?us-ascii?Q?EDle8pxlNswdJlORrKOrCByfO3EGUbZ+vHVQ3U+46fZajtsDLEFkLQfO9y7p?= =?us-ascii?Q?5NiPubWHt4fOKGgipQIFTZ4FJS3A1M412dm9SCMPO11j+szKxpC4WH5NWU1P?= =?us-ascii?Q?6g7ZyCxi7faTyRIoOQehGGpk+pCNrUBSvsg/QuBDErATN+U+OeM5kpumgvm6?= =?us-ascii?Q?TQ=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-ID: <886C1A575B7E6E4284D9BE0EFB332782@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: 182933e4-55ec-4916-0676-08da97eb7381 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Sep 2022 13:57:53.6822 (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: ipQUN9kslDLLEDU72/UUUlaffXVt9kNcDd3w9t9dO+NP0t5Mevt5Lm+FKf+8X5XIuTWoc/s0FTCg2KiCHTDn1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7449 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, Sep 15, 2022 at 09:01:19PM +0200, Gerhard Engleder wrote: > Does it make any difference if the MAC already guarantees that too > long frames, which would violate the next taprio interval, will not > be transmitted? This is not, in essence, about gate overruns, but about transmitting packets larger than X bytes for a traffic class. It also becomes about overruns and guard bands to avoid them, only in relation to certain hardware implementations. But it could also be useful for reducing latency in a given time slot with mixed traffic classes where you don't have frame preemption. > MACs are able to do that, switches not. Switches could in principle be able to do that too, but just in store and forward mode (not cut-through). > The user could be informed, that the MAC is considering the length of the > frames by accepting any max_sdu value lower than the MTU of the netdev. By accepting any max_sdu lower than the MTU of the netdev, I would expect that the observable behavior is that the netdev will not send any frame for this traffic class that is larger than max_sdu. But if you accept the config as valid and not act on it, this will not be enforced by anyone. This is because of the way in which the taprio qdisc works in full offload mode.=