android_kernel_oneplus_msm8998/drivers/net/ethernet/freescale
Claudiu Manoil 36e7b814c9 gianfar: Fix Rx byte accounting for ndev stats
[ Upstream commit 590399ddf9561f2ed0839311c8ae1be21597ba68 ]

Don't include in the Rx bytecount of the packet sent up the stack:
the FCB (frame control block), and the padding bytes inserted by
the controller into the frame payload, nor the FCS. All these are
being pulled out of the skb by gfar_process_frame().
This issue is old, likely from the driver's beginnings, however
it was amplified by recent:
commit d903ec77118c ("gianfar: simplify FCS handling and fix memory leak")
which basically added the FCS to the Rx bytecount, and so brought
this to my attention.

Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-30 07:49:02 +02:00
..
fs_enet 82xx: FCC: Fixing a bug causing to FCC port lock-up 2015-12-16 18:32:35 -05:00
fec.h net: fec: introduce fec_ptp_stop and use in probe fail path 2015-07-26 21:51:53 -07:00
fec_main.c net: fec: Fix unbalanced PM runtime calls 2018-03-31 18:12:34 +02:00
fec_mpc52xx.c net/fsl: constify of_device_id array 2015-03-17 15:00:21 -04:00
fec_mpc52xx.h
fec_mpc52xx_phy.c net/fsl: constify of_device_id array 2015-03-17 15:00:21 -04:00
fec_ptp.c net: fec: avoid timespec use 2015-10-05 03:16:39 -07:00
fsl_pq_mdio.c net: freescale: fix potential null pointer dereference 2018-04-13 19:50:15 +02:00
gianfar.c gianfar: Fix Rx byte accounting for ndev stats 2018-05-30 07:49:02 +02:00
gianfar.h gianfar: Don't enable RX Filer if not supported 2015-12-16 18:31:00 -05:00
gianfar_ethtool.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-11-01 00:15:30 -04:00
gianfar_ptp.c net: gianfar_ptp: move set_fipers() to spinlock protecting area 2018-03-03 10:19:45 +01:00
Kconfig net: fsl: expands dependencies of NET_VENDOR_FREESCALE 2015-11-23 12:11:58 -05:00
Makefile gianfar: Remove sysfs stubs for FIFOCFG and stashing 2014-02-18 15:03:02 -05:00
ucc_geth.c net: fix phy refcounting in a bunch of drivers 2015-09-24 23:04:53 -07:00
ucc_geth.h
ucc_geth_ethtool.c drivers/net: get rid of unnecessary initializations in .get_drvinfo() 2015-10-16 00:24:10 -07:00
xgmac_mdio.c net/fsl: constify of_device_id array 2015-03-17 15:00:21 -04:00