Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5181485imu; Sun, 25 Nov 2018 18:29:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/XvMvw40CwWvOl/prLCwYm6NYlKoLtS4stvz7TqQkYFWwQdrMMsDRaAqGRukaJ0xCZoIkZx X-Received: by 2002:a63:5664:: with SMTP id g36mr22774465pgm.313.1543199362442; Sun, 25 Nov 2018 18:29:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543199362; cv=none; d=google.com; s=arc-20160816; b=ZrlezhclbUA0TRG9Lapvnjx8svr/z4hnTs7DzpFhcgd24Exf65j21crNOU7WlkJsd1 4prR8bARcEaVNHNA7D7Lg+sHqot/fxE8X9Gew+gPVDpIR/5bfeqjxlD2CbpnOvy/kCk3 3HLJvpXUQhUR2QZE+wG1H9oub22BuAn4vLylG+dHWJvfY3OTs0JuhEvUmQla67mfRvv6 YrJm8YdN7CoyBxSj/E+u1epWi4Xi65+7VJrzYr5HNGTeVzssJdHiovzSjcmWXE5mSGZv n3/PKP65ntKg89us/WEwacXQX1sEZCBt998uJ4kSc3dg+/dKaMxjgRdJpqVKUMq/k7K3 xD/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Ha3cDveggPtSD4sEpMeqIa8/ivd1C8QC695nLLy98EQ=; b=o9SUhNEa8BKLxHnGao4X5BujsMXBHLoH+Z//i5TqEzqVeS/vX+ncpnP0b6cNgQaujH hXit9EjRVV7A9HxqGV9YGoFGdLwx17Aed+jc4IoACe21+uBDv14Lu4o8BYpBeP9MXdeb ciWOMGlsOPyKt6P2+bdtlt0EO91DDJZ+TN51sK8QP4Z4Tyv4YpE5BYLamb5YqeSrxh8f jLWt+h2v3kC99Qig1LVCWk1JLggBsUIIL3OlRZmM+whPHxZuSOm8dqHzscTdJKEgJaxW hzz4Y0z7D4mgBWuJyu/Ki/6WGiDDuhI0l1bVL0NIc6J4AWd7hEiL9Rbq4WM0hi8Slw/C 3DfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=kdIhdNFG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si25030615plh.307.2018.11.25.18.29.07; Sun, 25 Nov 2018 18:29:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=kdIhdNFG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726234AbeKZNTx (ORCPT + 99 others); Mon, 26 Nov 2018 08:19:53 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:48773 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726101AbeKZNTw (ORCPT ); Mon, 26 Nov 2018 08:19:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=Ha3cDveggPtSD4sEpMeqIa8/ivd1C8QC695nLLy98EQ=; b=kdIhdNFGQc5COp/a/lOHenReGzfDhtxiREb4wzDtq/2NxT536J/jkmkiQX4cwTAU9qjdTTihJ3mic5oHae0IrbnNM/W2MfVfiMKMjECf106aQ3CY+vACHvBWUr+WuTz1NMw/vu1AwTcsc3iKEb2Wl7HB52rVu9tfZGSGyq2h66o=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1gR6cB-0000G5-Dt; Mon, 26 Nov 2018 03:27:11 +0100 Date: Mon, 26 Nov 2018 03:27:11 +0100 From: Andrew Lunn To: Grygorii Strashko Cc: "David S. Miller" , netdev@vger.kernel.org, Sekhar Nori , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH] net: ethernet: ti: cpsw: allow to configure min tx packet size Message-ID: <20181126022711.GD32164@lunn.ch> References: <20181125234315.28313-1-grygorii.strashko@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181125234315.28313-1-grygorii.strashko@ti.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 25, 2018 at 05:43:15PM -0600, Grygorii Strashko wrote: > For proper VLAN packets forwarding CPSW driver uses min tx packet size of > 64bytes (VLAN_ETH_ZLEN, excluding ETH_FCS) which was corrected by > commit 9421c9015047 ("net: ethernet: ti: cpsw: fix min eth packet size"). > > Unfortunately, this breaks some industrial automation protocols, as > reported by TI customers [1], which can work only with min TX packet size > from 60 byte (ecluding FCS). Hi Grygorii excluding... > Hence, introduce module boot parameter "tx_packet_min" to allow configure > min TX packet size at boot time. Module parameters are generally not liked. What actually happens here with this lower limit? Does the hardware send runt packets? Does the protocol actually require runt packets? I'm just wondering if the module parameter can be avoided by setting this as the default. But we need to ensure ARP packets, which are smaller than the minimum MTU are correctly padded. Thanks Andrew