diff options
author | Esben Haabendal <esben@geanix.com> | 2021-06-17 11:49:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-17 20:39:48 +0200 |
commit | 14870b75fe0be5c565339f008ba25326f86a7ce8 (patch) | |
tree | 258a2f07982f0fa8a7f9bd9cf4632cff349b1cdc /lib/is_single_threaded.c | |
parent | net: gianfar: Add definitions for CAR1 and CAM1 register bits (diff) | |
download | linux-14870b75fe0be5c565339f008ba25326f86a7ce8.tar.xz linux-14870b75fe0be5c565339f008ba25326f86a7ce8.zip |
net: gianfar: Implement rx_missed_errors counter
Devices with RMON support has a 16-bit RDRP counter. It provides: "Receive
dropped packets counter. Increments for frames received which are streamed
to system but are later dropped due to lack of system resources."
To handle more than 2^16 dropped packets, a carry bit in CAR1 register is
set on overflow, so we enable irq when this is set, extending the counter
to 2^64 for handling situations where lots of packets are missed (e.g.
during heavy network storms).
Signed-off-by: Esben Haabendal <esben@geanix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/is_single_threaded.c')
0 files changed, 0 insertions, 0 deletions