git: 3663cce63df9 - stable/15 - eqos: Reduce RX error noisiness
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Oct 2026 16:56:19 UTC
The branch stable/15 has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=3663cce63df9500aa3003daf6eeacfbe6d0be4e5
commit 3663cce63df9500aa3003daf6eeacfbe6d0be4e5
Author: Brian Scott <bscott@bunyatech.com.au>
AuthorDate: 2026-09-09 14:33:14 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2026-10-07 16:55:55 +0000
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
(cherry picked from commit e67697869e7208e4fe5eb96ce3f3d1240b44d2e1)
---
sys/dev/eqos/if_eqos.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
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);