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 ABDE5C04A68 for ; Thu, 28 Jul 2022 21:57:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230346AbiG1V5Q (ORCPT ); Thu, 28 Jul 2022 17:57:16 -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> Precedence: bulk List-ID: X-Mailing-List: netdev@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