diff options
| author | Petri Gynther <[email protected]> | 2015-07-10 23:20:00 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-07-12 04:16:08 +0000 |
| commit | c590032f9ab8d03aab235a7601db22a267c2d958 (patch) | |
| tree | 227ad660d2e3efabc382a9d698b071cea4c86709 /net/switchdev/switchdev.c | |
| parent | cdc_ncm: update specs URL (diff) | |
| download | kernel-c590032f9ab8d03aab235a7601db22a267c2d958.tar.gz kernel-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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
