From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB892CD37B0 for ; Mon, 18 Sep 2023 17:08:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231292AbjIRRIG (ORCPT ); Mon, 18 Sep 2023 13:08:06 -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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > >> +#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