git: e67697869e72 - main - eqos: Reduce RX error noisiness

From: Mitchell Horne <mhorne_at_FreeBSD.org>
Date: Mon, 21 Sep 2026 22:47:12 UTC
The branch main has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=e67697869e7208e4fe5eb96ce3f3d1240b44d2e1

commit e67697869e7208e4fe5eb96ce3f3d1240b44d2e1
Author:     Brian Scott <bscott@bunyatech.com.au>
AuthorDate: 2026-09-09 14:33:14 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2026-09-21 22:43:31 +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
---
 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);