Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp338846rdb; Mon, 18 Sep 2023 17:40:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEfps3ZCxzogd8cWfLvfDldjgZuhOaqSReTdptQtmcP+v6oS4KtXBrczIhoSM466I2l+06E X-Received: by 2002:a05:6808:212a:b0:3a7:6385:28ac with SMTP id r42-20020a056808212a00b003a7638528acmr12924714oiw.4.1695084030668; Mon, 18 Sep 2023 17:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695084030; cv=none; d=google.com; s=arc-20160816; b=M+GIVBwm276zvZLkyBIOMivAipXcEnqmrL2VvvFeQ/BO6NMjkvQnpz93U2b0AXO3iF 8YQJuMjNXaTSTNNIvaKx22fuJveXJVJ9BDxbJ/8uui4uyktd/at3gR7x80SVuh7miooN Z84nx4WnEK7HbMbn7NWIhyCcyUNXTD14lnw+TuTulI1lqX2LKKmdkbejd9nsNI5HXtN0 PA6Cqv0wUXqwzJDfbl3WUvYDu6zOJGRMHquewppwPYMqLd7UoPOS3k8aAkKqXUzXJaW2 PZD4WjWBtmbDeVh6nPh93uISxZhPXP+oqW9ju8PBoFKXKaHBqkBN4EBtppw2Q+T0JWI5 H35g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZDG2UZigKOWJ038WXoUKb1KefBm5hAW9BvHKmAdM9gg=; fh=IySK1NIJxFwSBQYGQ2CFWH64uB2XfVAq41B6jTCSVbQ=; b=rehCxkDIXMNkGfME8XaE0rLnYZlnc/JG6G/Qi7HvuKXZ2XoCfxeI0/b9f3KZvk4sEj KAHxou5PUG9JlykV7lyI6FJTsNE1q0er3sR2KjfURQj/y25RMQ3OeGRd+HcrB/M9D6zb 8EMhlsKcSr1go12bjASM+T4f8p+NABdmoB2RjeuwmYRluU9/hBeew7Y2ZlHWoMIdn109 9fS9S76XAv4XNKeIuEwVMLNqO/si/00hX296X02KMjxsfy2+yfPiMe0hMOhMRGQzj7bN Hf2tMaqSBJaFFc8hNNqQjgJVkatojzM3IYgl9s1jWd6aBDBzNr0Wv5os6KrCoLHGq3u7 iCNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=O3jBt7mE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id 196-20020a6302cd000000b0057821ea0674si671712pgc.812.2023.09.18.17.40.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 17:40:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=O3jBt7mE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id EFA728320DEF; Mon, 18 Sep 2023 10:08:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230059AbjIRRIF (ORCPT + 99 others); Mon, 18 Sep 2023 13:08:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231428AbjIRRHx (ORCPT ); Mon, 18 Sep 2023 13:07:53 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70390192; Mon, 18 Sep 2023 10:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=ZDG2UZigKOWJ038WXoUKb1KefBm5hAW9BvHKmAdM9gg=; b=O3jBt7mEzv4sgCXD4Zd78Adiw3 o6Hn7tyP4VgDXPkAVVzD9k5+bgLAIHEcMw8zfb0c2JOPFhNb2xw4SV9wjGN+zQiND/552P92Wad8b mYQEA2h6ykcLgLtRDQ7G3JTZBlIq0PXomnUADenREWD+ikLKrZKPFKT67B2m+J6se5KE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qiDsc-006nGM-ME; Mon, 18 Sep 2023 15:01:34 +0200 Date: Mon, 18 Sep 2023 15:01:34 +0200 From: Andrew Lunn To: Parthiban.Veerasooran@microchip.com Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, corbet@lwn.net, Steen.Hegelund@microchip.com, rdunlap@infradead.org, horms@kernel.org, casper.casan@gmail.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Horatiu.Vultur@microchip.com, Woojung.Huh@microchip.com, Nicolas.Ferre@microchip.com, UNGLinuxDriver@microchip.com, Thorsten.Kummermehr@microchip.com Subject: Re: [RFC PATCH net-next 4/6] net: ethernet: implement data transaction interface Message-ID: <51d1565f-e43e-4906-af65-2ae672309b89@lunn.ch> References: <20230908142919.14849-1-Parthiban.Veerasooran@microchip.com> <20230908142919.14849-5-Parthiban.Veerasooran@microchip.com> <3900f818-9ff1-cc19-f545-fbb3e2db4d52@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3900f818-9ff1-cc19-f545-fbb3e2db4d52@microchip.com> X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, SPF_PASS autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 18 Sep 2023 10:08:13 -0700 (PDT) > >> +#define MAX_ETH_LEN 1536 > > > > Where do 1536 come from? Maybe this needs an OA_TC6 prefix to make it > > clear this is specific to this protocol? > Ah it is a mistake. It is supposed to be an ethernet packet size which > is 1518 (1500 bytes MTU size + 18 bytes overhead) and it is not from OA. > It is a mistake and will correct it in the next version. Please try to express this using ETH_DATA_LEN + sizeof(struct oa_tc6_overhead). Doing it like this will avoid errors like this since it is also part documentation. Andrew