summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorClaudiu Manoil <claudiu.manoil@nxp.com>2018-02-27 17:33:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-30 07:50:33 +0200
commit6a2f2824eec75251cdedd9db2f10a224b018188f (patch)
tree83b5810ada0d4f3b648259ccce31b33b59c1e054 /net
parentc0ce44186a8810c80fefe5d9fb5277f692971c39 (diff)
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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions