Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2603977rwn; Fri, 16 Sep 2022 13:02:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM65Vn7UCC4+QruWp7eBm03EQYw/Ewh3sfNV1iMeBZIz6TDE6o4YTZEVlxVz0yN2k+T0CQfs X-Received: by 2002:a05:6402:4402:b0:453:6a9:ef8a with SMTP id y2-20020a056402440200b0045306a9ef8amr5136067eda.85.1663358530783; Fri, 16 Sep 2022 13:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663358530; cv=none; d=google.com; s=arc-20160816; b=GZtSQnFlR/X4se3PCHTRaG2vRmIerQjFkBlalaNTQMKVtQZRvRcy40934iWMG/U2Vs aF7G8sgazcU8uwGTJOGLdf1OP9xJGeUAMn0w5Y/Z5Lf6nTMTGBqi9jzM0C/a9O4fQ9HO t+vwjd2Yvt9g05E2SOPKPdA3Mq0DxsSO1P6acMklOfkrlPZ9NHYIAO7TWRF6UG3X9AdW E41ZXgk356scEvIIBcBOeZFWsc16pOiKIFyD20T0l+nsmxQRj8xwN7eXxyu5nXNp9CYR D64syN6D/koqmucPR84cHhMaHpEtRJeFbmdTJPACHpUMm21gFL447FVzK6F6+i+qqoVS 318g== 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=vFiZ6J6rKleWghPafAo9+rN4nJo/ie0UFtGpkuXvE18=; b=fXkUdY9bbC27e2cBqKF+mnaFpBff+Q2wqC0ySBp0IGNmj/Koz0FXOjslxt+L3pXOj8 +ny3ogrrcu193mntUNROMA9FZFV2NlxwJ4OGYkYcq0jyq57WZPt6sVvfAjvoJrxfk57m PioSyDADgAXgab84hOjpiO9NxjYQEFsnY9iidK5iWnXITcPM117h02DT3NWl0c+LNtz9 PgYmoGsZ17htocIpxLMOhrdl8qEGZ3es+d7tACpd4XmtFdMw3p3j8vLIPh6sJiTqn3e1 H5POUlnCPekBrk2YY4QT1Z3RqpKzgy6EFGrNYqjVPA/cUL7Pw4G3Uj0bcwZkc6kRKB8g Iagg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@engleder-embedded.com header.s=dkim11 header.b=IpiW7HKn; 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 dp18-20020a170906c15200b00780939b2da8si3023962ejc.611.2022.09.16.13.01.43; Fri, 16 Sep 2022 13:02:10 -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=fail header.i=@engleder-embedded.com header.s=dkim11 header.b=IpiW7HKn; 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 S230165AbiIPTyc (ORCPT + 99 others); Fri, 16 Sep 2022 15:54:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230357AbiIPTyX (ORCPT ); Fri, 16 Sep 2022 15:54:23 -0400 Received: from mx06lb.world4you.com (mx06lb.world4you.com [81.19.149.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E299B99FC; Fri, 16 Sep 2022 12:54:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=engleder-embedded.com; s=dkim11; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=vFiZ6J6rKleWghPafAo9+rN4nJo/ie0UFtGpkuXvE18=; b=IpiW7HKn1yvZMBBTCQ0QCCGW9q 0WHcGrM1WPfNg4Kcwta9mynVdqSovYgsH/48fWxxaQX/2Wx8cF+86xKJ1+Ctwi4J5nY+TEVvdZaHI ba5YHAdFvWQ7HLY8o3OB8zB0LuAxtXcq5YUOUHa60RJQdrh0vt4A28LVtLflsoM0aALE=; Received: from [88.117.54.199] (helo=[10.0.0.160]) by mx06lb.world4you.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oZHPR-0005s5-F9; Fri, 16 Sep 2022 21:53:57 +0200 Message-ID: <7f09367e-2236-692c-4adf-cb262ff1c109@engleder-embedded.com> Date: Fri, 16 Sep 2022 21:53:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH net-next 10/13] tsnep: deny tc-taprio changes to per-tc max SDU Content-Language: en-US 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 , 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" References: <20220914153303.1792444-1-vladimir.oltean@nxp.com> <20220914153303.1792444-11-vladimir.oltean@nxp.com> <20220916135752.abmpagmyjt4gnolk@skbuf> From: Gerhard Engleder In-Reply-To: <20220916135752.abmpagmyjt4gnolk@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AV-Do-Run: Yes X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,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 16.09.22 15:57, Vladimir Oltean wrote: > 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. Ok, denying max_sdu makes sense. It can be used to prevent too large frames for a traffic class by discarding them. In my opinion for MACs a software implementation would make sense even in full offload mode, because it would prevent copying frames from RAM to MAC which are discarded anyway. But that should be decided driver specific. Thanks for your explanations!