diff options
author | Claudiu Manoil <claudiu.manoil@nxp.com> | 2018-02-27 17:33:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-28 10:59:33 -0500 |
commit | 590399ddf9561f2ed0839311c8ae1be21597ba68 (patch) | |
tree | eaf6ebf4158f54863f66746b72d339391d326cb8 /arch/nios2/mm/fault.c | |
parent | 8ca88b5486cd87ac4fbda94f0a8ac5f36eb71c4b (diff) | |
download | blackbird-obmc-linux-590399ddf9561f2ed0839311c8ae1be21597ba68.tar.gz blackbird-obmc-linux-590399ddf9561f2ed0839311c8ae1be21597ba68.zip |
gianfar: Fix Rx byte accounting for ndev stats
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>
Diffstat (limited to 'arch/nios2/mm/fault.c')
0 files changed, 0 insertions, 0 deletions