diff options
| author | Brian Scott <bscott@bunyatech.com.au> | 2026-09-09 14:33:14 +0000 |
|---|---|---|
| committer | Mitchell Horne <mhorne@FreeBSD.org> | 2026-09-21 22:43:31 +0000 |
| commit | e67697869e7208e4fe5eb96ce3f3d1240b44d2e1 (patch) | |
| tree | cefa6100e799e7da854cf59900550cf86fe21bde | |
| parent | 9257ae7294cecb5cdb8e808f7e50732f487339ef (diff) | |
eqos: Reduce RX error noisiness
Reduce very common console messages:
Receive error rdes3=30208000
As observed on the VisionFive v2 hardware after some large transfers.
Differentiate between overflow errors and others. Report the errors when
the length is non-zero (overflow errors).
Also, count errors for netstat purposes.
Reviewed by: mhorne
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D59479
| -rw-r--r-- | sys/dev/eqos/if_eqos.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/eqos/if_eqos.c b/sys/dev/eqos/if_eqos.c index e07d6b48f723..32cbe56b2d6c 100644 --- a/sys/dev/eqos/if_eqos.c +++ b/sys/dev/eqos/if_eqos.c @@ -702,8 +702,16 @@ eqos_rxintr(struct eqos_softc *sc) if ((rdes3 & EQOS_RDES3_OWN)) break; - if (rdes3 & (EQOS_RDES3_OE | EQOS_RDES3_RE)) + if (rdes3 & EQOS_RDES3_RE) { printf("Receive error rdes3=%08x\n", rdes3); + if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); + } + if (rdes3 & EQOS_RDES3_OE) { + if (rdes3 & EQOS_RDES3_LENGTH_MASK) { + printf("Receive overflow error rdes3=%08x\n", rdes3); + } + if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); + } bus_dmamap_sync(sc->rx.buf_tag, sc->rx.buf_map[sc->rx.head].map, BUS_DMASYNC_POSTREAD); |
