summaryrefslogtreecommitdiffstats
path: root/net/switchdev
diff options
context:
space:
mode:
authorPetri Gynther <pgynther@google.com>2015-07-11 01:20:00 +0200
committerDavid S. Miller <davem@davemloft.net>2015-07-12 06:16:08 +0200
commitc590032f9ab8d03aab235a7601db22a267c2d958 (patch)
tree227ad660d2e3efabc382a9d698b071cea4c86709 /net/switchdev
parentcdc_ncm: update specs URL (diff)
downloadlinux-c590032f9ab8d03aab235a7601db22a267c2d958.tar.xz
linux-c590032f9ab8d03aab235a7601db22a267c2d958.zip
net: bcmgenet: fix accounting of packet drops vs errors
bcmgenet driver needs to separate packet drops from packet errors. When the driver has to drop a *good* packet, due to lack of buffers or replacement skbs, increment only dev->stats.[rx|tx]_dropped. When the driver encounters a bad Rx packet or Tx error, increment only dev->stats.[rx|tx]_errors + relevant detailed error counter. Signed-off-by: Petri Gynther <pgynther@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev')
0 files changed, 0 insertions, 0 deletions