summaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorPetri Gynther2015-07-11 01:20:00 +0200
committerDavid S. Miller2015-07-12 06:16:08 +0200
commitc590032f9ab8d03aab235a7601db22a267c2d958 (patch)
tree227ad660d2e3efabc382a9d698b071cea4c86709 /net/switchdev/switchdev.c
parentcdc_ncm: update specs URL (diff)
downloadkernel-qcow2-linux-c590032f9ab8d03aab235a7601db22a267c2d958.tar.gz
kernel-qcow2-linux-c590032f9ab8d03aab235a7601db22a267c2d958.tar.xz
kernel-qcow2-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/switchdev.c')
0 files changed, 0 insertions, 0 deletions