Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2459292imu; Thu, 29 Nov 2018 05:28:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/VoFHevytnm/48l3E37vVmSbEeMZHk4ITlXx3GdxIeAPcTQeEQfHSbvf0z8mYuMaPd70GYW X-Received: by 2002:a17:902:6681:: with SMTP id e1-v6mr1429331plk.173.1543498083009; Thu, 29 Nov 2018 05:28:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543498082; cv=none; d=google.com; s=arc-20160816; b=Ue8EV+Dysn//2UF1DbgGfxN95LE12FE8qxGj5RR9rpADESfsHQY90DrvVXQ51O9XWW 6Ss6vEgjkyJQWpQs5oi0SA5cInQe7GGkX90mYf73AzOFKa4NW/YzU9/136Hfj9ydsFkQ /t/i1b/opWC2ekQP1uently3XbWdTOmvLf3n8JVVZuJf8yLslOJ9eFiCj+3+bqYx6yb/ yKvRsu0rkU13D1jmqI2htjKJSaIQcYKP/Hk03TeABI4PsTzw3J5IQMzgVlPjp0OZEpzr 8heW09LKXQ5mhUETOscvhaY6hSmETqM+k0tq0kFC8d9/DH5ZN71w17QZfrmRQm9FOK4L 1hlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=9dPqh7sQWNVlicSeJTrzhY27+r1Wf9lpCmbyW/pZ7cM=; b=wNJncQqqRjwefHiQVLXOX8+w1ILolijD9Ks6JIROfGGlNmFercowJQOKcXvVfIV6nP IU+2WO22Shn+a6M7sudmhQpi3z+I7F9dpLFKTTadTNWzsXDiiPNIUiMDVLz//vJhXz45 puDAnl7tWNzsOliIY81x2z6uNHPOi2XR9Z2bIzd7LjV7R1GpkDCieheKCefKpU7zUtxy DgvJMZuE/ySQeX6wr5kY/l2eSm3ZwZPRPab64Nny+Dl0QCeHiJ5c/8BqgOWDugKsDV8/ vUDsqaLK67ALS4ZGNv801XPpnWeJ7BXvllwf0vcI8XZV0ymAlKHNFXiNhf7YkfB37i5M 9PRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d9F7iiLg; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si2321791pld.252.2018.11.29.05.27.47; Thu, 29 Nov 2018 05:28:02 -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=@gmail.com header.s=20161025 header.b=d9F7iiLg; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728310AbeK3ALf (ORCPT + 99 others); Thu, 29 Nov 2018 19:11:35 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:35775 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727040AbeK3ALf (ORCPT ); Thu, 29 Nov 2018 19:11:35 -0500 Received: by mail-ed1-f66.google.com with SMTP id x30so1845579edx.2; Thu, 29 Nov 2018 05:06:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9dPqh7sQWNVlicSeJTrzhY27+r1Wf9lpCmbyW/pZ7cM=; b=d9F7iiLgsIioXzeqIDqd5VQ8brg05ybh13BJlJTy5Ef/ISjI2/JXPWeH0EM0a9zSuo htFXmO2OdqDK5myWGXECnxVa0IxDmeRGjgM7E37Ykpdzf32p5T2GnG/s5x2M/75SOc69 /KR/cCBfRzFMw1kUOLG6o4mZ2Q8asNG1lQFpBbWPG23xWZYJlNqSPf9rkH+Ui3hoOa7p sIbrnjrZ8SIhsuPkOedNbrUM0bOlj2LXWgYlL7oAMHHYOnFVARRz7kmlvY8Oom3byh3/ y5EezvPDJMO2OJwQ5FKqiBIN/x3u63ihkiZM9LHB2Xbb0hDG4S8j0IKlElR7Rah7jNZ3 i5yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9dPqh7sQWNVlicSeJTrzhY27+r1Wf9lpCmbyW/pZ7cM=; b=Y9lXllKSnx9eNOhElqnOfbINywSk09onEUCwIlXymcmcwjYXyEQlIMp9uP2cor8Wuk rfep2KZEbtRKkgkoV3DPLkGAePaYjFf3SiFLcZQH/aaDLPNlwvWb5/fIQTvI2B+AdkW/ gk4c/bbTXNegQBwfdmJOHVUIBlnXO8QoSDz/90p/q74WAzXPslD3pIAKi7/+LZiyXPEi bxDvbRty2yO+QecOpvUpSDJCfQC2k3JuSKLmbkhKuSqR2G81QZEjouWsmnJQcmVDx9qf kyN6rBdu9lKZxgUYpmvDGITb/2UiYJJf5RmPeKWtzZA357v7jfdROnZ5gs6Iq9zW8OUx bUhQ== X-Gm-Message-State: AA+aEWZDHTXJuGbWEctTLLhXoimeKTwgFDkAtPcdThX511AbCCRWapGV 6FmdOcrVeMI0VZDnhNb53a12HuLcr8bLXudqsmo= X-Received: by 2002:aa7:dd16:: with SMTP id i22mr1616616edv.182.1543496775606; Thu, 29 Nov 2018 05:06:15 -0800 (PST) MIME-Version: 1.0 References: <20181125234315.28313-1-grygorii.strashko@ti.com> <20181126022711.GD32164@lunn.ch> In-Reply-To: <20181126022711.GD32164@lunn.ch> From: "Lad, Prabhakar" Date: Thu, 29 Nov 2018 13:05:47 +0000 Message-ID: Subject: Re: [PATCH] net: ethernet: ti: cpsw: allow to configure min tx packet size To: Andrew Lunn Cc: Grygorii Strashko , "David S. Miller" , netdev , Sekhar Nori , LKML , Linux OMAP Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, On Mon, Nov 26, 2018 at 2:27 AM Andrew Lunn wrote: > > 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? > Yes it does send runt packets, and also get Rx align errors. you can find the ethtool dump at [1]. [1] https://e2e.ti.com/support/processors/f/791/t/719557?Linux-AM5728-EtherCAT-packets-dropped Cheers, --Prabhakar Lad