From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH net-next] net: mscc: allow extracting the FCS into the skb Date: Tue, 2 Oct 2018 14:43:23 +0200 Message-ID: <20181002124323.GC9155@lunn.ch> References: <20181001095714.26024-1-antoine.tenart@bootlin.com> <25a88126-2397-a1fb-0c0d-06504bb348ca@gmail.com> <20181002065937.GB3368@kwain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Florian Fainelli , davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, alexandre.belloni@bootlin.com, quentin.schulz@bootlin.com, allan.nielsen@microchip.com To: Antoine Tenart Return-path: Content-Disposition: inline In-Reply-To: <20181002065937.GB3368@kwain> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org > The question could be "do we need len += ETH_FCS_LEN" to account for the > FCS when NETIF_F_RXFCS is used", but I looked at other drivers and it > seemed to me the FCS is not accounted in the stats. Should it be? Hi Antoine There does not appear to be a good answer to that. I submitted a patch to a driver i'm using to not count it, so that the stats counters we consistent with another driver. The patch was rejected. I think the best you can do is flip a coin, and then document it using a comment about if it is/is not included. Andrew