Received: by 2002:ac0:b7d5:0:0:0:0:0 with SMTP id v21csp10968ime; Thu, 28 Jul 2022 15:07:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR5V88YUO1YwBXnldz9r38Bq8Q6JJjbQ/GXK8tyg99GmA5Pr/ujzMyMdMsBoK52mo1VOceel X-Received: by 2002:a17:902:c94a:b0:16d:8fc0:f52b with SMTP id i10-20020a170902c94a00b0016d8fc0f52bmr861012pla.80.1659046040608; Thu, 28 Jul 2022 15:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659046040; cv=none; d=google.com; s=arc-20160816; b=yuSbq4n/4hhua5S8fE5lhpKpIaIBjGTAK2rnln/rYC5ram6J77XtqFlMJcZAefma1j uyjhrGumsU9ZrgHmxb+gzd9Gidzh48jI/WfPuj3UULX1btf302x2OIOtMUSsKFnILYt3 xX9zOLq7WLZUOPvEnUs4TsYVqTtO91cNvrpsafXrSI+A9nU5FkmbsOHHm/lNbwu/Y3+j whdd7uhmyiZ74uM93bz0PH5tMs9eEJY/kjmtwQkGEv2bH2rn+vcm8RAhvA/N/VuwNmpj 4KBUoptaNYDRjQmeFFOYRKvuZhgERsWmuDc3H1Z34QA3wKxHQ3bdCL5ZOCL89vZWtzyb VQig== 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=sMIxOu+PrFYUqj1aEIeto3MFIRATAzf9C/roIOkAwJs=; b=OKtNB1IYzwkGKVMQHgNo24BmfRMZaFga6LQfi9wtpc4jfL0HNFOAR0sFZjlZvtWvLc Gf4i2M66vLM5ptUWq/oZmfygOJs60NHx2sbGUW+L2AREWzIfBL3oluenpklGNqvr9z2T vWV+NH6/XbNFHL3OvvC3o+RNRgKmuKSwblXz/loR20MUH2CPO4TGLXjG+wem79lKuPO2 lgFbNWbQ0njmTS7/5taclCsZ5w6S8yWQZvzYfWFqi5hc+Qg6XvxLVAVcmd7N3bWA06ju k9j3ljGJczOdwKfdT3NunaMvdz9hpJfFySYGSczEe6dNjOv5Y2E+RYuO6nbqmpP8gEDB k+2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=XrxaKDPd; 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 bc15-20020a656d8f000000b0041b2ac98bfcsi2339666pgb.406.2022.07.28.15.07.05; Thu, 28 Jul 2022 15:07:20 -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=@lunn.ch header.s=20171124 header.b=XrxaKDPd; 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 S230482AbiG1V5R (ORCPT + 99 others); Thu, 28 Jul 2022 17:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229896AbiG1V5P (ORCPT ); Thu, 28 Jul 2022 17:57:15 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B40C57201; Thu, 28 Jul 2022 14:57:14 -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=sMIxOu+PrFYUqj1aEIeto3MFIRATAzf9C/roIOkAwJs=; b=XrxaKDPdlZQDhXzU9BGINT2PFE e4etlWAMey34nndhmHg5rkZHcuhZuY/TpMvg5jTY+2UWuUiVB1CmRA7v8tzgY29W6VwCpEl4brjIJ iG/MTeU6uiHDyBS4z/4vbDSMn2NZFXRRgOQvhs0C1ViAaK0d9DWfdsPYy5nK9vwJIdEs=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oHBVC-00BqUv-6g; Thu, 28 Jul 2022 23:57:06 +0200 Date: Thu, 28 Jul 2022 23:57:06 +0200 From: Andrew Lunn To: Naveen Mamindlapalli Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, sgoutham@marvell.com, Subbaraya Sundeep Subject: Re: [net PATCH] octeontx2-pf: Reduce minimum mtu size to 60 Message-ID: References: <20220728123812.21974-1-naveenm@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220728123812.21974-1-naveenm@marvell.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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, Jul 28, 2022 at 06:08:12PM +0530, Naveen Mamindlapalli wrote: > From: Subbaraya Sundeep > > PTP messages like SYNC, FOLLOW_UP, DELAY_REQ are of size 58 bytes. > Using a minimum packet length as 64 makes NIX to pad 6 bytes of > zeroes while transmission. This is causing latest ptp4l application to > emit errors since length in PTP header and received packet are not same. > Padding upto 3 bytes is fine but more than that makes ptp4l to assume > the pad bytes as a TLV. Hence reduce the size to 60 from 64. Please Cc: the PTP maintainer for changes like this. I also don't follow your explanation. At least for the original 802.3, you had to pad packets shorter than 64 bytes, otherwise CSMA/CD did not work. So i would expect PTP messages should be padded to 64? Or is you hardware doing the padding wrong, and this is a workaround for that bug? Andrew